Changeset 290


Ignore:
Timestamp:
02/24/12 16:27:15 (13 years ago)
Author:
tjcschipper
Message:

Cartis z'n testversie is DONE!

Location:
Dev/branches/Cartis/Tiles preview
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/Cartis/Tiles preview/css/tile1.css

    r283 r290  
    471471
    472472}
     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  
    1515        <script type="text/javascript">
    1616            $(document).ready(function(){
    17                debugger;
    1817               mockup.api.breadcrumbs.init();
    1918            });
  • Dev/branches/Cartis/Tiles preview/js/classes/graphs.js

    r283 r290  
    4949            _graphObject.Set('chart.strokestyle', 'rgba(240,240,240,1.0)');
    5050           
    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            }
    5363            // Draw
    5464            _graphObject.Draw();
    5565        }
    5666
     67        this.getId = function() {
     68            return _id;
     69        }
    5770        this.getType = function() {
    5871            return _type;
    5972        }
    6073
     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        }
    61104    }
    62105   
  • Dev/branches/Cartis/Tiles preview/js/dashboardScripts.js

    r284 r290  
    2929    instances: new Array(
    3030    {
    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."
    3535    },
    3636    {
    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!"
    4159    }
    4260
     
    4462    gameData: new Array(
    4563    {
    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."
    5068    },
    5169    {
    52         title: "Ventum",
    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."
    5674    }
    5775    )
  • Dev/branches/Cartis/Tiles preview/nbproject/private/private.xml

    r284 r290  
    44        <file>
    55            <url>js/dashboardScripts.js</url>
    6             <line>111</line>
     6            <line>129</line>
    77        </file>
    88    </editor-bookmarks>
  • Dev/branches/Cartis/Tiles preview/pages/dashboardOverview.js

    r283 r290  
    22   
    33    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        }
    613       
    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;
    835    }
    936   
Note: See TracChangeset for help on using the changeset viewer.