forked from zheng108/svgmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvgmap.html
493 lines (434 loc) · 20.2 KB
/
svgmap.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SVG 地图</title>
<script type="text/javascript" src="js/lib/jquery.js"></script>
<script type="text/javascript" src="js/lib/raphael-min.js"></script>
<script type="text/javascript" src="js/res/chinaMapConfig.js"></script>
<script type="text/javascript" src="js/res/worldMapConfig.js"></script>
<script type="text/javascript" src="js/map.js"></script>
<style type="text/css">
/* base */
html{background:#fff;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,p,form,fieldset,legend,input,textarea,select,button,th,td,div{margin:0; padding:0}button,input,select,textarea{font:12px/1.5 tahoma,Helvetica,arial,\5b8b\4f53}input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}th{text-align:inherit}fieldset,img{border:0}iframe{display:block}ol,ul,li{list-style:none}del{text-decoration:line-through}ins,a{text-decoration:none}a:focus{outline:none}h1,h2,h3,h4,h5,h6{font-size:100%}.clear{clear:both}.clearfix:after{content:".";display:block;height:0;font-size:0;clear:both;visibility:hidden}.clearfix{zoom:1}
/* base */
body{font:12px/1.5 "Lucida Grande","Lucida Sans Unicode", Tahoma, SimSun,Helvetica,sans-serif; color:#2E313A;}
.wrap{ width:900px; margin:0 auto; background:url(bg.png); border-left:1px solid #DDD; border-right:1px solid #DDD;}
a{color:#0e4279; -moz-transition:color 0.3s ease 0s;}
a:hover{color:#5B636A;}
h1{ padding:20px 0 0 20px; font-size:24px; line-height:50px;}
h2{ margin-top:30px; padding-left:10px; background-color: #ddd; font-size:14px; line-height:30px;}
/* 提示自定义 */
.stateTip, #StateTip{display:none; position:absolute; padding:8px; background:#fff; border:2px solid #2385B1; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; font-size:12px; font-family:Tahoma; color:#333;}
.mapInfo i{ display:inline-block; width:15px; height:15px; margin-top:5px; line-height:15px; font-style:normal; background:#aeaeae; color:#fff; font-size:11px; font-family: Tahoma; -webkit-border-radius:15px; border-radius:15px; text-align:center}
.mapInfo i.active{background:#E27F21;}
.mapInfo span{ padding:0 5px 0 3px;}
.mapInfo b{ font-weight:normal; color:#2770B5}
</style>
<script type="text/javascript">
$(function(){
$('#ChinaMap').SVGMap({
mapName: 'china'
});
$('#ChinaMap1').SVGMap({
mapName: 'china',
mapWidth: 600,
mapHeight: 500
});
$('#ChinaMap2').SVGMap({
mapName: 'china',
stateData: {
'heilongjiang': {'stateInitColor': 1, 'baifenbi': 0.236},
'beijing': {'stateInitColor': 2},
'shanghai': {'stateInitColor': 3},
'tianjin': {'stateInitColor': 4},
'sichuan': {'stateInitColor': 5},
'shandong': {'stateInitColor': 6},
'shanxi': {'stateInitColor': 3},
'zhejiang': {'stateInitColor': 4},
'jiangshu': {'stateInitColor': 2},
'hunan': {'stateInitColor': 4},
'guizou': {'stateInitColor': 5},
'neimenggu': {'stateInitColor': 6},
'henan': {'stateInitColor': 3},
'gansu': {'stateInitColor': 4},
'ningxia': {'stateInitColor': 2},
'jilin': {'diabled': true}
}
});
$('#ChinaMap3').SVGMap({
mapName: 'china',
stateDataType: 'xml',
stateSettingsXmlPath: 'js/res/chinaMapSettings.xml'
});
$('#ChinaMap4').SVGMap({
stateTipHtml: function(stateData, obj){
return 'id:' + ((stateData)[obj.id] && (stateData)[obj.id].baifenbi || obj.id) + '<br/>name:' + obj.name;
}
});
$('#ChinaMap5').SVGMap({
hoverCallback: function(stateData, obj){
$('#HoverCallback').html('hover:'+obj.name);
}
});
$('#ChinaMap6').SVGMap({
clickCallback: function(stateData, obj){
$('#ClickCallback').html('点击了:'+obj.name);
}
});
// 外部控制地图
var mapObj = {};
$('#ChinaMap7').SVGMap({
external: mapObj
});
$('#ChangeMap').click(function(){
mapObj.shandong.attr({fill: '#111'});
mapObj.shandong.mouseout(function(){
this.animate({
fill: '#ddd'
}, 250);
});
});
$('#ChangeMap1').click(function(){
mapObj.sichuan.attr({fill: '#00f'});
mapObj.sichuan.mouseout(function(){
this.animate({
fill: '#f0f'
}, 250);
});
});
$('#ChinaMap8').SVGMap({
showTip: false
});
// $.ajax({
// url: projectName+'/idea123Action.do?method=getIdea123MapData&reportName='+reportName,
// data: data,
// dataType: 'json',
// success: function(data){
var data = {"jiangsu":{"value":"30.05%","index":"1","stateInitColor":"0"},"henan":{"value":"19.77%","index":"2","stateInitColor":"0"},"anhui":{"value":"10.85%","index":"3","stateInitColor":"0"},"zhejiang":{"value":"10.02%","index":"4","stateInitColor":"0"},"liaoning":{"value":"8.46%","index":"5","stateInitColor":"0"},"beijing":{"value":"4.04%","index":"6","stateInitColor":"1"},"hubei":{"value":"3.66%","index":"7","stateInitColor":"1"},"jilin":{"value":"2.56%","index":"8","stateInitColor":"1"},"shanghai":{"value":"2.47%","index":"9","stateInitColor":"1"},"guangxi":{"value":"2.3%","index":"10","stateInitColor":"1"},"sichuan":{"value":"1.48%","index":"11","stateInitColor":"2"},"guizhou":{"value":"0.99%","index":"12","stateInitColor":"2"},"hunan":{"value":"0.78%","index":"13","stateInitColor":"2"},"shandong":{"value":"0.7%","index":"14","stateInitColor":"2"},"guangdong":{"value":"0.44%","index":"15","stateInitColor":"2"},"jiangxi":{"value":"0.34%","index":"16","stateInitColor":"3"},"fujian":{"value":"0.27%","index":"17","stateInitColor":"3"},"yunnan":{"value":"0.23%","index":"18","stateInitColor":"3"},"hainan":{"value":"0.21%","index":"19","stateInitColor":"3"},"shanxi":{"value":"0.11%","index":"20","stateInitColor":"3"},"hebei":{"value":"0.11%","index":"21","stateInitColor":"4"},"neimongol":{"value":"0.04%","index":"22","stateInitColor":"4"},"tianjin":{"value":"0.04%","index":"23","stateInitColor":"4"},"gansu":{"value":"0.04%","index":"24","stateInitColor":"4"},"shaanxi":{"value":"0.02%","index":"25","stateInitColor":"4"},"macau":{"value":"0.0%","index":"26","stateInitColor":"7"},"hongkong":{"value":"0.0%","index":"27","stateInitColor":"7"},"taiwan":{"value":"0.0%","index":"28","stateInitColor":"7"},"qinghai":{"value":"0.0%","index":"29","stateInitColor":"7"},"xizang":{"value":"0.0%","index":"30","stateInitColor":"7"},"ningxia":{"value":"0.0%","index":"31","stateInitColor":"7"},"xinjiang":{"value":"0.0%","index":"32","stateInitColor":"7"},"heilongjiang":{"value":"0.0%","index":"33","stateInitColor":"7"},"chongqing":{"value":"0.0%","index":"34","stateInitColor":"7"}};
var i = 1;
for(k in data){
if(i <= 12){
var _cls = i < 4 ? 'active' : '';
$('#MapControl .list1').append('<li name="'+k+'"><div class="mapInfo"><i class="'+_cls+'">'+(i++)+'</i><span>'+chinaMapConfig.names[k]+'</span><b>'+data[k].value+'</b></div></li>')
}else if(i <= 24){
$('#MapControl .list2').append('<li name="'+k+'"><div class="mapInfo"><i>'+(i++)+'</i><span>'+chinaMapConfig.names[k]+'</span><b>'+data[k].value+'</b></div></li>')
}else{
$('#MapControl .list3').append('<li name="'+k+'"><div class="mapInfo"><i>'+(i++)+'</i><span>'+chinaMapConfig.names[k]+'</span><b>'+data[k].value+'</b></div></li>')
}
}
var mapObj_1 = {};
var stateColorList = ['003399', '0058B0', '0071E1', '1C8DFF', '51A8FF', '82C0FF', 'AAD5ee', 'AAD5FF'];
$('#RegionMap').SVGMap({
external: mapObj_1,
mapName: 'china',
mapWidth: 350,
mapHeight: 350,
stateData: data,
// stateTipWidth: 118,
// stateTipHeight: 47,
// stateTipX: 2,
// stateTipY: 0,
stateTipHtml: function (mapData, obj) {
var _value = mapData[obj.id].value;
var _idx = mapData[obj.id].index;
var active = '';
_idx < 4 ? active = 'active' : active = '';
var tipStr = '<div class="mapInfo"><i class="' + active + '">' + _idx + '</i><span>' + obj.name + '</span><b>' + _value + '</b></div>';
return tipStr;
}
});
$('#MapControl li').hover(function () {
var thisName = $(this).attr('name');
var thisHtml = $(this).html();
$('#MapControl li').removeClass('select');
$(this).addClass('select');
$(document.body).append('<div id="StateTip"></div');
$('#StateTip').css({
left: $(mapObj_1[thisName].node).offset().left - 50,
top: $(mapObj_1[thisName].node).offset().top - 40
}).html(thisHtml).show();
mapObj_1[thisName].attr({
fill: '#E99A4D'
});
}, function () {
var thisName = $(this).attr('name');
$('#StateTip').remove();
$('#MapControl li').removeClass('select');
mapObj_1[$(this).attr('name')].attr({
fill: "#" + stateColorList[data[$(this).attr('name')].stateInitColor]
});
});
$('#MapColor').show();
// }
// });
$('#WorldMap').SVGMap({
mapName: 'world',
mapWidth: 600,
mapHeight: 400
});
});
</script>
</head>
<body>
<div class="wrap">
<h1>SVG 地图(By Rocky)</h1>
<div class="items" id="Item0">
<h2>中国地图--默认</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="ChinaMap"></div>
<pre class="brush:js">
$('#ChinaMap').SVGMap({
mapName: 'china'
});
</pre>
</div>
</div>
<div class="items" id="Item1">
<h2>自定义宽高</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="ChinaMap1"></div>
<pre class="brush:js">
$('#ChinaMap1').SVGMap({
mapName: 'china',
mapWidth: 600,
mapHeight: 500
});
</pre>
</div>
</div>
<div class="items" id="Item2">
<h2>自定义数据-json</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="ChinaMap2"></div>
<pre class="brush:js">
$('#ChinaMap2').SVGMap({
mapName: 'china',
stateData: {
'heilongjiang': {'stateInitColor': 1, 'baifenbi': 0.236},
'beijing': {'stateInitColor': 2},
'shanghai': {'stateInitColor': 3},
'tianjin': {'stateInitColor': 4},
'sichuan': {'stateInitColor': 5},
'shandong': {'stateInitColor': 6},
'shanxi': {'stateInitColor': 3},
'zhejiang': {'stateInitColor': 4},
'jiangshu': {'stateInitColor': 2},
'hunan': {'stateInitColor': 4},
'guizou': {'stateInitColor': 5},
'neimenggu': {'stateInitColor': 6},
'henan': {'stateInitColor': 3},
'gansu': {'stateInitColor': 4},
'ningxia': {'stateInitColor': 2},
'jilin': {'diabled': true}
}
});
</pre>
</div>
</div>
<div class="items" id="Item3">
<h2>自定义数据-xml</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="ChinaMap3"></div>
<pre class="brush:js">
$('#ChinaMap3').SVGMap({
mapName: 'china',
stateDataType: 'xml',
stateSettingsXmlPath: 'js/res/chinaMapSettings.xml'
});
</pre>
</div>
</div>
<div class="items" id="Item4">
<h2>提示自定义</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="ChinaMap4"></div>
<pre class="brush:js">
$('#ChinaMap4').SVGMap({
stateTipHtml: function(stateData, obj){
return 'id:' + ((stateData)[obj.id] && (stateData)[obj.id].baifenbi || obj.id) + '<br/>name:' + obj.name;
}
});
</pre>
</div>
</div>
<div class="items" id="Item5">
<h2>hover回调</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="HoverCallback" style="font-size:14px; color:red"></div>
<div id="ChinaMap5"></div>
<pre class="brush:js">
$('#ChinaMap5').SVGMap({
hoverCallback: function(stateData, obj){
$('#HoverCallback').html('hover:'+obj.name);
}
});
</pre>
</div>
</div>
<div class="items" id="Item6">
<h2>click回调</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="ClickCallback" style="font-size:14px; color:red"></div>
<div id="ChinaMap6"></div>
<pre class="brush:js">
$('#ChinaMap6').SVGMap({
clickCallback: function(stateData, obj){
$('#ClickCallback').html('点击了:'+obj.name);
}
});
</pre>
</div>
</div>
<div class="items" id="Item7">
<h2>外部事件改变地图内容</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<a id="ChangeMap" href="javascript:;" style="line-height:30px;"> 改变山东的颜色</a>
<a id="ChangeMap1" href="javascript:;" style="line-height:30px;"> 改变四川的颜色</a>
<div id="ChinaMap7"></div>
<pre class="brush:js">
var mapObj = {};
$('#ChinaMap7').SVGMap({
external: mapObj
});
$('#ChangeMap').click(function(){
mapObj.shandong.attr({fill: '#111'});
mapObj.shandong.mouseout(function(){
this.animate({
fill: '#ddd'
}, 250);
});
});
$('#ChangeMap1').click(function(){
mapObj.sichuan.attr({fill: '#00f'});
mapObj.sichuan.mouseout(function(){
this.animate({
fill: '#f0f'
}, 250);
});
});
</pre>
</div>
</div>
<div class="items" id="Item8">
<h2>不显示提示</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="ChinaMap8"></div>
<pre class="brush:js">
$('#ChinaMap8').SVGMap({
showTip: false
});
</pre>
</div>
</div>
<div class="items" id="Item9">
<h2>外部控制</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<style type="text/css">
.regionList{float:left; margin-top:15px;}
.regionList ul{float:left; width:110px; height:100%; margin-right:5px; display:inline; font-family:"微软雅黑"}
.regionList ul li{ height:24px; margin-left:10px; padding:0 0px; border:1px solid #fff; line-height:24px;}
.regionList ul li.select{border:1px solid #D3D3D3; background:#FFF1BF}
.mapInfo i{ display:inline-block; width:15px; height:15px; margin-top:5px; line-height:15px; font-style:normal; background:#aeaeae; color:#fff; font-size:11px; font-family: Tahoma; -webkit-border-radius:15px; border-radius:15px; text-align:center}
.mapInfo i.active{background:#E27F21;}
.mapInfo span{ padding:0 5px 0 3px;}
.mapInfo b{ font-weight:normal; color:#2770B5}
.regionMap{float:left; margin-left:70px; display:inline;}
</style>
<div id="Region" style="position:relative; height:360px;">
<div class="regionList" id="MapControl">
<ul class="list1"></ul>
<ul class="list2"></ul>
<ul class="list3"></ul>
</div>
<div class="regionMap" id="RegionMap"></div>
<div id="MapColor" style=" display:none; float:left; width:30px; height:180px; margin:80px 0 0 10px; display:inline; background:url(images/map_color.png) center 0;"></div>
</div>
<pre class="brush:js">
var data = {"jiangsu":{"value":"30.05%","index":"1","stateInitColor":"0"},"henan":{"value":"19.77%","index":"2","stateInitColor":"0"},"anhui":{"value":"10.85%","index":"3","stateInitColor":"0"},"zhejiang":{"value":"10.02%","index":"4","stateInitColor":"0"},"liaoning":{"value":"8.46%","index":"5","stateInitColor":"0"},"beijing":{"value":"4.04%","index":"6","stateInitColor":"1"},"hubei":{"value":"3.66%","index":"7","stateInitColor":"1"},"jilin":{"value":"2.56%","index":"8","stateInitColor":"1"},"shanghai":{"value":"2.47%","index":"9","stateInitColor":"1"},"guangxi":{"value":"2.3%","index":"10","stateInitColor":"1"},"sichuan":{"value":"1.48%","index":"11","stateInitColor":"2"},"guizhou":{"value":"0.99%","index":"12","stateInitColor":"2"},"hunan":{"value":"0.78%","index":"13","stateInitColor":"2"},"shandong":{"value":"0.7%","index":"14","stateInitColor":"2"},"guangdong":{"value":"0.44%","index":"15","stateInitColor":"2"},"jiangxi":{"value":"0.34%","index":"16","stateInitColor":"3"},"fujian":{"value":"0.27%","index":"17","stateInitColor":"3"},"yunnan":{"value":"0.23%","index":"18","stateInitColor":"3"},"hainan":{"value":"0.21%","index":"19","stateInitColor":"3"},"shanxi":{"value":"0.11%","index":"20","stateInitColor":"3"},"hebei":{"value":"0.11%","index":"21","stateInitColor":"4"},"neimongol":{"value":"0.04%","index":"22","stateInitColor":"4"},"tianjin":{"value":"0.04%","index":"23","stateInitColor":"4"},"gansu":{"value":"0.04%","index":"24","stateInitColor":"4"},"shaanxi":{"value":"0.02%","index":"25","stateInitColor":"4"},"macau":{"value":"0.0%","index":"26","stateInitColor":"7"},"hongkong":{"value":"0.0%","index":"27","stateInitColor":"7"},"taiwan":{"value":"0.0%","index":"28","stateInitColor":"7"},"qinghai":{"value":"0.0%","index":"29","stateInitColor":"7"},"xizang":{"value":"0.0%","index":"30","stateInitColor":"7"},"ningxia":{"value":"0.0%","index":"31","stateInitColor":"7"},"xinjiang":{"value":"0.0%","index":"32","stateInitColor":"7"},"heilongjiang":{"value":"0.0%","index":"33","stateInitColor":"7"},"chongqing":{"value":"0.0%","index":"34","stateInitColor":"7"}};
var i = 1;
for(k in data){
if(i <= 12){
var _cls = i < 4 ? 'active' : '';
$('#MapControl .list1').append('<li name="'+k+'"><div class="mapInfo"><i class="'+_cls+'">'+(i++)+'</i><span>'+chinaMapConfig.names[k]+'</span><b>'+data[k].value+'</b></div></li>')
}else if(i <= 24){
$('#MapControl .list2').append('<li name="'+k+'"><div class="mapInfo"><i>'+(i++)+'</i><span>'+chinaMapConfig.names[k]+'</span><b>'+data[k].value+'</b></div></li>')
}else{
$('#MapControl .list3').append('<li name="'+k+'"><div class="mapInfo"><i>'+(i++)+'</i><span>'+chinaMapConfig.names[k]+'</span><b>'+data[k].value+'</b></div></li>')
}
}
var mapObj_1 = {};
var stateColorList = ['003399', '0058B0', '0071E1', '1C8DFF', '51A8FF', '82C0FF', 'AAD5FF'];
$('#RegionMap').SVGMap({
external: mapObj_1,
mapName: 'china',
mapWidth: 350,
mapHeight: 350,
stateData: data,
// stateTipWidth: 118,
// stateTipHeight: 47,
// stateTipX: 2,
// stateTipY: 0,
stateTipHtml: function (mapData, obj) {
var _value = mapData[obj.id].value;
var _idx = mapData[obj.id].index;
var active = '';
_idx < 4 ? active = 'active' : active = '';
var tipStr = '<div class="mapInfo"><i class="' + active + '">' + _idx + '</i><span>' + obj.name + '</span><b>' + _value + '</b></div>';
return tipStr;
}
});
$('#MapControl li').hover(function () {
var thisName = $(this).attr('name');
var thisHtml = $(this).html();
$('#MapControl li').removeClass('select');
$(this).addClass('select');
$(document.body).append('<div id="StateTip"></div');
$('#StateTip').css({
left: $(mapObj_1[thisName].node).offset().left - 50,
top: $(mapObj_1[thisName].node).offset().top - 40
}).html(thisHtml).show();
mapObj_1[thisName].attr({
fill: '#E99A4D'
});
}, function () {
var thisName = $(this).attr('name');
$('#StateTip').remove();
$('#MapControl li').removeClass('select');
mapObj_1[$(this).attr('name')].attr({
fill: "#" + stateColorList[data[$(this).attr('name')].stateInitColor]
});
});
$('#MapColor').show();
</pre>
</div>
</div>
<div class="items" id="Item9">
<h2>世界地图</h2>
<a href="javascript:;" class="fold"></a>
<div class="itemCon">
<div id="WorldMap"></div>
<pre class="brush:js">
$('#WorldMap').SVGMap({
mapName: 'world',
mapWidth: 600,
mapHeight: 400
});
</pre>
</div>
</div>
</div>
<link rel="stylesheet" type="text/css" href="css/SyntaxHighlighter.css">
<script type="text/javascript" src="js/lib/SyntaxHighlighter.js"></script>
</body>
</html>