diff options
Diffstat (limited to 'space-invaders')
| -rw-r--r-- | space-invaders/.htaccess | 1 | ||||
| -rw-r--r-- | space-invaders/favicon.png | bin | 0 -> 10824 bytes | |||
| -rw-r--r-- | space-invaders/index.html | 51 | ||||
| -rw-r--r-- | space-invaders/js/main.js | 1 | ||||
| -rw-r--r-- | space-invaders/js/mobile.js | 4 |
5 files changed, 57 insertions, 0 deletions
diff --git a/space-invaders/.htaccess b/space-invaders/.htaccess new file mode 100644 index 0000000..45552cb --- /dev/null +++ b/space-invaders/.htaccess @@ -0,0 +1 @@ +Options -Indexes
\ No newline at end of file diff --git a/space-invaders/favicon.png b/space-invaders/favicon.png Binary files differnew file mode 100644 index 0000000..b3b41ff --- /dev/null +++ b/space-invaders/favicon.png diff --git a/space-invaders/index.html b/space-invaders/index.html new file mode 100644 index 0000000..90aa401 --- /dev/null +++ b/space-invaders/index.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta http-equiv="X-UA-Compatible" content="ie=edge"> + <title>s1nical - Space Invaders</title> + <!-- Site metadata --> + <meta name="description" content="Space Invaders"> + <meta property="og:description" content="Space Invaders"> + <meta property="og:title" content="s1nical - Space Invaders"> + <meta property="twitter:card" content="summary"> + <meta property="twitter:site" content="@9inny"> + <meta property="og:image" content=""> + <meta property="og:url" content="https://cyne.cf/space-invaders"> + <link rel="apple-touch-icon" sizes="128x128" href="/favicon.jpg"> + <link rel="icon" type="image/jpg" href="/favicon.jpg" sizes="128x128"> + <link rel="canonical" href="https://cyne.cf/space-invaders"> + <link rel="author" href="humans.txt" /> + <!-- Schema.org Stuff --> + <script type="application/ld+json"> + { + "name": "s1nical", + "alternateName": "s1n", + "description": "Space Invaders", + "headline": "Space Invaders", + "url": "https://cyne.cf/space-invaders", + "image": "", + "sameAs": [ + "https://twitter.com/9inny", + "https://github.com/8cy", + "https://www.reddit.com/user/s1nical/" + ], + "publisher": { + "@type": "Organization", + "logo": { + "@type": "ImageObject", + "url": "" + } + }, + "@type": "WebSite", + "@context": "http://schema.org" + } + </script> + <link rel="shortcut icon" href="/space-invaders/favicon.png" type="image/x-icon"> + <script src="/space-invaders/js/mobile.js"></script> +</head> + <body> + <script src="/space-invaders/js/main.js"></script> + </body> +</html>
\ No newline at end of file diff --git a/space-invaders/js/main.js b/space-invaders/js/main.js new file mode 100644 index 0000000..1fcfdf3 --- /dev/null +++ b/space-invaders/js/main.js @@ -0,0 +1 @@ +for (p = 389, L = l = m = t = 0, c = " _ ", onkeydown = function (e) { 39 == (k = e.which) ? p++ : 37 == k ? p-- : !l & (l = p) }, setInterval('_="<pre>";l&(l-=20)<0&&(l=0);m=(m+=20)>p?b[+new Date%6]:m;for(i=0;i<400;i++){if(i%20==0)_+="\\n";if(~b[n="indexOf"](l))b.splice(b[n](l),1),L+=5,l=0;if(~b[n](p)||p==m)p=n,b=[],c="xxx";_+=i==p?"oIo":~b[n](i)?".#.":i==m&&m?" * ":i==l&&l?" | ":c}document.body.innerHTML=_+="\\nP "+L;t+=o;for(i in b)b[i]+=t%5e3==0?20:t%2e3==0?1:t%1e3==0&&-1', o = 50), b = [], j = 2; 136 > j; j += 14 == j || 94 == j ? 29 : 55 == j ? 27 : 2)b.push(j);
\ No newline at end of file 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 |