From bec4e31ea85e53445d29490824fb61035cccfe75 Mon Sep 17 00:00:00 2001 From: s1nical Date: Fri, 16 Aug 2019 05:58:53 -0700 Subject: various removals, fixes, changes - remove license, readme - update humans - resources > doc - todo.todo > spike/todo.todo - mobile excludes for space invaders and wolf3d --- space-invaders/index.html | 1 + space-invaders/js/mobile.js | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 space-invaders/js/mobile.js (limited to 'space-invaders') 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 @@ s1nical - Space Invaders + 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 -- cgit v1.2.3