-
Notifications
You must be signed in to change notification settings - Fork 0
/
rd.html
50 lines (50 loc) · 1.33 KB
/
rd.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
<!DOCTYPE html>
<html>
<head>
<style>
.screenpage { display: none; }
.show { display: block }
</style>
<script src="/scripts/snippet-javascript-console.min.js?v=1"></script>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class=container>
<div id="page0" class="screenpage show">1
<div class="close">close</div>
</div>
<div id="page1" class="screenpage">2
<div class="close">close</div>
</div>
<div id="page2" class="screenpage">3
<div class="close">close</div>
</div>
<div id="page3" class="screenpage">4
<div class="close">close</div>
</div>
<div id="page4" class="screenpage">5
<div class="close">close</div>
</div>
<div id="page5" class="screenpage">6
<div class="close">close</div>
</div>
<div id="page6" class="screenpage">7
<div class="close">close</div>
</div>
<div id="page7" class="screenpage">8
<div class="close">close</div>
</div>
<div id="page8" class="screenpage">9
<div class="close">close</div>
</div>
<div id="page9" class="screenpage">10
<div class="close">close</div>
</div>
</div>
<script type="text/javascript">
$('.close').click(function() {
$('.screenpage:visible').hide().siblings().eq(Math.floor(Math.random() * 9)).show();
});
</script>
</body>
</html>