jablonka.czprosek.czf

mapstats

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

 

Line No. Rev Author Line
11unreal<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "DTD/xhtml1-transitional.dtd">
3 
4<html>
5 <head>
64unreal <title>Mapstats v3.1 AJAX</title>
71unreal <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
8 <meta http-equiv="Content-Script-Type" content="text/javascript" />
9 <meta http-equiv="cache-control" content="no-cache" />
10 <meta http-equiv="pragma" content="no-cache" />
11 <link href="mapstats.css" rel="stylesheet" type="text/css" />
122unreal <style>
13 html,body { overflow: auto; border-width: 0px; }
14 html>body { overflow: visible; }
15 </style>
161unreal 
17<!--[if IE]><script type="text/javascript" src="excanvas-compressed.js"></script><![endif]-->
18<script type="text/javascript" src="mapstats.js"></script>
19 
20</head>
21 
22<body>
23 
24<script type="text/javascript">
25<!--
26 
27 // set full resolution (100%) of map (width and height)
28 var full_x = 3100;
29 var full_y = 2230;
30 
31 // set outerDiv resolution (width and height)
32 var inres_x = 700;
33 var inres_y = 500;
34 
35 // set magnifier resolution (width and height)
36 var magres_x = 150;
37 var magres_y = parseInt(full_y / (full_x / magres_x));
38 
39 // set start position (from left and top)
40 var start_left = 110;
41 var start_top = 50;
42 
43 // set zoom multiple
44 var eq_mini = 0.33; // 33%
45 var eq_medi = 0.5; // 50%
46 var eq_high = 0.66; // 66%
47 var eq_orig = 1; // 100%
48 
49 // set start multiple
50 var start_mul = eq_mini;
51 
52 // set displayed functions
53 var ch_ap = true;
54 var ch_router = true;
55 var ch_node = true;
56 var ch_infopoint = true;
57 var ch_noping = true;
58 var ch_legend = true;
59 var ch_name = true;
60 var ch_ip = true;
61 var ch_status = true;
62 var ch_backbone = true;
63 var ch_client = true;
64 var ch_inp = true;
65 
66 // set source data
67 var nodes = 'name.nodes';
68 var noping = 'name.noping';
69 var links = 'name.links';
70 var infopoints = 'name.infopoints';
71 var state = 'name.state';
72 
73 // set colors of links
74 var wifi_client = "rgb(0, 200, 0)";
75 var wifi_backbone = "rgb(250, 250, 0)";
76 var eth_100 = "rgb(173, 216, 230)";
77 var fso = "rgb(190, 0, 0)";
78 var fso_backup = "rgb(255, 80, 80)";
79 var ghz5 = "rgb(200, 200, 200)";
80 var ghz10 = "rgb(255, 255, 255)";
81 var fiber = "rgb(220, 0, 220)";
82 var other = "rgb(0, 0, 250)";
83 
84 // set alpha colors of links
85 var wifi_client_a = "rgba(0, 200, 0, 0.6)";
86 var wifi_backbone_a = "rgba(250, 250, 0, 0.6)";
87 var eth_100_a = "rgba(173, 216, 230, 0.6)";
88 var fso_a = "rgba(190, 0, 0, 0.6)";
89 var fso_backup_a = "rgba(255, 80, 80, 0.6)";
90 var ghz5_a = "rgba(200, 200, 200, 0.6)";
91 var ghz10_a = "rgba(255, 255, 255, 0.6)";
92 var fiber_a = "rgba(220, 0, 220, 0.6)";
93 var other_a = "rgba(0, 0, 250, 0.6)";
94 
95 // set names of links
96 var name1 = "Wifi Client";
97 var name2 = "Wifi Backbone";
98 var name3 = "Ethernet";
99 var name4 = "FSO";
100 var name5 = "FSO + Backup";
101 var name6 = "5 GHz";
102 var name7 = "10 GHz";
103 var name8 = "Fiber";
104 var name9 = "Other";
105 
106 // set name for link in planning (for legend)
107 var inp = "(InP)";
108 
109 // Let's start it
1108unreal var minmax_SCANDELAY = 500;
111 var minmax_scanner;
112 minmax_scan();
113 minmax_scanner = window.setInterval(minmax_scan, minmax_SCANDELAY);
114 
1151unreal window.onload = function() {
116 nactiSoubory();
117 mapInit(start_mul);
118 nastavCheck();
1198unreal if (navigator.appName!="Microsoft Internet Explorer") {
120 canvasInit(start_mul);
1215unreal }
1221unreal timerMe();
123 }
124 
125// -->
126</script>
127 
128<!-- main map -->
1295unreal<div style="float:left;">
1301unreal <div style="float:left;">
131 <div id="outerDiv">
132 <div id="zoomPanel">
133 <div id="opaque">
134 <!-- zoom 0 -->
135 <div style="position:absolute;top:5px;left:5px;width:20px; height:5px;font-size: 0px;border:solid 1px black;background: #c5eec5;" onclick="mainMap.setZoom(0)"></div>
136 <!-- zoom 1 -->
137 <div style="position:absolute;top:17px;left:5px;width:20px; height:5px;font-size: 0px;border:solid 1px black;background: #c5eec5;" onclick="mainMap.setZoom(1)"></div>
138 <!-- zoom 2 -->
139 <div style="position:absolute;top:29px;left:5px;width:20px; height:5px;font-size: 0px;border:solid 1px black;background: #c5eec5;" onclick="mainMap.setZoom(2)"></div>
140 <!-- zoom 3 -->
141 <div style="position:absolute;top:41px;left:5px;width:20px; height:5px;font-size: 0px;border:solid 1px black;background: #c5eec5;" onclick="mainMap.setZoom(3)"></div>
142 </div>
143 <div id="translucent">
144 </div>
145 </div>
146 <div id="legend">
147 <div id="legendcanvas">
148 <canvas id="paintlegend" width="25" height="0"></canvas>
149 </div>
150 <div id="mapstats_legend">
151 </div>
152 </div>
153 <div id="innerDiv">
154 <div id="mapstats">
155 <canvas id="paint"></canvas>
1565unreal <div id="mapstats_wave"></div>
1571unreal <div id="mapstats_infopoint"></div>
158 <div id="mapstats_ip"></div>
159 <div id="mapstats_status"></div>
160 <div id="mapstats_name"></div>
1615unreal <div id="mapstats_points"></div>
1621unreal </div>
163 <div id="mapstats2">
164 <canvas id="paint2"></canvas>
165 </div>
166 </div>
167 </div>
168 <div style="clear:both;"></div>
169 <div id="underMap">
170 <div id="resolutionInfo"></div>
1714unreal <div id="version"><a href="http://www.jklir.net/" target="jklir">Mapstats v3.1 AJAX&nbsp;</a></div>
1721unreal </div>
173 </div>
174 <div id="menuset">
175 <!-- mini map -->
176 <div class="miniMap">
177 <div id="miniMapInner">
1784unreal <img src="mini/mini_map.jpg" alt="" border="0" />
1791unreal </div>
180 <div id="magnifier">
181 </div>
182 </div>
183 <div id="infoDiv">
184 
185 </div>
186 <div id="checkboxes">
187 <form action="#" name="form_map">
188 <br>
189 <input type="checkbox" name="ch_ap">&nbsp;AP<br/>
190 <input type="checkbox" id="ch_router">&nbsp;Router<br/>
191 <input type="checkbox" id="ch_node">&nbsp;Node<br/>
192 <input type="checkbox" id="ch_infopoint">&nbsp;Infopoint<br/>
193 <input type="checkbox" id="ch_noping">&nbsp;Client & Switch<br/>
194 <input type="checkbox" id="ch_legend">&nbsp;Legend<br/><br/>
195 
196 <input type="checkbox" id="ch_name">&nbsp;Name<br/>
197 <input type="checkbox" id="ch_ip">&nbsp;IP<br/>
198 <input type="checkbox" id="ch_status">&nbsp;Status<br/><br/>
199 
200 <input type="checkbox" id="ch_backbone">&nbsp;Backbone links<br/>
201 <input type="checkbox" id="ch_client">&nbsp;Client links<br/>
202 <input type="checkbox" id="ch_inp">&nbsp;In Planning links<br/><br/>
203 
204 <input type="button" id="apply" value="Apply" onClick="reDraw();"><br/>
205 </form>
206 </div>
207</div>
208<div style="clear:both">
209 <br/><strong>Last Update: </strong><span id="mapstats_update" style="_width: 100%;"></span>
210</div>
211 
212</body>
213</html>

Powered by WebSVN 2.2.1