summaryrefslogtreecommitdiff
path: root/space-invaders/js
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/js
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/js')
-rw-r--r--space-invaders/js/mobile.js4
1 files changed, 4 insertions, 0 deletions
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