Techious
http://www.techious.com/forums/

Dev at work
http://www.techious.com/forums/viewtopic.php?f=8&t=5640
Page 1 of 1

Author:  azcn2503 [ Wed Feb 24, 2010 5:03 pm ]
Post subject:  Dev at work

Hey guys

We're putting up some phone system wallboards to report on phone system activity like calls waiting, agents available etc. for the various departments.

My boss made this:

Image

People said they couldn't read it very well because the text was too small so we tried something different.

Image

People said it was better and more readable from a distance but the contrast was too heavy.

So I started making a mockup in HTML.

It blew them away!

Below made for 1920x1080 screens:

Image

Image

Image

Image

Desktop version:

Image

Image

We decided that white on blue was easier to read, and we used pale colours instead of vivid ones for the traffic lighting system.

So basically work now think I am a genius.

Author:  Harry [ Wed Feb 24, 2010 5:49 pm ]
Post subject:  Re: Dev at work

Me being me....

PRETTY COLOURS!

Author:  Skillers [ Wed Feb 24, 2010 9:12 pm ]
Post subject:  Re: Dev at work

That's pretty shiny, though reminds me of the screens at Argos ><

Author:  Scottie [ Wed Feb 24, 2010 10:21 pm ]
Post subject:  Re: Dev at work

Omg.

Wtf.

This is...

I mean, someone, using html tables the way god (I presume) intended ; it's a real Easter miracle.

Author:  azcn2503 [ Thu Feb 25, 2010 9:52 am ]
Post subject:  Re: Dev at work

I don't like tables much but they are very easy to work with.

Considering it's just a demonstration or mock-up of some sort, it doesn't need to be functional but needs to somewhat represent what we would like to see from the Avaya product...

Spoiler for A whole load of code:
dev.php wrote:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html content="text/html; charset=iso-8859-1" content-type=""
style="width: 100%; height: 100%; margin: 0pt; padding: 0pt;"
xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

      <title>Wallboard</title>
      <link rel="stylesheet" type="text/css" href="dev.php_files/dev.css">
      <script type="text/javascript"><!--
         function grab(o){
            return document.all?document.all[o]:document.getElementById?document.getElementById(o):"";
         }
         var deps=[
            ["Sales",
               ["102","84","15","3","0"],
               ["3","3","0","0","0"],
               ["4:32","3:15","5:20","4:43","0:00"],
               ["2:09","0:13","10:23","15:10","10:00"]
            ],
            ["Service",
               ["135","120","12","2","1"],
               ["7","7","0","0","0"],
               ["4:32","3:15","5:20","4:43","0:00"],
               ["2:09","0:13","10:23","15:10","10:00"]
            ],
            ["Tech",
               ["50","49","1","0","0"],
               ["3","3","0","0","0"],
               ["4:32","3:15","5:20","4:43","0:00"],
               ["2:09","0:13","10:23","15:10","10:00"]
            ],
            ["Installs",
               ["30","30","0","0","0"],
               ["3","3","0","0","0"],
               ["4:32","3:15","5:20","4:43","0:00"],
               ["2:09","0:13","10:23","15:10","10:00"]
            ]
         ];
         var cdep=0;
         function changeValues(stage){
            switch(stage){
               case 0: // start
                  cdep=cdep+1>=deps.length?0:cdep+1;
                  fadeVal=1;
                  fadeOut();
               break;
               case 1: // change
                  grab("cdep").innerHTML=deps[cdep][0];
                  grab("data_ch_t").innerHTML=deps[cdep][1][0];
                  grab("data_ch_p").innerHTML=deps[cdep][1][1];
                  grab("data_ch_e").innerHTML=deps[cdep][1][2];
                  grab("data_ch_f").innerHTML=deps[cdep][1][3];
                  grab("data_ch_v").innerHTML=deps[cdep][1][4];
                  grab("data_ca_t").innerHTML=deps[cdep][2][0];
                  grab("data_ca_p").innerHTML=deps[cdep][2][1];
                  grab("data_ca_e").innerHTML=deps[cdep][2][2];
                  grab("data_ca_f").innerHTML=deps[cdep][2][3];
                  grab("data_ca_v").innerHTML=deps[cdep][2][4];
                  grab("data_ad_t").innerHTML=deps[cdep][3][0];
                  grab("data_ad_p").innerHTML=deps[cdep][3][1];
                  grab("data_ad_e").innerHTML=deps[cdep][3][2];
                  grab("data_ad_f").innerHTML=deps[cdep][3][3];
                  grab("data_ad_v").innerHTML=deps[cdep][3][4];
                  grab("data_aw_t").innerHTML=deps[cdep][4][0];
                  grab("data_aw_p").innerHTML=deps[cdep][4][1];
                  grab("data_aw_e").innerHTML=deps[cdep][4][2];
                  grab("data_aw_f").innerHTML=deps[cdep][4][3];
                  grab("data_aw_v").innerHTML=deps[cdep][4][4];
                  setTimeout("changeValues(2)",10);
               break;
               case 2: // finish
                  fadeVal=0;
                  fadeIn();
               break;
               case 3: // wait
                  setTimeout("changeValues(0)",5000);
               break;
            }
         }
         function fadeOut(){
            if(fadeVal>0){
               fadeVal-=.01;
               grab("cdep").style.opacity=fadeVal;
               setTimeout("fadeOut()",10);
            }
            else{
               setTimeout("changeValues(1)",10);
            }
         }
         function fadeIn(){
            if(fadeVal<1){
               fadeVal+=.01;
               grab("cdep").style.opacity=fadeVal;
               setTimeout("fadeIn()",10);
            }
            else{
               setTimeout("changeValues(3)",10);
            }
         }
      </script>
   </head><body style="width: 100%; height: 100%; margin: 0pt; overflow:
hidden;" onload="changeValues(0);">
      <table style="width: 100%; height: 100%;" cellpadding="0"
cellspacing="0">
         <tbody><tr style="height: 60%;">
            <td>
               <table style="width: 100%; height: 100%;" cellpadding="0"
cellspacing="0">
                  <tbody><tr class="title">
                     <td style="width: 20%; background-color: rgb(255, 255, 255);"><img
src="dev.php_files/arjo_rgb.jpg" style="width: 50%;"></td>
                     <td style="width: 16%;">Sales</td>
                     <td style="width: 16%;">Service</td>
                     <td style="width: 16%;">Tech</td>
                     <td style="width: 16%;">Installs</td>
                  </tr>
                  <tr>
                     <td>Calls in Queue</td>
                     <td class="red">5</td>
                     <td class="yel">3</td>
                     <td class="grn">0</td>
                     <td class="grn">2</td>
                  </tr>
                  <tr>
                     <td>Agents Ready</td>
                     <td class="red">0</td>
                     <td class="grn">2</td>
                     <td class="yel">2</td>
                     <td class="grn">2</td>
                  </tr>
                  <tr>
                     <td>Longest Queued</td>
                     <td class="grn">0:15</td>
                     <td class="red">0:43</td>
                     <td class="grn">0:00</td>
                     <td class="yel">0:32</td>
                  </tr>
               </tbody></table>
            </td>
         </tr>
         <tr>
            <td>
               <table style="width: 100%; height: 100%;" cellpadding="0"
cellspacing="0">
                  <tbody><tr class="title">
                     <td rowspan="2" class="large"><div id="cdep" style="opacity:
0.62;">Service</div></td>
                     <td colspan="5">Today so far</td>
                  </tr>
                  <tr class="title">
                     <td>Total</td>
                     <td>Phone</td>
                     <td>Email</td>
                     <td>Fax</td>
                     <td>Voicemail</td>
                  </tr>
                  <tr>
                     <td>Calls Handled</td>
                     <td class="oth" id="data_ch_t">135</td>
                     <td class="oth" id="data_ch_p">120</td>
                     <td class="oth" id="data_ch_e">12</td>
                     <td class="oth" id="data_ch_f">2</td>
                     <td class="oth" id="data_ch_v">1</td>
                  </tr>
                  <tr>
                     <td>Calls Abandoned</td>
                     <td class="oth" id="data_ca_t">7</td>
                     <td class="oth" id="data_ca_p">7</td>
                     <td class="oth" id="data_ca_e">0</td>
                     <td class="oth" id="data_ca_f">0</td>
                     <td class="oth" id="data_ca_v">0</td>
                  </tr>
                  <tr>
                     <td>Avg Duration</td>
                     <td class="oth" id="data_ad_t">4:32</td>
                     <td class="oth" id="data_ad_p">3:15</td>
                     <td class="oth" id="data_ad_e">5:20</td>
                     <td class="oth" id="data_ad_f">4:43</td>
                     <td class="oth" id="data_ad_v">0:00</td>
                  </tr>
                  <tr>
                     <td>Avg Wait Time</td>
                     <td class="oth" id="data_aw_t">2:09</td>
                     <td class="oth" id="data_aw_p">0:13</td>
                     <td class="oth" id="data_aw_e">10:23</td>
                     <td class="oth" id="data_aw_f">15:10</td>
                     <td class="oth" id="data_aw_v">10:00</td>
                  </tr>
               </tbody></table>
            </td>
         </tr>
      </tbody></table>
   </body></html>


dev.css wrote:
Code:
body{
   background-color:#005aa9;
}
td{
   font-family:arial;
   font-variant:;
   font-weight:bold;
   font-size:1.75em;
   line-height:1em;
   border:1px solid #004a99;
   border-width:0 0 1px 0;
   text-align:center;
   color:#fff;
}
tr.title td{
   background-color:#004a99;
   height:5%;
}
.red,.grn,.yel,.oth,.large{
   font-size:2.5em;
   font-weight:bold;
   color:#000;
}
.red{
   background-color:#f99;
   border:5px outset #e88;
}
.grn{
   background-color:#9f9;
   border:5px outset #8e8;
}
.yel{
   background-color:#ff9;
   border:5px outset #ee8;
}
.oth{
   color:#fff;
   font-size:1.75em;
}
.large{
   color:#fff;
}


wallboard2.php wrote:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html content="text/html; charset=iso-8859-1" content-type=""
style="width: 100%; height: 100%; margin: 0pt; padding: 0pt;"
xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

      <title>Arjo Service Wallboard</title>
      <link rel="stylesheet" type="text/css"
href="wallboard2.php_files/dev2.css">
      <script type="text/javascript"><!--
         
         function grab(o){
            return document.all?document.all[o]:document.getElementById?document.getElementById(o):"";
         }
         
         // Wait time below
         var changeWaitTime=5; // seconds
         // Wait time above
         
         changeWaitTime*=1000;
         function changeValues(stage){
            switch(stage){
               case 0: // fade out live
                  fadeVal=1;
                  fadeOutLive();
                  // setTimeout("changeValues(1)",10);
               break;
               case 1: // switch to day
                  grab("table_livestats").style.display="none";
                  grab("table_daystats").style.display="table";
                  grab("table_daystats").style.height="100%";
                  grab("stats_type").innerHTML="Daily Stats";
                  setTimeout("changeValues(2)",10);
               break;
               case 2: // fade in day
                  fadeVal=0;
                  fadeInDay();
                  // setTimeout("changeValues(3)",5000);
               break;
               case 3: // fade out day
                  fadeVal=1;
                  fadeOutDay();
                  // setTimeout("changeValues(4)",10);
               break;
               case 4: // switch to live
                  grab("table_daystats").style.display="none";
                  grab("table_livestats").style.display="table";
                  grab("stats_type").innerHTML="Live Stats";
                  setTimeout("changeValues(5)",10);
               break;
               case 5: // fade in live
                  fadeVal=0;
                  fadeInLive();
                  // setTimeout("changeValues(0)",5000);
               break;
            }
         }
         
         function fadeInLive(){
            if(fadeVal<1){
               fadeVal+=.01;
               grab("table_livestats").style.opacity=fadeVal;
               setTimeout("fadeInLive()",10);
            }
            else{
               setTimeout("changeValues(0)",changeWaitTime);
            }
         }
         function fadeInDay(){
            if(fadeVal<1){
               fadeVal+=.01;
               grab("table_daystats").style.opacity=fadeVal;
               setTimeout("fadeInDay()",10);
            }
            else{
               setTimeout("changeValues(3)",changeWaitTime);
            }
         }
         function fadeOutLive(){
            if(fadeVal>0){
               fadeVal-=.01;
               grab("table_livestats").style.opacity=fadeVal;
               setTimeout("fadeOutLive()",10);
            }
            else{
               setTimeout("changeValues(1)",10);
            }
         }
         function fadeOutDay(){
            if(fadeVal>0){
               fadeVal-=.01;
               grab("table_daystats").style.opacity=fadeVal;
               setTimeout("fadeOutDay()",10);
            }
            else{
               setTimeout("changeValues(4)",10);
            }
         }
      </script>
   </head><body style="width: 100%; height: 100%; margin: 0pt; overflow:
hidden;" onload="changeValues(1);">
      <table style="width: 100%; height: 100%;" cellpadding="0"
cellspacing="0">
         <tbody><tr class="title" style="height: 1%;">
            <td style="width: 50%; background-color: rgb(255, 255, 255);"><img
src="wallboard2.php_files/arjo_rgb.jpg" style="width: 50%;" alt="Arjo
Logo"></td>
            <td style="width: 50%;"><div class="large">SERVICE</div><br><div
id="stats_type">Daily Stats</div></td>
         </tr>
         <tr>
            <td colspan="2">
               <!-- start of new -->
               
                  <table id="table_livestats" style="width: 100%; height: 100%;
table-layout: fixed; opacity: 0; display: none;" cellpadding="0"
cellspacing="0">
                     <tbody><tr style="height: 50%;">
                        <td>Calls in Queue</td>
                        <td>Agents Ready</td>
                        <td>Longest Queued</td>
                     </tr>
                     <tr style="height: 50%;">
                        <td class="red">5</td>
                        <td class="yel">1</td>
                        <td class="grn">0:15</td>
                     </tr>
                  </tbody></table>
               
               
                  <table id="table_daystats" style="width: 100%; height: 100%;
table-layout: fixed; display: table; opacity: 1;" cellpadding="0"
cellspacing="0">
                     <tbody><tr>
                        <td>&nbsp;</td>
                        <td>Calls Handled</td>
                        <td>Calls Abandoned</td>
                        <td>Average Duration</td>
                        <td>Average Wait Time</td>
                     </tr>
                     <tr>
                        <td>Phone</td>
                        <td class="large">84</td>
                        <td class="large">3</td>
                        <td class="large">4:32</td>
                        <td class="large">0:13</td>
                     </tr>
                     <tr>
                        <td>Email</td>
                        <td class="large">3</td>
                        <td class="large">0</td>
                        <td class="large">5:20</td>
                        <td class="large">10:23</td>
                     </tr>
                     <tr>
                        <td>Fax</td>
                        <td class="large">15</td>
                        <td class="large">0</td>
                        <td class="large">4:43</td>
                        <td class="large">15:10</td>
                     </tr>
                     <tr>
                        <td>Voicemail</td>
                        <td class="large">0</td>
                        <td class="large">0</td>
                        <td class="large">0:00</td>
                        <td class="large">0:00</td>
                     </tr>
                     <tr class="title">
                        <td>TOTAL</td>
                        <td class="large">102</td>
                        <td class="large">3</td>
                        <td class="large">4:32</td>
                        <td class="large">2:09</td>
                     </tr>
                  </tbody></table>
               
            </td>
         </tr>
      </tbody></table>
   </body></html>


dev2.css wrote:
Code:
body{
   background-color:#005aa9;
}
td{
   font-family:arial;
   font-weight:bold;
   font-size:1.5em;
   line-height:1em;
   border:1px solid #004a99;
   border-width:0 1px 1px 0;
   text-align:center;
   color:#fff;
}
tr.title td{
   background-color:#004a99;
}
.red,.grn,.yel,.oth,.large{
   font-size:3em;
   font-weight:bold;
   color:#000;
}
.red{
   background-color:#f99;
   border:5px outset #e88;
}
.grn{
   background-color:#9f9;
   border:5px outset #8e8;
}
.yel{
   background-color:#ff9;
   border:5px outset #ee8;
}
.oth{
   color:#fff;
   font-size:1.75em;
}
.large{
   color:#fff;
}


Enjoy. Oh and it only really displays and fades properly in Firefox. I'm too lazy to make it work in IE.

Author:  Si [ Thu Feb 25, 2010 1:15 pm ]
Post subject:  Re: Dev at work

Who develops for IE these days? Isn't it just Firefox and Webkit. Just throw in ChromeFrame for IE xD

Author:  azcn2503 [ Thu Feb 25, 2010 4:38 pm ]
Post subject:  Re: Dev at work

Hehe.

It's stuff like this that makes me think that I would really dislike web development.

Best regards
Aaron

Author:  Si [ Fri Feb 26, 2010 5:36 am ]
Post subject:  Re: Dev at work

Then I suggest you don't look at the code for the LAN pages, as theyre designed with the goal of "so it works" and isn't neat at all.

Author:  azcn2503 [ Fri Feb 26, 2010 10:00 am ]
Post subject:  Re: Dev at work

Hehe.

I might do some more development stuff for work.

They need a helpdesk system that is light and fast enough to be used at multiple sites across the UK and Ireland... I think I have just the thing...

Author:  azcn2503 [ Mon Jul 01, 2013 10:39 am ]
Post subject:  Re: Dev at work

Ask DHR to provide screenshots of the real-time version of the above!!

Author:  Harry [ Fri Jul 05, 2013 6:54 pm ]
Post subject:  Re: Dev at work

DHR, post real-time screenshots of the above please!

Author:  azcn2503 [ Fri Jul 05, 2013 7:04 pm ]
Post subject:  Re: Dev at work


Watch this video on Youtube.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/