Changeset 278
- Timestamp:
- 02/21/12 17:40:49 (13 years ago)
- Location:
- Dev/branches/Cartis/Tiles preview
- Files:
-
- 5 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/Cartis/Tiles preview/css/tile1.css
r261 r278 85 85 #header { 86 86 width: 100%; 87 height: 95px;87 height: 36px; 88 88 margin-bottom: 20px; 89 89 } 90 90 91 91 #upperBar { 92 height: 68px;93 background: # 508fd2;92 height: 12px; 93 background: #fff; 94 94 } 95 95 96 96 #lowerBar { 97 height: 2 0px;97 height: 24px; 98 98 background: #508fd2; 99 99 } … … 120 120 height: 50px; 121 121 line-height: 50px; 122 color: # fff;122 color: #000; 123 123 font-size: 36px; 124 124 font-family: 'Segoe', sans-serif; … … 211 211 margin-bottom: 5px; 212 212 background: #367ac3; 213 color: #fff; 213 214 214 215 background-image: linear-gradient(left bottom, rgb(54,122,195) 44%, rgb(74,139,208) 72%); … … 229 230 } 230 231 231 .doubleHeight {232 height: 465px;233 }234 235 232 .staticTile { 236 233 width: 230px; … … 238 235 border: none; 239 236 float: left; 237 color: #fff; 240 238 clear: none; 241 239 margin-right: 5px; 242 240 margin-bottom: 5px; 243 241 background: #367ac3; 244 245 } 242 } 243 244 .doubleHeight { 245 height: 465px; 246 } 247 248 .doubleWidth { 249 width: 465px; 250 } 251 252 246 253 247 254 .tile:hover { … … 309 316 } 310 317 311 .breadcrumbs{ 312 float: left; 313 margin-top: 20px; 314 margin-bottom: -2px; 315 margin-left: 370px; 316 318 #breadcrumbs{ 319 line-height: 24px; 320 width: 940px; 321 margin: 0 auto; 322 color: #fff; 323 } 324 325 #breadcrumbs a { 326 color: #fff; 327 text-decoration: none; 328 } 329 330 #breadcrumbs a:hover { 331 color: #edd68b; 332 } 333 334 #breadcrumbs a.selected { 335 font-weight: bold; 336 text-decoration: underline; 317 337 } 318 338 -
Dev/branches/Cartis/Tiles preview/js/dashboardScripts.js
r261 r278 263 263 264 264 function configureDashboard() { 265 var data = JSON.stringify(shoppingCart); 266 var form = ce("form"); 267 //changed to dashboardGraphSelection.php 268 form.action = "dashboardGraphSelection.php"; 269 form.method = "POST"; 270 var input = ce("input"); 271 input.type = "hidden"; 272 input.name = "selectedData"; 273 input.value = data; 274 form.appendChild(input); 275 form.submit(); 265 mockup.api.loadPage("graphSelection", false); 276 266 } 277 267 … … 393 383 doorstuurData.count++; 394 384 } 385 -
Dev/branches/Cartis/Tiles preview/js/nav.js
r259 r278 1 1 $(function() { 2 //Switchpage 3 2 4 3 mockup = { 5 4 api: { 6 5 clickTile: function(thisElement, url) { 7 // clear self8 while (thisElement.firstChild) {9 thisElement.removeChild(thisElement.firstChild);10 }11 6 // clear frame 12 7 $(".basePanel").children().remove(); … … 14 9 15 10 }, 16 loadPage: function(name) { 11 loadPage: function(name, conf) { 12 debugger; 13 if (conf) { 14 if (!confirm("Are you sure you want to go back? You will lose your selected data.")) { 15 return; 16 } 17 } 18 19 $(".basePanel").children().remove(); 20 17 21 $.get("pages/"+name+".html", function(responseText, textStatus, XMLHttpRequest) { 18 22 $(".basePanel").append(responseText); 19 23 $.getScript("pages/"+name+".js", function(responseText, textStatus, XMLHttpRequest){ 20 debugger;21 })24 25 }) 22 26 }); 23 24 } 27 mockup.api.breadcrumbs.navTo(name); 28 }, 29 breadcrumbs: new (function() { 30 var _crumbs = ["Home"]; 31 var _element = document.getElementById('breadcrumbs'); 32 this.init = function() { 33 updateDiv(); 34 } 35 36 this.navTo = function(name) { 37 // Check of 'name' al in crumbs staat. 38 // Als wel: navBack, delete alle crumbs na 'name', update div. 39 // Als niet: addCrumb, voeg 'name' toe aan crumbs en update de div. 40 var index = _crumbs.indexOf(name); 41 if (index != -1) { 42 navBack(name, index); 43 } 44 else { 45 addCrumb(name); 46 } 47 } 48 49 var addCrumb = function(name) { 50 _crumbs.push(name); 51 updateDiv(); 52 } 53 54 var navBack = function(name, index) { 55 var i = index; 56 _crumbs = _crumbs.slice(0, i+1); 57 updateDiv(); 58 } 59 60 var updateDiv = function() { 61 //format first 62 _element.innerHTML = null || ""; 63 for (var n=0; n < _crumbs.length; n++) { 64 if (_crumbs[n] == "Home") { 65 var word = document.createTextNode("Home"); 66 _element.appendChild(word); 67 68 } 69 else{ 70 71 var link = document.createElement('a'); 72 link.innerHTML = _crumbs[n]; 73 link.setAttribute("onclick", "mockup.api.loadPage('"+_crumbs[n]+"', true);"); 74 link.setAttribute("href","#"); 75 _element.appendChild(link); 76 } 77 78 if (n != _crumbs.length-1) { 79 _element.innerHTML += " > "; 80 } 81 else { 82 link.className = "selected"; 83 } 84 } 85 } 86 })() 25 87 26 88 } -
Dev/branches/Cartis/Tiles preview/pages/dataSelection.js
r259 r278 1 //COMMENT yo
Note: See TracChangeset
for help on using the changeset viewer.