Changeset 278


Ignore:
Timestamp:
02/21/12 17:40:49 (13 years ago)
Author:
tjcschipper
Message:
 
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  
    8585#header {
    8686    width: 100%;
    87     height: 95px;
     87    height: 36px;
    8888    margin-bottom: 20px;
    8989}
    9090
    9191#upperBar {
    92     height: 68px;
    93     background: #508fd2;
     92    height: 12px;
     93    background: #fff;
    9494}
    9595
    9696#lowerBar {
    97     height: 20px;
     97    height: 24px;
    9898    background: #508fd2;
    9999}
     
    120120    height: 50px;
    121121    line-height: 50px;
    122     color: #fff;
     122    color: #000;
    123123    font-size: 36px;
    124124    font-family: 'Segoe', sans-serif;
     
    211211    margin-bottom: 5px;
    212212    background: #367ac3;
     213    color: #fff;
    213214
    214215    background-image: linear-gradient(left bottom, rgb(54,122,195) 44%, rgb(74,139,208) 72%);
     
    229230}
    230231
    231 .doubleHeight {
    232     height: 465px;
    233 }
    234 
    235232.staticTile {
    236233    width: 230px;
     
    238235    border: none;
    239236    float: left;
     237    color: #fff;
    240238    clear: none;
    241239    margin-right: 5px;
    242240    margin-bottom: 5px;
    243241    background: #367ac3;
    244 
    245 }
     242}
     243
     244.doubleHeight {
     245    height: 465px;
     246}
     247
     248.doubleWidth {
     249    width: 465px;
     250}
     251
     252
    246253
    247254.tile:hover {
     
    309316}
    310317
    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;
    317337}
    318338
  • Dev/branches/Cartis/Tiles preview/js/dashboardScripts.js

    r261 r278  
    263263   
    264264function 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);
    276266}
    277267
     
    393383    doorstuurData.count++;
    394384}
     385
  • Dev/branches/Cartis/Tiles preview/js/nav.js

    r259 r278  
    11$(function() {
    2     //Switchpage
    3    
     2       
    43    mockup = {
    54        api: {
    65            clickTile: function(thisElement, url) {
    7                 // clear self
    8                 while (thisElement.firstChild) {
    9                     thisElement.removeChild(thisElement.firstChild);
    10                 }
    116                // clear frame
    127                $(".basePanel").children().remove();
     
    149           
    1510            },
    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               
    1721                $.get("pages/"+name+".html", function(responseText, textStatus, XMLHttpRequest) {
    1822                    $(".basePanel").append(responseText);
    1923                    $.getScript("pages/"+name+".js", function(responseText, textStatus, XMLHttpRequest){
    20                         debugger;
    21                     })
     24                       
     25                        })
    2226                });
    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            })()
    2587       
    2688        }
  • Dev/branches/Cartis/Tiles preview/pages/dataSelection.js

    r259 r278  
    1 //COMMENT yo
Note: See TracChangeset for help on using the changeset viewer.