// the map data structure - updated via JSON from the server var map = { valid: 0 }; // we queue these up to make our one-at-a-time AJAX call work var AJAXRequest = { params: {}, send: function() { } }; function printfire() { if (document.createEvent) { printfire.args = arguments; var ev = document.createEvent("Events"); ev.initEvent("printfire", false, true ); dispatchEvent(ev); } } function syncmap() { $('#busy').show(); var nodes = map.nodes; // alert("length: "+nodes.length); var a=3; for(var node in nodes) { // alert(node); if(map.nodes[node].name != 'DEFAULT') { if(1==1) { var nodeid = 'mapnode_'+map.nodes[node].name; var existing = $('#'+nodeid); if(existing.size() != 0) { //alert('The node already exists called ' + nodeid); } else { // alert("Creating a node called " + nodeid); $('#nodecontainer').append('
'); existing = $('#'+nodeid); existing.css('position', 'absolute'); } // one way or another, by here we have a node, I hope. existing.css("left",map.nodes[node].x); existing.css("top",map.nodes[node].y); } } } $('#busy').hide(); } $(document).ready( function() { $('#welcome').click( function() { $('#welcome').hide('slow'); $('#filepicker').show('slow'); $('#toolbar').show('slow'); } ); // $('#filepicker').fadeIn('slow'); // $('#themap').fadeIn('slow'); $('#welcome').hide(); $('#filepicker').hide(); $('#toolbar').show(); $('#themap').show(); $('#busy').show(); $.getJSON("ajax-callback.php", { map: " weathermap.conf", cmd: "dump_map" }, function(json){ $('#busy').hide(); $('#existingdata').attr('src',json.map.mapcache); map = json; syncmap(); } ); });
WebSVN - weathermap - Blame - Rev 114 - /editor-resources/newedit.js
Català-Valencià - Catalan
Česky - Cesky
Dansk - Dansk
Dutch - Dutch
English - English
Finnish - Finnish
Français - Francais
Deutsch - German
עברית - Hebrew
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Brazilian Portuguese
Русский - Russian
中文 - Simplified Chinese
Slovenčina - Slovak
Slovenčina - Slovenian
Español - Spanish
Svenska - Swedish
中文 - Traditional Chinese
Türkçe - Turkish
Oëzbekcha - Uzbek
weathermap
Subversion Repositories:
banderdyn
centos.prosek.czf
crusader
czf4bfu
czf4bfu.prosek.czf
czfcentos
czfgmap
discover
fedora.prosek.czf
freenet-router
ftth
getonlineclouds
hotsanic
internet.prosek.czf
is
mapstats
meteolinger
netmap
qos
sedlo
sedlo.prosek.czf
switches
vbtobb
vlubnt
weathermap
weatherstats
websvn
wifidashboard
wifimon
www.prosek.czf
xenstats
[
/
] [
editor-resources/
] [
newedit.js
] - Blame information for rev
114
Line No.
Rev
Author
Line
Powered by
WebSVN
2.2.1