Changeset 9269 for src/django_gheat/website/static
- Timestamp:
- Jun 17, 2011, 2:31:59 PM (13 years ago)
- Location:
- src/django_gheat/website/static
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/heatmap.js
r9264 r9269 2 2 function init(){ 3 3 4 var lat = 52.14068; 5 var lon = 4.48319; 6 var zoom = 16; 4 var lat = getURLParameter('lat'); 5 var lon = getURLParameter('lon'); 6 var zoom = getURLParameter('zoom'); 7 8 if(lat=='null' || lon=='null' || zoom=='null'){ 9 var lat = 52.14068; 10 var lon = 4.48319; 11 var zoom = 16; 12 } 7 13 var projection_wgs = new OpenLayers.Projection("EPSG:4326"); // WGS 1984 8 14 -
src/django_gheat/website/static/heatmap_extensions.js
r9267 r9269 1 1 // Uses zoomlevel and mouseposition to call the nodelist.py view. View returns nodes in json format which is read and printed in document element. 2 function getNodeList(zoomlevel, mousepos) 2 function getNodeList(zoomlevel, mousepos){ 3 3 $.getJSON("/website/nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon, 4 function(json) 4 function(json){ 5 5 content = 'Wireless Leiden nodes on mouseposition:<br /><b>'; 6 6 $.each(json, function(i,json){ … … 10 10 $("#node_list").html(content); 11 11 } 12 ); 13 } 14 15 // Right way to get url parameters?: http://stackoverflow.com/questions/1403888/get-url-parameter-with-jquery/1404100#1404100 16 function getURLParameter(name) { 17 return decodeURI( 18 (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] 12 19 ); 13 20 } -
src/django_gheat/website/static/style.css
r9266 r9269 95 95 left:50%; 96 96 margin-left:-150px; 97 bottom: 30px;97 bottom:25px; 98 98 height:8px; 99 99 width:300px;
Note:
See TracChangeset
for help on using the changeset viewer.