-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtiger.html
More file actions
118 lines (112 loc) · 3.62 KB
/
tiger.html
File metadata and controls
118 lines (112 loc) · 3.62 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>8-Puzzle Game</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<script src="http://code.jquery.com/jquery-3.3.1.min.js"></script>
<link href="gameCSS.css" rel="stylesheet">
</head>
<body>
<div id="wrap">
<header>
<h2><a href="index.html">8-Puzzle Game</a></h2>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="game.html">Play</a></li>
<li><a href="score.html">Score</a></li>
</ul>
</nav>
</header>
<section class="home">
<P id="timer">00 : 00 : 00</P>
<div class="background" >
<div class="puzzle" style="top: 0px; left: 0px; width: 140px; height: 140px;
display: flex; background-position: 0px 0px;
">
<span>1</span>
</div>
<div class="puzzle" style="top: 0px; left: 140px; width: 140px; height: 140px;
display: flex; background-position: -140px 0px;
">
<span>2</span>
</div>
<div class="puzzle" style="top: 0px; left: 280px; width: 140px; height: 140px;
display: flex; background-position: -280px 0px;
">
<span>3</span>
</div>
<div class="puzzle" style="top: 140px; left: 0px; width: 140px; height: 140px;
display: flex; background-position: 0px -140px;
">
<span>4</span>
</div>
<div class="puzzle" style="top: 140px; left: 140px; width: 140px; height: 140px;
display: flex; background-position: -140px -140px;
">
<span>5</span>
</div>
<div class="puzzle" style="top: 140px; left: 280px; width: 140px; height: 140px;
display: flex; background-position: -280px -140px;
">
<span>6</span>
</div>
<div class="puzzle" style="top: 280px; left: 0px; width: 140px; height: 140px;
display: flex; background-position: 0px -280px;
">
<span>7</span>
</div>
<div class="puzzle" style="top: 280px; left: 140px; width: 140px; height: 140px;
display: flex; background-position: -140px -280px;
">
<span>8</span>
</div>
<div class="puzzle" style="top: 280px; left: 280px; width: 140px; height: 140px;
display: flex; background-position: -280px -280px;
">
<span>9</span>
</div>
</div>
<side>
<div class="pictures">
<div class="picture">
<img src="dog2.jpg">
</div>
<div class="picture">
<img src="dog.jpg">
</div>
<div class="picture">
<img src="tajo.jpg">
</div>
<div class="picture">
<img src="squarrel.jpg">
</div>
<div class="picture">
<img src="cat.jpg">
</div>
<div class="picture">
<img src="tiger.jpg">
</div>
</div>
</side>
</section>
</div>
<script>
$(document).ready(function() {
resizeContent();
});
$(window).resize(function() {
resizeContent();
});
function resizeContent() {
var windowHeight = $(window).height();
var headerHeight = $("header").height();
$('.home').css({'height':(windowHeight-headerHeight)+'px'});
}
</script>
<script type="text/javascript" src="gameJS_tiger.js"></script>
</body>
</html>