summaryrefslogtreecommitdiff
path: root/space-invaders
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-16 05:58:53 -0700
committers1nical <[email protected]>2019-08-16 05:58:53 -0700
commitbec4e31ea85e53445d29490824fb61035cccfe75 (patch)
tree5d35f61da07ec0b2ac9d17fd50b301f8fdc5699e /space-invaders
parentadd wolfenstein 3d to games directory (diff)
downloads1n.pw-admin-bec4e31ea85e53445d29490824fb61035cccfe75.tar.xz
s1n.pw-admin-bec4e31ea85e53445d29490824fb61035cccfe75.zip
various removals, fixes, changes
- remove license, readme - update humans - resources > doc - todo.todo > spike/todo.todo - mobile excludes for space invaders and wolf3d
Diffstat (limited to 'space-invaders')
-rw-r--r--space-invaders/index.html1
-rw-r--r--space-invaders/js/mobile.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/space-invaders/index.html b/space-invaders/index.html
index 71e2f11..03e49e3 100644
--- a/space-invaders/index.html
+++ b/space-invaders/index.html
@@ -7,6 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>s1nical - Space Invaders</title>
<link rel="shortcut icon" href="/space-invaders/favicon.png" type="image/x-icon">
+ <script src="/space-invaders/js/mobile.js"></script>
</head>
<body>
diff --git a/space-invaders/js/mobile.js b/space-invaders/js/mobile.js
new file mode 100644
index 0000000..5807029
--- /dev/null
+++ b/space-invaders/js/mobile.js
@@ -0,0 +1,4 @@
+// CHECKS IF USER IS ON MOBILE
+if (screen.width <= 480) {
+ location.href = '/mobile';
+} \ No newline at end of file