-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (44 loc) · 859 Bytes
/
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
<html>
<head>
<title>3D VR viewer</title>
<script type="text/javascript" src="jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="jquery.fullscreen.min.js"></script>
<script>
$(function() {
$('.fs').click(function() {
if ($('body').hasClass("fs-active")) {
$.fullscreen.exit()
} else {
$('body').fullscreen();
}
$('body').toggleClass("fs-active")
return false;
})
});
$(function() {
function reloadImage() {
var url = "img.jpg?rnd="+Math.random();
$('#theimage').attr("src",url);
}
setInterval(reloadImage, 500);
});
</script>
<style>
body, html {
height: 100%;
}
img {
max-width: 100%;
max-height: 100%;
}
.landscape{
width: 100%;
}
</style>
</head>
<body>
<div class="landscape">
<img src="img.jpg" class="fs" id="theimage"/>
</div>
</body>
</html>