diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/README.md b/README.md index c9e1dbb..955851f 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,3 @@ -# [Jurassic Systems](http://www.jurassicsystems.com) -HTML5/JavaScript recreation of the original Jurassic Park movie computer system. - -## About Repo -This project started out as a much smaller joke that got out of hand, so the implementation may not have lead to the most extensible of code bases. That being said, adding terminal commands, at least, should be fairly straight forward using the `addCommand` method in [jurassicSystems.js](https://github.com/tojrobinson/jurassicsystems.com/blob/master/static/js/jurassicSystems.js). - -## License -The MIT License (MIT) - -Copyright (c) 2014 Tully Robinson +[Jurassic Systems] -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +HTML5/JavaScript recreation of the original Jurassic Park movie computer system. diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index f714e2e..0000000 --- a/nginx.conf +++ /dev/null @@ -1,24 +0,0 @@ -server { - listen 80; - server_name jurassicsystems.com www.jurassicsystems.com; - root /home/treefingers/www/jurassicsystems.com/static; - index jurassicSystems.html; - error_page 404 /errorPage.html; - error_page 403 /errorPage.html; - - location ~* \.(css|js|jpg|png|gif|ico|ogg|mp3|wav|swf)$ { - expires max; - } - - location /system { - try_files /jurassicSystems.html =404; - } - - location /about { - try_files /about.html =404; - } - - location = /theking { - try_files /theKing.html =404; - } -} diff --git a/static/_redirects b/static/_redirects new file mode 100644 index 0000000..aea1694 --- /dev/null +++ b/static/_redirects @@ -0,0 +1 @@ +/ /jurassicSystems 303 \ No newline at end of file diff --git a/static/css/jurassicSystems.css b/static/css/jurassicSystems.css index 6238eab..9216699 100644 --- a/static/css/jurassicSystems.css +++ b/static/css/jurassicSystems.css @@ -118,7 +118,7 @@ body { } #irix-desktop { - background-image: url("/img/irixBackground.jpg"); + background-image: url("../img/irixBackground.jpg"); background-repeat: no-repeat; overflow: hidden; margin-left: 10px; @@ -129,7 +129,7 @@ body { } #apple-desktop { - background-image: url("/img/appleBackground.jpg"); + background-image: url("../img/appleBackground.jpg"); background-repeat: no-repeat; overflow: hidden; margin-left: 10px; @@ -147,7 +147,7 @@ body { margin: auto; padding-top: 31px; padding-left: 30px; - background-image: url("/img/mainTerm.jpg"); + background-image: url("../img/mainTerm.jpg"); background-repeat: no-repeat; position: absolute; top: 120px; @@ -188,7 +188,7 @@ body { } #chess-terminal { - background-image: url("/img/chessTerm.jpg"); + background-image: url("../img/chessTerm.jpg"); background-repeat: no-repeat; padding-top: 31px; padding-left: 30px; @@ -212,7 +212,7 @@ body { display: none; right: 20px; top: 40px; - background-image: url("/img/zebraGirlWindow.jpg"); + background-image: url("../img/zebraGirlWindow.jpg"); } .terminal-view { @@ -228,7 +228,7 @@ body { } #gr-osview { - background-image: url('/img/grOsview.gif'); + background-image: url("../img/grOsview.gif"); background-repeat: no-repeat; height: 369px; width: 393px; @@ -239,7 +239,7 @@ body { #the-king-window { display: none; - background-image: url('/img/theKingFocus.jpg'); + background-image: url("../img/theKingFocus.jpg"); background-repeat: no-repeat; width: 600px; height: 620px; @@ -254,7 +254,7 @@ body { } #the-king-blur { - background-image: url('/img/theKingBlur.jpg'); + background-image: url("../img/theKingBlur.jpg"); width: 600px; height: 620px; position: absolute; @@ -276,7 +276,7 @@ body { #mac-hd-window { width: 556px; height: 566px; - background-image: url("/img/macHDFocus.jpg"); + background-image: url("../img/macHDFocus.jpg"); background-repeat: no-repeat; position: absolute; left: 15px; @@ -329,11 +329,12 @@ input[type="button"], button { } *:focus{outline:0 none;} -input[type="button"], button {-moz-box-sizing: content-box;} +input[type="button"], button {-moz-box-sizing: content-box; + box-sizing: content-box;} input[type="button"]::-moz-focus-inner, button::-moz-focus-inner { padding:0;border:0 none; } .button { - background-image:url("/img/buttonOverlay.png"); + background-image:url("../img/buttonOverlay.png"); -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; diff --git a/static/css/theKing.css b/static/css/theKing.css index dc248a8..a70bc0e 100644 --- a/static/css/theKing.css +++ b/static/css/theKing.css @@ -22,7 +22,7 @@ body { } #apple-desktop { - background-image: url("/img/appleBackground.jpg"); + background-image: url("../img/appleBackground.jpg"); background-repeat: no-repeat; overflow: hidden; margin-left: 10px; @@ -35,7 +35,7 @@ body { #the-king-window { display: none; - background-image: url('/img/theKingFocus.jpg'); + background-image: url("../img/theKingFocus.jpg"); background-repeat: no-repeat; width: 600px; height: 620px; @@ -45,15 +45,12 @@ body { text-align: center; } -#the-king-animation { - position: absolute; - top: 40px; - left: 80px; - z-index: 64000; +#the-king-video { + margin-top: 40px; } #the-king-blur { - background-image: url('/img/theKingBlur.jpg'); + background-image: url("../img/theKingBlur.jpg"); width: 600px; height: 620px; position: absolute; @@ -74,7 +71,7 @@ body { #mac-hd-window { width: 556px; height: 566px; - background-image: url("/img/macHDFocus.jpg"); + background-image: url("../img/macHDFocus.jpg"); background-repeat: no-repeat; position: absolute; left: 15px; diff --git a/static/img/hotlink-ok/apple-touch-icon.png b/static/img/hotlink-ok/apple-touch-icon.png new file mode 100644 index 0000000..620cf6a Binary files /dev/null and b/static/img/hotlink-ok/apple-touch-icon.png differ diff --git a/static/img/hotlink-ok/att.png b/static/img/hotlink-ok/att.png new file mode 100644 index 0000000..c266133 Binary files /dev/null and b/static/img/hotlink-ok/att.png differ diff --git a/static/img/hotlink-ok/avatar_default.png b/static/img/hotlink-ok/avatar_default.png new file mode 100644 index 0000000..f8b1d55 Binary files /dev/null and b/static/img/hotlink-ok/avatar_default.png differ diff --git a/static/img/hotlink-ok/backup.png b/static/img/hotlink-ok/backup.png new file mode 100644 index 0000000..87c1ef5 Binary files /dev/null and b/static/img/hotlink-ok/backup.png differ diff --git a/static/img/hotlink-ok/cf.png b/static/img/hotlink-ok/cf.png new file mode 100644 index 0000000..021bd99 Binary files /dev/null and b/static/img/hotlink-ok/cf.png differ diff --git a/static/img/hotlink-ok/docker.png b/static/img/hotlink-ok/docker.png new file mode 100644 index 0000000..6ab11bf Binary files /dev/null and b/static/img/hotlink-ok/docker.png differ diff --git a/static/img/hotlink-ok/favicon.png b/static/img/hotlink-ok/favicon.png new file mode 100644 index 0000000..620cf6a Binary files /dev/null and b/static/img/hotlink-ok/favicon.png differ diff --git a/static/img/hotlink-ok/gitea.png b/static/img/hotlink-ok/gitea.png new file mode 100644 index 0000000..e33ff67 Binary files /dev/null and b/static/img/hotlink-ok/gitea.png differ diff --git a/static/img/hotlink-ok/gpt.png b/static/img/hotlink-ok/gpt.png new file mode 100644 index 0000000..838be1f Binary files /dev/null and b/static/img/hotlink-ok/gpt.png differ diff --git a/static/img/hotlink-ok/logo.png b/static/img/hotlink-ok/logo.png new file mode 100644 index 0000000..79c3c04 Binary files /dev/null and b/static/img/hotlink-ok/logo.png differ diff --git a/static/img/hotlink-ok/logo.svg b/static/img/hotlink-ok/logo.svg new file mode 100644 index 0000000..5b70730 --- /dev/null +++ b/static/img/hotlink-ok/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/img/hotlink-ok/nest.png b/static/img/hotlink-ok/nest.png new file mode 100644 index 0000000..3b60a1c Binary files /dev/null and b/static/img/hotlink-ok/nest.png differ diff --git a/static/img/hotlink-ok/photos.png b/static/img/hotlink-ok/photos.png new file mode 100644 index 0000000..4fa3eb9 Binary files /dev/null and b/static/img/hotlink-ok/photos.png differ diff --git a/static/img/hotlink-ok/rdg.png b/static/img/hotlink-ok/rdg.png new file mode 100644 index 0000000..afdf31b Binary files /dev/null and b/static/img/hotlink-ok/rdg.png differ diff --git a/static/img/hotlink-ok/vmm.png b/static/img/hotlink-ok/vmm.png new file mode 100644 index 0000000..3dd306d Binary files /dev/null and b/static/img/hotlink-ok/vmm.png differ diff --git a/static/js/jurassicSystems.js b/static/js/jurassicSystems.js index bd51027..314951e 100644 --- a/static/js/jurassicSystems.js +++ b/static/js/jurassicSystems.js @@ -57,17 +57,17 @@ const lockDownHTML5 = $(''); const dennisMusicHTML5 = $(''); - beepHTML5.append(''); - beepHTML5.append(''); - beepHTML5.append(''); + beepHTML5.append(''); + beepHTML5.append(''); + beepHTML5.append(''); - lockDownHTML5.append(''); - lockDownHTML5.append(''); - lockDownHTML5.append(''); + lockDownHTML5.append(''); + lockDownHTML5.append(''); + lockDownHTML5.append(''); - dennisMusicHTML5.append(''); - dennisMusicHTML5.append(''); - dennisMusicHTML5.append(''); + dennisMusicHTML5.append(''); + dennisMusicHTML5.append(''); + dennisMusicHTML5.append(''); env.sounds.beep = { play: function() { @@ -224,7 +224,7 @@ errorSpam != null && clearInterval(errorSpam); theKingVideo != null && theKingVideo.play(); $('#irix-desktop').hide(); - $('#mac-hd-window').css('background-image', 'url(/img/macHDBlur.jpg)'); + $('#mac-hd-window').css('background-image', 'url(img/macHDBlur.jpg)'); $('#the-king-window').show(); setTimeout(function() { @@ -443,7 +443,7 @@ 'asciiNewman.jpg', 'zebraGirlWindow.jpg', ]).each(function() { - new Image().src = '/img/' + this; + new Image().src = 'img/' + this; }); diff --git a/static/js/lib/modernizr.js b/static/js/lib/modernizr.js index 4386285..4bb1527 100644 --- a/static/js/lib/modernizr.js +++ b/static/js/lib/modernizr.js @@ -1,4 +1,4 @@ -/* Modernizr 2.8.3 (Custom Build) | MIT & BSD - * Build: http://modernizr.com/download/#-audio-shiv-cssclasses-load - */ +/*! modernizr 3.6.0 (Custom Build) | MIT * + * https://modernizr.com/download/?-audio-setclasses-shiv !*/ + ;window.Modernizr=function(a,b,c){function u(a){j.cssText=a}function v(a,b){return u(prefixes.join(a+";")+(b||""))}function w(a,b){return typeof a===b}function x(a,b){return!!~(""+a).indexOf(b)}function y(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:w(f,"function")?f.bind(d||b):f}return!1}var d="2.8.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m={},n={},o={},p=[],q=p.slice,r,s={}.hasOwnProperty,t;!w(s,"undefined")&&!w(s.call,"undefined")?t=function(a,b){return s.call(a,b)}:t=function(a,b){return b in a&&w(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=q.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(q.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(q.call(arguments)))};return e}),m.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c};for(var z in m)t(m,z)&&(r=z.toLowerCase(),e[r]=m[z](),p.push((e[r]?"":"no-")+r));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)t(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},u(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+p.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f')[0].src = '/img/' + this; + $('')[0].src = 'img/' + this; }); (function() { @@ -34,7 +31,10 @@ $('#the-king-window').ready(function() { setTimeout(function() { - $('#mac-hd-window').css('background-image', 'url(/img/macHDBlur.jpg)'); +const theKingVideo = document.getElementById('the-king-video'); + + theKingVideo != null && theKingVideo.play(); + $('#mac-hd-window').css('background-image', 'url(img/macHDBlur.jpg)'); $('#the-king-window').show(); if ($(window).width() < 1200) { diff --git a/static/jurassicSystems.html b/static/jurassicSystems.html index c4f0341..caa8114 100644 --- a/static/jurassicSystems.html +++ b/static/jurassicSystems.html @@ -1,174 +1,88 @@ - - - - + + - Jurassic Systems - - - - + + + + - - - - - - - - Watch the above scene from Jurassic Park, then hold on to your butts and press continue to launch the recreation. Type "help" into the console to see a list of commands. - - - - - - - - - - - Jurassic Park, System Security Interface - Version 4.0.5, Alpha E - Ready... + You are using an outdated browser. Please upgrade your browser to improve your experience. + + + + + + + + + + Jurassic Park, System Security Interface + Version 4.0.5, Alpha E + Ready... + + + > + - - > - - - - - + + + - - - + + + - - - - - - - CHESS: select level of play desired - - - 0. - 80 - moves - in - 694 - minutes - - - 1. - 80 - moves - in - 213 - minutes - - - 2. - 70 - moves - in - 200 - minutes - - - 3. - 60 - moves - in - 190 - minutes - - - 4. - 60 - moves - in - 240 - minutes - - - 5. - 60 - moves - in - 10 - minutes - - - 6. - 60 - moves - in - 50 - minutes - - - 7. - 1 - move - in - 68 - minutes - - - 8. - 1 - move - in - 96 - minutes - - - 9. - 1 - move - in - 680 - minutes - - - Enter Level: 1 - Illegal move + + + + + + + CHESS: select level of play desired + + + + Enter Level: 1 + Illegal move + + + - - - - - - - - - - - Your browser does not support the video tag. - - + + + + + + + Your browser does not support the video tag + + + + - - - - + + + + - + \ No newline at end of file diff --git a/static/swf/soundManager/soundmanager2.swf b/static/swf/soundManager/soundmanager2.swf deleted file mode 100755 index e900766..0000000 Binary files a/static/swf/soundManager/soundmanager2.swf and /dev/null differ diff --git a/static/swf/soundManager/soundmanager2_debug.swf b/static/swf/soundManager/soundmanager2_debug.swf deleted file mode 100755 index a680912..0000000 Binary files a/static/swf/soundManager/soundmanager2_debug.swf and /dev/null differ diff --git a/static/swf/soundManager/soundmanager2_flash9.swf b/static/swf/soundManager/soundmanager2_flash9.swf deleted file mode 100755 index 3d4222a..0000000 Binary files a/static/swf/soundManager/soundmanager2_flash9.swf and /dev/null differ diff --git a/static/swf/soundManager/soundmanager2_flash9_debug.swf b/static/swf/soundManager/soundmanager2_flash9_debug.swf deleted file mode 100755 index c1a129d..0000000 Binary files a/static/swf/soundManager/soundmanager2_flash9_debug.swf and /dev/null differ diff --git a/static/swf/soundManager/soundmanager2_flash_xdomain.zip b/static/swf/soundManager/soundmanager2_flash_xdomain.zip deleted file mode 100755 index 5661d21..0000000 Binary files a/static/swf/soundManager/soundmanager2_flash_xdomain.zip and /dev/null differ diff --git a/static/theKing.html b/static/theKing.html index 61e48a9..2f32bd8 100644 --- a/static/theKing.html +++ b/static/theKing.html @@ -5,46 +5,34 @@ - - - + + + Jurassic Systems - - - - + + + + - - - - - - - - - - - - - - - - + + + Your browser does not support the video tag. + - - + +
You are using an outdated browser. Please upgrade your browser to improve your experience.