1 | 9 | unreal | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> |
2 | 1 | unreal | <html> |
3 | 9 | unreal | <head> |
4 | 10 | unreal | <title>Mapstats v4.1 AJAX</title> |
5 | 9 | unreal | <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> |
12 | 1 | unreal | </head> |
13 | | | |
14 | | | <body> |
15 | | | |
16 | | | <script type="text/javascript"> |
17 | | | <!-- |
18 | | | |
19 | | | // set full resolution (100%) of map (width and height) |
20 | 9 | unreal | var full_x = 5420; |
21 | | | var full_y = 3696; |
22 | 1 | unreal | |
23 | | | // set outerDiv resolution (width and height) |
24 | 9 | unreal | var inres_x = 685; |
25 | 1 | unreal | 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) |
32 | 9 | unreal | var start_left = 650; |
33 | | | var start_top = 165; |
34 | 1 | unreal | |
35 | | | // set zoom multiple |
36 | 9 | unreal | 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% |
40 | 1 | unreal | |
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; |
52 | 9 | unreal | var ch_ip = false; |
53 | 1 | unreal | 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() { |
102 | 9 | unreal | loadFiles(); |
103 | 1 | unreal | mapInit(start_mul); |
104 | 9 | unreal | setCheckboxes(); |
105 | | | canvasInit(start_mul); |
106 | | | setAutoLoader(); |
107 | 1 | unreal | } |
108 | | | |
109 | | | // --> |
110 | | | </script> |
111 | | | |
112 | | | <!-- main map --> |
113 | 9 | unreal | <div id="wrapper"> |
114 | | | <div id="map"> |
115 | 1 | unreal | <div id="outerDiv"> |
116 | | | <div id="zoomPanel"> |
117 | 9 | unreal | <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> |
122 | 1 | unreal | </div> |
123 | 9 | unreal | <div id="translucent"></div> |
124 | 1 | unreal | </div> |
125 | 9 | unreal | <div id="legend"> |
126 | | | <div id="legendcanvas"><canvas id="paintlegend" width="25" height="0"></canvas></div> |
127 | | | <div id="mapstats_legend"></div> |
128 | | | </div> |
129 | 1 | unreal | <div id="innerDiv"> |
130 | | | <div id="mapstats"> |
131 | 9 | unreal | <div id="paint"></div> |
132 | 5 | unreal | <div id="mapstats_wave"></div> |
133 | 1 | unreal | <div id="mapstats_infopoint"></div> |
134 | | | <div id="mapstats_ip"></div> |
135 | | | <div id="mapstats_status"></div> |
136 | | | <div id="mapstats_name"></div> |
137 | 5 | unreal | <div id="mapstats_points"></div> |
138 | 1 | unreal | </div> |
139 | 9 | unreal | <div id="mapstats_over"></div> |
140 | 1 | unreal | </div> |
141 | | | </div> |
142 | 9 | unreal | <div class="clr"></div> |
143 | 1 | unreal | <div id="underMap"> |
144 | | | <div id="resolutionInfo"></div> |
145 | 10 | unreal | <div id="version"><a href="http://www.jklir.net/" target="jklir">Mapstats v4.1 AJAX </a></div> |
146 | 1 | unreal | </div> |
147 | | | </div> |
148 | | | <div id="menuset"> |
149 | | | <!-- mini map --> |
150 | 9 | unreal | <div class="miniMap"> |
151 | | | <div id="miniMapInner"><img src="mini/mini_map.jpg" alt="" border="0" /></div> |
152 | | | <div id="magnifier"></div> |
153 | 1 | unreal | </div> |
154 | 9 | unreal | <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"/> AP<br/> |
158 | | | <input type="checkbox" name="ch_router" id="ch_router"/> Router<br/> |
159 | | | <input type="checkbox" name="ch_node" id="ch_node"/> Node<br/> |
160 | | | <input type="checkbox" name="ch_infopoint" id="ch_infopoint"/> Infopoint<br/> |
161 | | | <input type="checkbox" name="ch_noping" id="ch_noping"/> Client & Switch<br/> |
162 | | | <input type="checkbox" name="ch_legend" id="ch_legend"/> Legend<br/><br/> |
163 | 1 | unreal | |
164 | 9 | unreal | <input type="checkbox" name="ch_name" id="ch_name"/> Name<br/> |
165 | | | <input type="checkbox" name="ch_ip" id="ch_ip"/> IP<br/> |
166 | | | <input type="checkbox" name="ch_status" id="ch_status"/> Status<br/><br/> |
167 | 1 | unreal | |
168 | 9 | unreal | <input type="checkbox" name="ch_backbone" id="ch_backbone"/> Backbone links<br/> |
169 | | | <input type="checkbox" name="ch_client" id="ch_client"/> Client links<br/> |
170 | | | <input type="checkbox" name="ch_inp" id="ch_inp"/> In Planning links<br/><br/> |
171 | 1 | unreal | |
172 | 9 | unreal | <input type="button" name="apply" id="apply" value="Apply" onclick="javascript:reDraw();"/><br/> |
173 | 1 | unreal | </form> |
174 | 9 | unreal | </div> |
175 | 1 | unreal | </div> |
176 | | | </div> |
177 | 9 | unreal | <div class="clr"> |
178 | | | <br/><strong>Last Update: </strong><span id="mapstats_update"><em>Loading...</em></span> |
179 | 1 | unreal | </div> |
180 | | | |
181 | | | </body> |
182 | | | </html> |