- Timestamp:
- 02/29/12 16:32:21 (13 years ago)
- Location:
- Dev/branches/Cartis/Tiles preview
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/Cartis/Tiles preview/css/tile1.css
r290 r296 254 254 .tile:hover { 255 255 background-color: #78abe2; 256 background-image: linear-gradient(bottom, rgb(54,122,195) 44%, rgb( 120,171,226) 72%);257 background-image: -o-linear-gradient(bottom, rgb(54,122,195) 44%, rgb( 120,171,226) 72%);258 background-image: -moz-linear-gradient(bottom, rgb(54,122,195) 44%, rgb( 120,171,226) 72%);259 background-image: -webkit-linear-gradient(bottom, rgb(54,122,195) 44%, rgb( 120,171,226) 72%);260 background-image: -ms-linear-gradient(bottom, rgb(54,122,195) 44%, rgb( 120,171,226) 72%);256 background-image: linear-gradient(bottom, rgb(54,122,195) 44%, rgb(99,159,222) 72%); 257 background-image: -o-linear-gradient(bottom, rgb(54,122,195) 44%, rgb(99,159,222) 72%); 258 background-image: -moz-linear-gradient(bottom, rgb(54,122,195) 44%, rgb(99,159,222) 72%); 259 background-image: -webkit-linear-gradient(bottom, rgb(54,122,195) 44%, rgb(99,159,222) 72%); 260 background-image: -ms-linear-gradient(bottom, rgb(54,122,195) 44%, rgb(99,159,222) 72%); 261 261 262 262 background-image: -webkit-gradient( 263 263 linear, 264 264 left bottom, 265 left top,265 right top, 266 266 color-stop(0.44, rgb(54,122,195)), 267 color-stop(0.72, rgb( 120,171,226))267 color-stop(0.72, rgb(99,159,222)) 268 268 ); 269 269 } -
Dev/branches/Cartis/Tiles preview/js/classes/graphs.js
r290 r296 10 10 var _data; 11 11 var _graphObject; 12 var _title; 12 13 this._container = document.getElementById(containerName); 13 14 14 this.init = function(id, data, type, size ) {15 this.init = function(id, data, type, size, title) { 15 16 // Draw the graph to the element 16 17 _id = id; … … 18 19 _type = type; 19 20 _size = size; 21 if (title) _title = title; 20 22 21 23 var canvas = document.createElement("canvas"); … … 28 30 switch (_type) { 29 31 case "Pie": 32 // Hardcoded data 33 // Participant age 34 _data = [5,7,9,4]; 30 35 _graphObject = new RGraph.Pie(_id, _data); 36 _graphObject.Set('chart.labels', ['20-30 (20 participants)', '30-40 (28 participants)', '40-50 (36 participants)', '50+ (16 participants)']); 37 _graphObject.Set('chart.text.color', '#fff'); 31 38 break; 32 39 case "Bar": 40 // Hardcoded data 41 // Quality of control 42 _data = [4,20,50,18,8]; 33 43 _graphObject = new RGraph.Bar(_id, _data); 34 _graphObject.Set('chart.labels', ['Jan', 'Piet', 'Shaniqua']); 44 _graphObject.Set('chart.labels', ['Bad','Subpar','Average','Above average','Good']); 45 _graphObject.Set('chart.text.color', '#fff'); 35 46 break; 36 47 case "Radar": 37 _graphObject = new RGraph.Radar(_id, _data); 48 //Hardcoded data 49 // Gameplay errors 50 _data = [24,20,26,35,36,29,25,16]; 51 _graphObject = new RGraph.Radar(_id, _data); 52 _graphObject.Set('chart.labels',['Bram','Paula','Jules','Joel','Tyrone','Henk','Darcy','Frans']); 53 _graphObject.Set('chart.text.color', '#000'); 54 _graphObject.Set('chart.strokestyle','black'); 55 38 56 break; 39 57 case "Rose": 40 58 _graphObject = new RGraph.Rose(_id, _data); 59 _graphObject.Set('chart.text.color', '#000'); 41 60 break; 42 61 } 43 62 44 63 // Set standard properties. 45 _graphObject.Set('chart.text.color', '#fff');46 64 _graphObject.Set('chart.shadow', false); 47 65 _graphObject.Set('chart.colors', ['rgba(240,240,240,0.5)', 'rgba(240,240,240,0.5)', 'rgba(240,240,240,0.5)']); 48 66 _graphObject.Set('chart.axis.color', 'rgba(240,240,240,0.5)'); 49 67 _graphObject.Set('chart.strokestyle', 'rgba(240,240,240,1.0)'); 68 if (title) { 69 _graphObject.Set('chart.title', title); 70 _graphObject.Set('chart.title.color', 'white'); 71 } 50 72 51 73 //enlarge click event … … 91 113 */ 92 114 var largeGraph = new Graph("largeContainer"); 93 largeGraph.init("enlarged", _data, _type, [900,550] );115 largeGraph.init("enlarged", _data, _type, [900,550], _title); 94 116 var clearDiv = document.createElement("div"); 95 117 $(clearDiv).css("float", "left").css("clear", "both"); -
Dev/branches/Cartis/Tiles preview/js/dashboardScripts.js
r290 r296 21 21 22 22 var mockupData = { 23 muData1: [1, 2,3,4,5,6], //pie charts24 muData2: [[ 1,2,3],[4,5,6]], //bar charts25 muData3: [[ 1,2],[3,4],[5,6]] //radar charts23 muData1: [1,3,5,6,12,6], //pie charts 24 muData2: [[4,12,6],[2,6,15]], //bar charts 25 muData3: [[55,42],[3,4],[5,6]] //radar charts 26 26 } 27 27 … … 62 62 gameData: new Array( 63 63 { 64 title: " Veerkracht game session #1",64 title: "Gameplay errors", 65 65 creator: "Ellemiek Bosman", 66 66 date: "25-5-2012", 67 description: "First play session. Users go into game withoutinstructions."68 }, 69 { 70 title: " Veerkracht game session #2",67 description: "First play session. Users starting game without any instructions." 68 }, 69 { 70 title: "Gameplay errors after feedback", 71 71 creator: "Ellemiek Bosman", 72 72 date: "25-5-2012", 73 73 description: "Second play session. Users have played game before and received feedback on their results." 74 }, 75 { 76 title: "Quality of control", 77 creator: "Bruns von Blasuer", 78 date: "18-2-2012", 79 description: "Checking quality of control during gameplay." 80 }, 81 { 82 title: "Fault recovery", 83 creator: "Bruns von Blasuer", 84 date: "17-3-2012", 85 description: "Second play session. Checking fault recovery after giving feedback." 74 86 } 75 87 ) … … 218 230 var indexInCart = shoppingCart.contents.uids.indexOf(uid); 219 231 var tempTitle = shoppingCart.contents.titles[indexInCart]; 220 var cn = confirm("Are you sure you want to remove: "+tempTitle+ "?");232 var cn = confirm("Are you sure you want to remove: "+tempTitle+ " from the selected data?"); 221 233 if (cn == false) return; 222 234 -
Dev/branches/Cartis/Tiles preview/js/nav.js
r283 r296 36 36 37 37 38 39 40 41 42 43 44 45 46 47 48 49 50 38 mockup = { 51 39 api: { … … 70 58 $.getScript("pages/"+name+".js", function(responseText, textStatus, XMLHttpRequest){ 71 59 72 })60 }) 73 61 }); 74 62 mockup.api.breadcrumbs.navTo(name); 75 63 }, 64 auth: function(target, destination) { 65 debugger; 66 var name = document.getElementById("loginForm_name"); 67 var pw = document.getElementById("loginForm_password"); 68 69 if (name.value.length > 0 && pw.value.length > 0) { 70 mockup.api.clickTile(target, destination); 71 } 72 73 }, 76 74 breadcrumbs: new (function() { 77 var _crumbs = [ "Home"];75 var _crumbs = []; 78 76 var _element = document.getElementById('breadcrumbs'); 79 77 this.init = function() { -
Dev/branches/Cartis/Tiles preview/pages/dashboardOverview.js
r290 r296 2 2 3 3 mockup.api.drawGraph = function(input) { 4 debugger; 4 5 var graph = new Graph("graphsContainer"); 5 6 debugger; … … 12 13 } 13 14 14 graph.init(input[0], input[1], input[2], input[3] );15 graph.init(input[0], input[1], input[2], input[3], input[4]); 15 16 16 17 mockup.api.graphs.graphObjects.push(graph); -
Dev/branches/Cartis/Tiles preview/pages/graphSelection.js
r284 r296 17 17 mockup.api.drawGraphPreview = function(type) { 18 18 19 var selected = false, el = document.getElementById("select_selectData") ;19 var selected = false, el = document.getElementById("select_selectData"), title; 20 20 for (var n = 0; n < el.options.length; n++) { 21 21 if (el.options[n].selected == true) { 22 22 selected = true; 23 title = el.options[n].innerHTML; 23 24 } 24 25 } … … 27 28 mockup.api.graphs.previewGraph = new Graph("graphContainer"); 28 29 mockup.api.graphs.previewGraph._container.innerHTML = ""; 29 mockup.api.graphs.previewGraph.init("previewGraph", [40,50,60 ], type, [459,250]);30 mockup.api.graphs.previewGraph.init("previewGraph", [40,50,60,70], type, [459,250], title); 30 31 } 31 32 … … 89 90 90 91 //Write settings to dashboard array. 91 mockup.api.graphs.dashboard.push([name, [40,50,60], type, [459,250] ]);92 mockup.api.graphs.dashboard.push([name, [40,50,60], type, [459,250], option.innerHTML]); 92 93 93 94 } -
Dev/branches/Cartis/Tiles preview/pages/login.html
r294 r296 6 6 <label for="loginForm_password" style="display: block; clear: left; width: 100px;">Password</label><input type="password" id="loginForm_password" onclick="event.stopPropagation();" /> 7 7 <div class="tileText" style="margin-top: 115px;"> 8 <input type="button" class="smallButton" value="Log in" id="btnLogin" onclick="mockup.api. clickTile(this, 'dataSelection');" />9 <input type="button" class="smallButton" value="Register" id="btnRegister" onclick="mockup.api. clickTile(this, 'dataSelection');" />8 <input type="button" class="smallButton" value="Log in" id="btnLogin" onclick="mockup.api.auth(this, 'dataSelection');" /> 9 <input type="button" class="smallButton" value="Register" id="btnRegister" onclick="mockup.api.auth(this, 'dataSelection');" /> 10 10 </div></div> 11 11 <div id="tile2" class="staticTile"><div class="tileText"></div></div>
Note: See TracChangeset
for help on using the changeset viewer.