Ignore:
Timestamp:
May 25, 2011, 3:14:54 PM (14 years ago)
Author:
dennisw
Message:

Some work on site. Messing with django queries, trying to get a nice json for filterlist.

Location:
src/django_gheat/website/static
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/heatmap_extensions.js

    r9213 r9214  
    1515      var list;
    1616      if (json.length>0){
    17         list = '<center>Wireless Leiden nodes on mouseposition:<br /><b>';
     17        list = 'Wireless Leiden nodes on mouseposition:<br /><b>';
    1818        for (var i=0; i<json.length; i++){
    1919          list += json[i].fields.ssid + '<br />';
    2020        }
    21         list += '</b></center>';
     21        list += '</b>';
    2222      }
    2323      else{
    24         list = '<center>No nodes to display.</center>';
     24        list = 'No nodes to display.';
    2525      }
    2626      document.getElementById('node_list').innerHTML=list;
     
    4242    filterlist=new ActiveXObject("Microsoft.XMLHTTP");
    4343  }
    44 
     44  // todo: Get new options if one option is selected; every user has different datasets, make sure when user 'John' is selected, you can only choose datasets who are his.
    4545  filterlist.onreadystatechange=function(){
    4646    if (filterlist.readyState==4 && filterlist.status==200){
    4747      json=eval('(' + filterlist.responseText + ')');
    4848      var list = '<form method="get" action="">';
     49      list += '<input type="text" id="user" name="user" size="10"/> User<br />';
     50      list += '<input type="text" id="dataset" name="dataset" size="10"/> Dataset<br />';
     51      list += '<input type="text" id="date" name="date" size="10"/> Date<br />';
     52     
    4953      list += '<select id="wlnode" style="width:104px"><option></option>';
    5054      for (var i=0; i<json.length; i++){
     
    5256      }
    5357      list += '</select> WLnode<br />';
     58
     59      list += '<input type="text" id="enc" name="enc" size="10"/> Encrypted<br />';
    5460      list += '<input type="text" id="colour" name="colour" size="10"/> Colour<br />';
    5561      list += '<input type="text" id="lname" name="lname" size="10"/> Layername<br />';
  • src/django_gheat/website/static/style.css

    r9213 r9214  
    3232#header{
    3333  width:100%-10px;
    34   height:30px;
     34 
    3535  top:0px;
    3636  background-color:#BA0000;
     
    3838  padding-right:5px;
    3939  text-align:center;
     40  font-size:18px;
     41  color:white;
    4042}
    4143
    4244#menu{
    4345  width:100%-10px;
    44   height:20px;
    4546  background-color:#BA0000;
    4647  padding-left:5px;
     
    8081#node_list{
    8182  position:absolute;
    82   left:50%;
    83   margin-left:-150px;
     83  left:-2px;
    8484  bottom:-2px;
    85   width:300px;
     85  width:200px;
    8686  background-color:#FFF;
    8787  border:2px solid #BA0000;
    8888  z-index:1;
    8989  padding:5px;
     90  font-size:10px;
    9091}
    9192       
Note: See TracChangeset for help on using the changeset viewer.