Changeset 290
- Timestamp:
- 02/24/12 16:27:15 (13 years ago)
- Location:
- Dev/branches/Cartis/Tiles preview
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/Cartis/Tiles preview/css/tile1.css
r283 r290 471 471 472 472 } 473 474 .fullGraphDisplay { 475 position: absolute; 476 top: 0; 477 left: 0; 478 float: left; 479 } 480 481 .hidden { 482 visibility: hidden; 483 height: 0; 484 } 485 486 .fullscreenGraphContainer { 487 width: 934px; 488 padding: 3px; 489 height: 540px; 490 background-color: #367ac3; 491 z-index: 1; 492 position: relative; 493 left: 0; 494 top: 0; 495 } -
Dev/branches/Cartis/Tiles preview/index.html
r278 r290 15 15 <script type="text/javascript"> 16 16 $(document).ready(function(){ 17 debugger;18 17 mockup.api.breadcrumbs.init(); 19 18 }); -
Dev/branches/Cartis/Tiles preview/js/classes/graphs.js
r283 r290 49 49 _graphObject.Set('chart.strokestyle', 'rgba(240,240,240,1.0)'); 50 50 51 52 51 //enlarge click event 52 if (canvas.id == "enlarged") { 53 canvas.addEventListener("click", function(event) { 54 self.closeLarge(self); 55 }, true); 56 canvas.className = "fullGraphDisplay"; 57 } 58 else { 59 canvas.addEventListener("click", function(event) { 60 self.enlarge(); 61 }, true); 62 } 53 63 // Draw 54 64 _graphObject.Draw(); 55 65 } 56 66 67 this.getId = function() { 68 return _id; 69 } 57 70 this.getType = function() { 58 71 return _type; 59 72 } 60 73 74 this.enlarge = function() { 75 // Check if already enlarged? 76 debugger; 77 var present = document.getElementById("largeContainer"); 78 if (present != null) return; 79 80 var largeContainer = document.createElement("div"); 81 largeContainer.className = "fullscreenGraphContainer"; // make css! 82 largeContainer.id = "largeContainer"; 83 84 // TESTING!!!! /////////////////////////////// 85 $("#content").append(largeContainer); 86 $(".basePanel").addClass("hidden"); 87 88 // END TESTING ////////////////////////// 89 /* 90 $(".basePanel").append(largeContainer); 91 */ 92 var largeGraph = new Graph("largeContainer"); 93 largeGraph.init("enlarged", _data, _type, [900,550]); 94 var clearDiv = document.createElement("div"); 95 $(clearDiv).css("float", "left").css("clear", "both"); 96 largeGraph._container.appendChild(clearDiv); 97 } 98 99 this.closeLarge = function(graph) { 100 debugger; 101 self._container.parentNode.removeChild(self._container); 102 $(".basePanel").removeClass('hidden'); 103 } 61 104 } 62 105 -
Dev/branches/Cartis/Tiles preview/js/dashboardScripts.js
r284 r290 29 29 instances: new Array( 30 30 { 31 title: " Teamup Session 1",32 creator: " Cartis Jansen",33 date: "25-5-2012", 34 description: " BLablablablabla"31 title: "Participant gender", 32 creator: "Jules duGrand", 33 date: "25-5-2012", 34 description: "The gender of the respondent, wording #1." 35 35 }, 36 36 { 37 title: "Teamup Session 2", 38 creator: "Cartis Jansen", 39 date: "28-5-2012", 40 description: "250 deelnemers" 37 title: "Participant age", 38 creator: "Jules duGrand", 39 date: "25-5-2012", 40 description: "N/a" 41 }, 42 { 43 title: "Game experience", 44 creator: "Peer van Neer", 45 date: "25-5-2012", 46 description: "Respondents experience with analog and video games." 47 }, 48 { 49 title: "Current position within RWS", 50 creator: "Peer van Neer", 51 date: "26-5-2012", 52 description: "Respondent fills in own description of position or job title during the session." 53 }, 54 { 55 title: "Job experience at employer", 56 creator: "Ellemiek Bosman", 57 date: "25-5-2012", 58 description: "Respondent fills in own time working at current company. May not be 100% accurate!" 41 59 } 42 60 … … 44 62 gameData: new Array( 45 63 { 46 title: "Veerkracht 17-3-2011",47 creator: " Arne Bezuijen",48 date: " 17-3-2011",49 description: " Great success"64 title: "Veerkracht game session #1", 65 creator: "Ellemiek Bosman", 66 date: "25-5-2012", 67 description: "First play session. Users go into game without instructions." 50 68 }, 51 69 { 52 title: "Ve ntum",53 creator: " Cartis Jansen",54 date: " 1-1-2010",55 description: " Op locatie"70 title: "Veerkracht game session #2", 71 creator: "Ellemiek Bosman", 72 date: "25-5-2012", 73 description: "Second play session. Users have played game before and received feedback on their results." 56 74 } 57 75 ) -
Dev/branches/Cartis/Tiles preview/nbproject/private/private.xml
r284 r290 4 4 <file> 5 5 <url>js/dashboardScripts.js</url> 6 <line>1 11</line>6 <line>129</line> 7 7 </file> 8 8 </editor-bookmarks> -
Dev/branches/Cartis/Tiles preview/pages/dashboardOverview.js
r283 r290 2 2 3 3 mockup.api.drawGraph = function(input) { 4 var graph = new Graph("graphsContainer"); 5 graph.init(input[0], input[1], input[2], input[3]); 4 var graph = new Graph("graphsContainer"); 5 debugger; 6 for (var n = 0; n < mockup.api.graphs.graphObjects.length; n++) { 7 var exGraph = mockup.api.graphs.graphObjects[n]; 8 // If this id already exists on the dashboard 9 if (exGraph.getId() == input[0]) { 10 input[0] = recursiveCheckName(input[0], exGraph.getId()); 11 } 12 } 6 13 7 mockup.api.graphs.graphObjects.push(graph); 14 graph.init(input[0], input[1], input[2], input[3]); 15 16 mockup.api.graphs.graphObjects.push(graph); 17 } 18 19 20 function recursiveCheckName(name, name2) { 21 if (name == name2) { 22 var index= name.indexOf("_"); 23 if (index != -1) { 24 var number = name.split("_")[1]; 25 number++; 26 name = name.split("_")[0]+number; 27 } 28 else { 29 name+= "_0"; 30 } 31 name = recursiveCheckName(name, name2); 32 } 33 34 return name; 8 35 } 9 36
Note: See TracChangeset
for help on using the changeset viewer.