-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (41 loc) · 1.3 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type='text/javascript' src='http://davidlynch.org/projects/maphilight/jquery.maphilight.js'></script>
</head>
<body>
<button type="button" onclick="loadDoc()">Request data</button>
<p id="demo"></p>
<script>
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
}
};
xhttp.open("GET", "Output.txt", true);
xhttp.send();
}
</script>
<!-- awesome CSS here-->
<style>
.container {
position: relative;
}
</style>
</head>
<body>
<p id="dimensions">dimensions go here</p>
<img src="CW1.svg" id="svg" usemap="#image-map" class="map">
<map name="image-map">
<area shape="rect" coords="100,100,150,150" alt="Room number">
</map>
<!-- javascript file local-->
<script type="text/javascript" src="drawregions.js"></script>
</body>
</html>