jablonka.czprosek.czf

mapstats

Subversion Repositories:
[/] [index.html] - Blame information for rev 10

 

Line No. Rev Author Line
19unreal<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
21unreal<html>
39unreal<head>
410unreal <title>Mapstats v4.1 AJAX</title>
59unreal <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <meta http-equiv="cache-control" content="no-cache" />
7 <meta http-equiv="pragma" content="no-cache" />
8 <meta http-equiv="imagetoolbar" content="no" />
9 <link href="mapstats.css" rel="stylesheet" type="text/css" />
10 <!--[if lte IE 8]><script type="text/javascript" src="excanvas.compiled.js"></script><![endif]-->
11 <script type="text/javascript" src="mapstats.min.js"></script>
121unreal</head>
13 
14<body>
15 
16<script type="text/javascript">
17<!--
18 
19 // set full resolution (100%) of map (width and height)
209unreal var full_x = 5420;
21 var full_y = 3696;
221unreal 
23 // set outerDiv resolution (width and height)
249unreal var inres_x = 685;
251unreal var inres_y = 500;
26 
27 // set magnifier resolution (width and height)
28 var magres_x = 150;
29 var magres_y = parseInt(full_y / (full_x / magres_x));
30 
31 // set start position (from left and top)
329unreal var start_left = 650;
33 var start_top = 165;
341unreal 
35 // set zoom multiple
369unreal var eq_mini = 0.2; // 20%
37 var eq_medi = 0.5; // 50%
38 var eq_high = 0.7; // 70%
39 var eq_orig = 1; // 100%
401unreal 
41 // set start multiple
42 var start_mul = eq_mini;
43 
44 // set displayed functions
45 var ch_ap = true;
46 var ch_router = true;
47 var ch_node = true;
48 var ch_infopoint = true;
49 var ch_noping = true;
50 var ch_legend = true;
51 var ch_name = true;
529unreal var ch_ip = false;
531unreal var ch_status = true;
54 var ch_backbone = true;
55 var ch_client = true;
56 var ch_inp = true;
57 
58 // set source data
59 var nodes = 'name.nodes';
60 var noping = 'name.noping';
61 var links = 'name.links';
62 var infopoints = 'name.infopoints';
63 var state = 'name.state';
64 
65 // set colors of links
66 var wifi_client = "rgb(0, 200, 0)";
67 var wifi_backbone = "rgb(250, 250, 0)";
68 var eth_100 = "rgb(173, 216, 230)";
69 var fso = "rgb(190, 0, 0)";
70 var fso_backup = "rgb(255, 80, 80)";
71 var ghz5 = "rgb(200, 200, 200)";
72 var ghz10 = "rgb(255, 255, 255)";
73 var fiber = "rgb(220, 0, 220)";
74 var other = "rgb(0, 0, 250)";
75 
76 // set alpha colors of links
77 var wifi_client_a = "rgba(0, 200, 0, 0.6)";
78 var wifi_backbone_a = "rgba(250, 250, 0, 0.6)";
79 var eth_100_a = "rgba(173, 216, 230, 0.6)";
80 var fso_a = "rgba(190, 0, 0, 0.6)";
81 var fso_backup_a = "rgba(255, 80, 80, 0.6)";
82 var ghz5_a = "rgba(200, 200, 200, 0.6)";
83 var ghz10_a = "rgba(255, 255, 255, 0.6)";
84 var fiber_a = "rgba(220, 0, 220, 0.6)";
85 var other_a = "rgba(0, 0, 250, 0.6)";
86 
87 // set names of links
88 var name1 = "Wifi Client";
89 var name2 = "Wifi Backbone";
90 var name3 = "Ethernet";
91 var name4 = "FSO";
92 var name5 = "FSO + Backup";
93 var name6 = "5 GHz";
94 var name7 = "10 GHz";
95 var name8 = "Fiber";
96 var name9 = "Other";
97 
98 // set name for link in planning (for legend)
99 var inp = "(InP)";
100 
101 window.onload = function() {
1029unreal loadFiles();
1031unreal mapInit(start_mul);
1049unreal setCheckboxes();
105 canvasInit(start_mul);
106 setAutoLoader();
1071unreal }
108 
109// -->
110</script>
111 
112<!-- main map -->
1139unreal<div id="wrapper">
114 <div id="map">
1151unreal <div id="outerDiv">
116 <div id="zoomPanel">
1179unreal <div id="zooms">
118 <!-- zoom 0 --><a id="zoom0" href="javascript:mainMap.setZoom(0)"></a>
119 <!-- zoom 1 --><a id="zoom1" href="javascript:mainMap.setZoom(1)"></a>
120 <!-- zoom 2 --><a id="zoom2" href="javascript:mainMap.setZoom(2)"></a>
121 <!-- zoom 3 --><a id="zoom3" href="javascript:mainMap.setZoom(3)"></a>
1221unreal </div>
1239unreal <div id="translucent"></div>
1241unreal </div>
1259unreal <div id="legend">
126 <div id="legendcanvas"><canvas id="paintlegend" width="25" height="0"></canvas></div>
127 <div id="mapstats_legend"></div>
128 </div>
1291unreal <div id="innerDiv">
130 <div id="mapstats">
1319unreal <div id="paint"></div>
1325unreal <div id="mapstats_wave"></div>
1331unreal <div id="mapstats_infopoint"></div>
134 <div id="mapstats_ip"></div>
135 <div id="mapstats_status"></div>
136 <div id="mapstats_name"></div>
1375unreal <div id="mapstats_points"></div>
1381unreal </div>
1399unreal <div id="mapstats_over"></div>
1401unreal </div>
141 </div>
1429unreal <div class="clr"></div>
1431unreal <div id="underMap">
144 <div id="resolutionInfo"></div>
14510unreal <div id="version"><a href="http://www.jklir.net/" target="jklir">Mapstats v4.1 AJAX&nbsp;</a></div>
1461unreal </div>
147 </div>
148 <div id="menuset">
149 <!-- mini map -->
1509unreal <div class="miniMap">
151 <div id="miniMapInner"><img src="mini/mini_map.jpg" alt="" border="0" /></div>
152 <div id="magnifier"></div>
1531unreal </div>
1549unreal <div id="infoDiv">0 x 0</div>
155 <div id="checkboxes">
156 <form action="#" name="form_map"><br/>
157 <input type="checkbox" name="ch_ap" id="ch_ap"/>&nbsp;AP<br/>
158 <input type="checkbox" name="ch_router" id="ch_router"/>&nbsp;Router<br/>
159 <input type="checkbox" name="ch_node" id="ch_node"/>&nbsp;Node<br/>
160 <input type="checkbox" name="ch_infopoint" id="ch_infopoint"/>&nbsp;Infopoint<br/>
161 <input type="checkbox" name="ch_noping" id="ch_noping"/>&nbsp;Client & Switch<br/>
162 <input type="checkbox" name="ch_legend" id="ch_legend"/>&nbsp;Legend<br/><br/>
1631unreal 
1649unreal <input type="checkbox" name="ch_name" id="ch_name"/>&nbsp;Name<br/>
165 <input type="checkbox" name="ch_ip" id="ch_ip"/>&nbsp;IP<br/>
166 <input type="checkbox" name="ch_status" id="ch_status"/>&nbsp;Status<br/><br/>
1671unreal 
1689unreal <input type="checkbox" name="ch_backbone" id="ch_backbone"/>&nbsp;Backbone links<br/>
169 <input type="checkbox" name="ch_client" id="ch_client"/>&nbsp;Client links<br/>
170 <input type="checkbox" name="ch_inp" id="ch_inp"/>&nbsp;In Planning links<br/><br/>
1711unreal 
1729unreal <input type="button" name="apply" id="apply" value="Apply" onclick="javascript:reDraw();"/><br/>
1731unreal </form>
1749unreal </div>
1751unreal </div>
176</div>
1779unreal<div class="clr">
178 <br/><strong>Last Update: </strong><span id="mapstats_update"><em>Loading...</em></span>
1791unreal</div>
180 
181</body>
182</html>

Powered by WebSVN 2.2.1