forked from hoffhannisyan/javascript-tetris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
175 lines (156 loc) · 6.68 KB
/
index.html
File metadata and controls
175 lines (156 loc) · 6.68 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6MJSEPNHFL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-6MJSEPNHFL');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Preconnect for Performance -->
<link rel="preconnect" href="https://www.googletagmanager.com">
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
<!-- SEO Meta Tags -->
<title>Play Tetris Online</title>
<meta name="description"
content="Play free Tetris online in your browser! Classic game built with pure JavaScript & HTML5 Canvas. Download source code to learn game development. Educational open-source project." />
<meta name="author" content="Hovhannes Hovhannisyan" />
<meta name="robots" content="index, follow" />
<meta name="language" content="English" />
<!-- Open Graph Meta Tags for Social Media -->
<meta property="og:title" content="Tetris Game - Pure JavaScript HTML5 Canvas Implementation" />
<meta property="og:description"
content="Play classic Tetris online! Built with pure HTML5, CSS3, and JavaScript. Educational source code for students learning game development." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://hoffhannisyan.github.io/javascript-tetris/" />
<meta property="og:image" content="https://hoffhannisyan.github.io/javascript-tetris/src/assets/tetris-favicon.jpg" />
<meta property="og:site_name" content="JavaScript Tetris" />
<!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Tetris Game - Pure JavaScript HTML5 Canvas Implementation" />
<meta name="twitter:description"
content="Play classic Tetris online! Built with pure HTML5, CSS3, and JavaScript. Educational source code for students." />
<meta name="twitter:image"
content="https://hoffhannisyan.github.io/javascript-tetris/src/assets/tetris-favicon.jpg" />
<!-- Theme and App Meta Tags -->
<meta name="theme-color" content="#000000" />
<meta name="application-name" content="JavaScript Tetris" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="JS Tetris" />
<!-- Favicon Links -->
<link rel="icon" type="image/jpeg" href="src/assets/tetris-favicon.jpg" />
<link rel="shortcut icon" href="src/assets/tetris-favicon.jpg" type="image/jpeg" />
<link rel="apple-touch-icon" href="src/assets/tetris-favicon.jpg" />
<link rel="apple-touch-icon" sizes="152x152" href="src/assets/tetris-favicon.jpg" />
<link rel="apple-touch-icon" sizes="180x180" href="src/assets/tetris-favicon.jpg" />
<!-- Canonical URL -->
<link rel="canonical" href="https://hoffhannisyan.github.io/javascript-tetris/" />
<!-- Language Alternate -->
<link rel="alternate" hreflang="en" href="https://hoffhannisyan.github.io/javascript-tetris/" />
<!-- Preload Critical CSS -->
<link rel="preload" href="src/css/style.css" as="style">
<!-- Stylesheet -->
<link rel="stylesheet" href="src/css/style.css" />
<!-- Structured Data for SEO -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoGame",
"name": "JavaScript Tetris",
"alternateName": "JS Tetris",
"description": "Classic Tetris game implementation using pure HTML5, CSS3, and JavaScript. Educational source code for students learning game development. Play online or download to study the code.",
"url": "https://hoffhannisyan.github.io/javascript-tetris/",
"image": "https://hoffhannisyan.github.io/javascript-tetris/src/assets/tetris-favicon.jpg",
"author": {
"@type": "Person",
"name": "Hovhannes Hovhannisyan",
"url": "https://github.com/hoffhannisyan"
},
"datePublished": "2025-10-08",
"dateCreated": "2020",
"genre": "Puzzle",
"playMode": "SinglePlayer",
"gamePlatform": "Web Browser",
"applicationCategory": "Game",
"operatingSystem": "Any",
"softwareRequirements": "JavaScript enabled browser",
"isAccessibleForFree": true,
"inLanguage": "en",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"ratingCount": "125",
"bestRating": "5",
"worstRating": "1"
}
}
</script>
<!-- Additional Structured Data for Software Application -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "JavaScript Tetris Source Code",
"description": "Educational open-source Tetris game implementation for learning JavaScript game development",
"codeRepository": "https://github.com/hoffhannisyan/javascript-tetris",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "JavaScript"
},
"runtimePlatform": "Web Browser",
"license": "https://opensource.org/licenses/MIT",
"author": {
"@type": "Person",
"name": "Hovhannes Hovhannisyan"
}
}
</script>
</head>
<body>
<!-- JavaScript Fallback Message -->
<noscript>
<div style="
text-align: center;
padding: 50px;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
margin: 20px;
border-radius: 8px;
border: 2px solid #ccc;
">
<h2 style="color: #d32f2f">JavaScript Required</h2>
<p style="font-size: 16px; color: #555; margin: 20px 0">
This Tetris game requires JavaScript to run properly.
</p>
<p style="font-size: 14px; color: #777">
Please enable JavaScript in your browser settings and refresh the
page.
</p>
<div style="margin-top: 30px">
<a href="https://github.com/hoffhannisyan/javascript-tetris"
style="color: #1976d2; text-decoration: none; font-weight: bold">
View Source Code on GitHub
</a>
</div>
</div>
</noscript>
<!-- Main Game Container -->
<div id="root">
<h1>Tetris</h1>
</div>
<!-- Game Script -->
<script src="src/js/index.js"></script>
</body>
</html>