jablonka.czprosek.czf

mapstats

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

 

Line No. Rev Author Line
19unreal<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
21unreal 
3<html>
49unreal<head>
5 <title>Mapstats v4.0 AJAX</title>
6 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7 <meta http-equiv="cache-control" content="no-cache" />
8 <meta http-equiv="pragma" content="no-cache" />
9 <meta http-equiv="imagetoolbar" content="no" />
10 <link href="mapstats.css" rel="stylesheet" type="text/css" />
11 <!--[if lte IE 8]><script type="text/javascript" src="excanvas.compiled.js"></script><![endif]-->
12 <script type="text/javascript" src="mapstats.min.js"></script>
131unreal</head>
14 
15<body>
16 
17<script type="text/javascript">
18<!--
19 
20 // set full resolution (100%) of map (width and height)
219unreal var full_x = 5420;
22 var full_y = 3696;
231unreal 
24 // set outerDiv resolution (width and height)
259unreal var inres_x = 685;
261unreal var inres_y = 500;
27 
28 // set magnifier resolution (width and height)
29 var magres_x = 150;
30 var magres_y = parseInt(full_y / (full_x / magres_x));
31 
32 // set start position (from left and top)
339unreal var start_left = 650;
34 var start_top = 165;
351unreal 
36 // set zoom multiple
379unreal var eq_mini = 0.2; // 20%
38 var eq_medi = 0.5; // 50%
39 var eq_high = 0.7; // 70%
40 var eq_orig = 1; // 100%
411unreal 
42 // set start multiple
43 var start_mul = eq_mini;
44 
45 // set displayed functions
46 var ch_ap = true;
47 var ch_router = true;
48 var ch_node = true;
49 var ch_infopoint = true;
50 var ch_noping = true;
51 var ch_legend = true;
52 var ch_name = true;
539unreal var ch_ip = false;
541unreal var ch_status = true;
55 var ch_backbone = true;
56 var ch_client = true;
57 var ch_inp = true;
58 
59 // set source data
60 var nodes = 'name.nodes';
61 var noping = 'name.noping';
62 var links = 'name.links';
63 var infopoints = 'name.infopoints';
64 var state = 'name.state';
65 
66 // set colors of links
67 var wifi_client = "rgb(0, 200, 0)";
68 var wifi_backbone = "rgb(250, 250, 0)";
69 var eth_100 = "rgb(173, 216, 230)";
70 var fso = "rgb(190, 0, 0)";
71 var fso_backup = "rgb(255, 80, 80)";
72 var ghz5 = "rgb(200, 200, 200)";
73 var ghz10 = "rgb(255, 255, 255)";
74 var fiber = "rgb(220, 0, 220)";
75 var other = "rgb(0, 0, 250)";
76 
77 // set alpha colors of links
78 var wifi_client_a = "rgba(0, 200, 0, 0.6)";
79 var wifi_backbone_a = "rgba(250, 250, 0, 0.6)";
80 var eth_100_a = "rgba(173, 216, 230, 0.6)";
81 var fso_a = "rgba(190, 0, 0, 0.6)";
82 var fso_backup_a = "rgba(255, 80, 80, 0.6)";
83 var ghz5_a = "rgba(200, 200, 200, 0.6)";
84 var ghz10_a = "rgba(255, 255, 255, 0.6)";
85 var fiber_a = "rgba(220, 0, 220, 0.6)";
86 var other_a = "rgba(0, 0, 250, 0.6)";
87 
88 // set names of links
89 var name1 = "Wifi Client";
90 var name2 = "Wifi Backbone";
91 var name3 = "Ethernet";
92 var name4 = "FSO";
93 var name5 = "FSO + Backup";
94 var name6 = "5 GHz";
95 var name7 = "10 GHz";
96 var name8 = "Fiber";
97 var name9 = "Other";
98 
99 // set name for link in planning (for legend)
100 var inp = "(InP)";
101 
102 window.onload = function() {
1039unreal loadFiles();
1041unreal mapInit(start_mul);
1059unreal setCheckboxes();
106 canvasInit(start_mul);
107 setAutoLoader();
1081unreal }
109 
110// -->
111</script>
112 
113<!-- main map -->
1149unreal<div id="wrapper">
115 <div id="map">
1161unreal <div id="outerDiv">
117 <div id="zoomPanel">
1189unreal <div id="zooms">
119 <!-- zoom 0 --><a id="zoom0" href="javascript:mainMap.setZoom(0)"></a>
120 <!-- zoom 1 --><a id="zoom1" href="javascript:mainMap.setZoom(1)"></a>
121 <!-- zoom 2 --><a id="zoom2" href="javascript:mainMap.setZoom(2)"></a>
122 <!-- zoom 3 --><a id="zoom3" href="javascript:mainMap.setZoom(3)"></a>
1231unreal </div>
1249unreal <div id="translucent"></div>
1251unreal </div>
1269unreal <div id="legend">
127 <div id="legendcanvas"><canvas id="paintlegend" width="25" height="0"></canvas></div>
128 <div id="mapstats_legend"></div>
129 </div>
1301unreal <div id="innerDiv">
131 <div id="mapstats">
1329unreal <div id="paint"></div>
1335unreal <div id="mapstats_wave"></div>
1341unreal <div id="mapstats_infopoint"></div>
135 <div id="mapstats_ip"></div>
136 <div id="mapstats_status"></div>
137 <div id="mapstats_name"></div>
1385unreal <div id="mapstats_points"></div>
1391unreal </div>
1409unreal <div id="mapstats_over"></div>
1411unreal </div>
142 </div>
1439unreal <div class="clr"></div>
1441unreal <div id="underMap">
145 <div id="resolutionInfo"></div>
1469unreal <div id="version"><a href="http://www.jklir.net/" target="jklir">Mapstats v4.0 AJAX&nbsp;</a></div>
1471unreal </div>
148 </div>
149 <div id="menuset">
150 <!-- mini map -->
1519unreal <div class="miniMap">
152 <div id="miniMapInner"><img src="mini/mini_map.jpg" alt="" border="0" /></div>
153 <div id="magnifier"></div>
1541unreal </div>
1559unreal <div id="infoDiv">0 x 0</div>
156 <div id="checkboxes">
157 <form action="#" name="form_map"><br/>
158 <input type="checkbox" name="ch_ap" id="ch_ap"/>&nbsp;AP<br/>
159 <input type="checkbox" name="ch_router" id="ch_router"/>&nbsp;Router<br/>
160 <input type="checkbox" name="ch_node" id="ch_node"/>&nbsp;Node<br/>
161 <input type="checkbox" name="ch_infopoint" id="ch_infopoint"/>&nbsp;Infopoint<br/>
162 <input type="checkbox" name="ch_noping" id="ch_noping"/>&nbsp;Client & Switch<br/>
163 <input type="checkbox" name="ch_legend" id="ch_legend"/>&nbsp;Legend<br/><br/>
1641unreal 
1659unreal <input type="checkbox" name="ch_name" id="ch_name"/>&nbsp;Name<br/>
166 <input type="checkbox" name="ch_ip" id="ch_ip"/>&nbsp;IP<br/>
167 <input type="checkbox" name="ch_status" id="ch_status"/>&nbsp;Status<br/><br/>
1681unreal 
1699unreal <input type="checkbox" name="ch_backbone" id="ch_backbone"/>&nbsp;Backbone links<br/>
170 <input type="checkbox" name="ch_client" id="ch_client"/>&nbsp;Client links<br/>
171 <input type="checkbox" name="ch_inp" id="ch_inp"/>&nbsp;In Planning links<br/><br/>
1721unreal 
1739unreal <input type="button" name="apply" id="apply" value="Apply" onclick="javascript:reDraw();"/><br/>
1741unreal </form>
1759unreal </div>
1761unreal </div>
177</div>
1789unreal<div class="clr">
179 <br/><strong>Last Update: </strong><span id="mapstats_update"><em>Loading...</em></span>
1801unreal</div>
181 
182</body>
183</html>

Powered by WebSVN 2.2.1