From e447868c12a9d72e02817a4d699c4f6810420e3e Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 24 Jul 2014 19:39:58 +0300 Subject: Status icons + Gantt/Graph transition Transition is now fixed and now has a neat movement effect Each icon now has a status value (done, current, not done) to indicate the state of deliverables Gantt button was moved for better UI --- images/check.png | Bin 0 -> 321 bytes images/checks.psd | Bin 0 -> 24278 bytes images/cross.png | Bin 0 -> 427 bytes images/delivcheck.png | Bin 0 -> 360 bytes images/delivcross.png | Bin 0 -> 516 bytes images/delivwait.png | Bin 0 -> 559 bytes images/wait.png | Bin 0 -> 583 bytes scripts/buttons.js | 4 +-- scripts/gant.js | 19 ++++++----- scripts/rhizicore.js | 85 ++++++++++++++++++++++++++++++++++++++------------ scripts/watchdog.js | 10 ------ style.css | 22 +++++++------ 12 files changed, 92 insertions(+), 48 deletions(-) create mode 100644 images/check.png create mode 100644 images/checks.psd create mode 100644 images/cross.png create mode 100644 images/delivcheck.png create mode 100644 images/delivcross.png create mode 100644 images/delivwait.png create mode 100644 images/wait.png diff --git a/images/check.png b/images/check.png new file mode 100644 index 00000000..c663c0bb Binary files /dev/null and b/images/check.png differ diff --git a/images/checks.psd b/images/checks.psd new file mode 100644 index 00000000..60159350 Binary files /dev/null and b/images/checks.psd differ diff --git a/images/cross.png b/images/cross.png new file mode 100644 index 00000000..a93bec84 Binary files /dev/null and b/images/cross.png differ diff --git a/images/delivcheck.png b/images/delivcheck.png new file mode 100644 index 00000000..b5837e6c Binary files /dev/null and b/images/delivcheck.png differ diff --git a/images/delivcross.png b/images/delivcross.png new file mode 100644 index 00000000..605497d1 Binary files /dev/null and b/images/delivcross.png differ diff --git a/images/delivwait.png b/images/delivwait.png new file mode 100644 index 00000000..1a334d7c Binary files /dev/null and b/images/delivwait.png differ diff --git a/images/wait.png b/images/wait.png new file mode 100644 index 00000000..0c18155b Binary files /dev/null and b/images/wait.png differ diff --git a/scripts/buttons.js b/scripts/buttons.js index 980a51d9..b29e85e9 100644 --- a/scripts/buttons.js +++ b/scripts/buttons.js @@ -29,7 +29,7 @@ $('.save').click(function(){ console.log(nodes); for(var i=0;i0.7)status="done"; + else if(Math.random()>0.5) status="current"; + else status="waiting"; var end = randomDate(new Date(), new Date("01-01-2018")); var start = randomDate(new Date(), end); - graph.addNodeComplete("Task " + i, "deliverable", "perm", start, end); + graph.addNodeComplete("Task " + i, "deliverable", "perm", start, end, status); } for (var i = 0; i < 60; i++) { @@ -614,7 +659,7 @@ function showInfo(d, i) { $('.info').fadeIn(300); if (d.type === "deliverable") { - $('.info').html('Name: '+d.id+'
'); + $('.info').html('Name: '+d.id+'
'); } else { $('.info').html('Name: '+d.id+'
'); } @@ -635,7 +680,7 @@ function showInfo(d, i) { $('#editdescription').val(d.type); - $('#editurl').val('www.' + d.id + '.com'); + $('#editstatus').val(d.status ); if (d.type === "deliverable") { $('#editstartdate').val(d.start); @@ -734,7 +779,7 @@ function customColor(type) { color = '#62BB47'; break; case "deliverable": - color = '#E03A3E'; + color = '#CCC'; break; case "objective": color = '#933E99'; diff --git a/scripts/watchdog.js b/scripts/watchdog.js index 9ecdb6da..b28b04f6 100644 --- a/scripts/watchdog.js +++ b/scripts/watchdog.js @@ -1,13 +1,3 @@ -var oldtext; -$('#textanalyser').keyup(function(){ - - var counter=$('#textanalyser').val().match(/([#])/g); - if(counter.length>2){ - $('#textanalyser').val(oldtext); - } - oldtext=$('#textanalyser').val(); - -}); diff --git a/style.css b/style.css index fdb7ac77..e66f771e 100644 --- a/style.css +++ b/style.css @@ -212,6 +212,10 @@ input:focus { text-align: center; } +.status{ + display:none; +} + /* .typeselection{ position:fixed; @@ -398,9 +402,9 @@ input:focus { .onoffswitch { z-index:100; position: fixed; - width: 114px; - top:90px; - right: 30px; + width: 140px; + top:35px; + right: 180px; -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none; } @@ -421,19 +425,19 @@ input:focus { .onoffswitch-inner:before, .onoffswitch-inner:after { display: block; float: left; width: 50%; height: 20px; padding: 0; line-height: 20px; - font-size: 15px; color: white; font-weight: bold; + font-size: 14px; color: white; font-weight: bold; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .onoffswitch-inner:before { - content: "GRAPH"; - padding-left: 10px; + content: "GANTT VIEW"; + padding-left: 5px; background-color: #080808; color: #FFFFFF; } .onoffswitch-inner:after { - content: "GANTT"; - padding-right: 10px; + content: "GRAPH VIEW"; + padding-right: 5px; background-color: #080808; color: #FFFFFF; text-align: right; } @@ -442,7 +446,7 @@ input:focus { display: block; width: 35px; margin: 0px; background: #3D3D3D; border: 1px solid #FFFFFF; border-radius: 5px; - position: absolute; top: 0; bottom: 0; right: 75px; + position: absolute; top: 0; bottom: 0; right: 105px; -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s; -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s; background-image: -moz-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%); -- cgit v1.3.1