diff --git a/css/newbucketList.css b/css/newbucketList.css index 3e101cd..51255b5 100644 --- a/css/newbucketList.css +++ b/css/newbucketList.css @@ -207,8 +207,8 @@ ul, li { } #helpPaper { - height: 250px; - width: 201px; + height: 375px; + width: 300px; background-image: url('../img/helpPaper.gif'); } diff --git a/js/newbucketList.js b/js/newbucketList.js index b2c1660..33dcb6e 100644 --- a/js/newbucketList.js +++ b/js/newbucketList.js @@ -2,6 +2,12 @@ * @author Becky */ $(document).ready(function() { + + var screenWidth = window.innerWidth; + var screenHeight = window.innerHeight; + + $('#enterPaper').css('top', screenHeight/2 - 150); + $('#enterPaper').css('left', screenWidth/2 - 220); $(".draggable").draggable( {containment: "#container"} ); @@ -57,8 +63,23 @@ function login(type) { user.friends = [new Collaborator("Becky Bianco", "renminbi@mit.edu"), new Collaborator("Tamara Fleisher", "tfleish@mit.edu")]; maxZ = 0; // should get this and totalPapers from data from backend totalPapers = 0; - loadLoginData(); + if(type == 'create') { + note = new Task("Buckets are groups of tasks. You can use them to organize tasks and share them with friends.", "z", 1); + user.board.stickies[0] = new Sticky([100, 500], 0, [187, 144], "task", note); + + note = new Task("You can post notes or tasks on your bulletin board by clicking the post-it image.", "z", 2); + user.board.stickies[1] = new Sticky([200, 700], 0, [187, 144], "task", note); + + note = new Note("r", "Collaborators in a Bucket can see all tasks within the Bucket. You can also assign tasks to individual collaborators.", 1, "z"); + user.board.stickies[2] = new Sticky([300, 200], 0, [187, 144], "note", note); + + note = new Note("r", "Its easy to send alerts to other users reminding them about important information - just click the 'alert' button beside the note and check their name!", 2, "z"); + user.board.stickies[3] = new Sticky([50, 900], 0, [187, 144], "note", note); + + } + + loadLoginData(); $('#nameEntry').val(""); $('#usernameEnter').val(""); @@ -98,10 +119,10 @@ function postSticky(sticky) { var id = 'b'+b+'t'+t+'s'; var taskID = '#b'+b+'t'+t; - var note = "