-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestTile2.html
63 lines (38 loc) · 1.26 KB
/
testTile2.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
<!doctype html>
<html class="no-js" lang="">
<head>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="js/slideZoomTest.js">
</script>
<link rel="stylesheet" href="css/slideZoom.css" />
<script>
var slideZoomInstance;
$(function() {
slideZoomInstance = new slideZoom("#slide")
var state = {
zoom: 0,
row: 0,
col: 0
}
$("input").on("input", function(evt) {
var whichRange = $(evt.target).attr("name")
var value = $(evt.target).val() / 100;
console.log(whichRange, value)
state[whichRange] = value;
console.log(state)
slideZoomInstance.showSlide(state)
});
slideZoomInstance.showSlide(state)
slideZoomInstance.showSlide(state)
});
console.log(slideZoom)
</script>
</head>
<body>
<input type=range value="0" name="col" />
<input type=range value="0" name="row" />
<input type=range value="0" name="zoom" />
<div id="slide">
</div>
</body>
</html>