1
0
Fork 0
mirror of https://github.com/Phantop/phantop.github.io synced 2024-12-25 14:16:46 +00:00

Initial commits from trex outrunner

This commit is contained in:
wayou 2014-11-29 18:10:13 +08:00 committed by Phantop
commit 948ebef034
24 changed files with 2980 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.DS_Store
*.zip

13
README.md Normal file
View file

@ -0,0 +1,13 @@
## t-rex-outrunner
Originally grabbed this source from https://github.com/wayou/t-rex-runner and drunkenly turning this into an Outrun-style Chrome extension.
see the [source](https://cs.chromium.org/chromium/src/components/neterror/resources/offline.js?q=t-rex+package:%5Echromium$&dr=C&l=7) from chromium
This extension was inspired directly by the following reddit post in /r/outrun: https://www.reddit.com/r/outrun/comments/8zq03l/c_h_r_o_m_e/
## Chrome store
Published here: https://chrome.google.com/webstore/detail/t-rex-outrunner/ipaflcbenfmebafanoplpnieoaaiieon
![sample](sample.gif)

Binary file not shown.

BIN
asset-source/sun.psd Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
assets/icon-128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/icon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/icon-24x24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/icon-48x48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
assets/outrun-grid.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
assets/outrun-sun.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

158
index.css Normal file
View file

@ -0,0 +1,158 @@
/* Copyright 2013 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
html, body {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
background-color:transparent;
}
.icon {
-webkit-user-select: none;
user-select: none;
display: inline-block;
}
.icon-offline {
content: -webkit-image-set( url(assets/default_100_percent/100-error-offline.png) 1x, url(assets/default_200_percent/200-error-offline.png) 2x);
position: relative;
}
.hidden {
display: none;
}
h1 {
font-weight: normal;
}
a {
color: #bf9dde;
}
#grid {
width: 100%;
height: 100%;
position: fixed;
left: 0px;
bottom: 0px;
z-index: -1;
}
.stretch {
width:100%;
height:100%;
}
/* Offline page */
.offline .interstitial-wrapper {
color: #bf9dde;
font-size: 1em;
line-height: 1.55;
margin: 0 auto;
max-width: 600px;
padding-top: 100px;
width: 100%;
text-shadow: #bf9dde 0 0 10px;
}
.offline .runner-container {
height: 150px;
max-width: 600px;
overflow: hidden;
position: absolute;
top: 35px;
width: 44px;
}
.offline .runner-canvas {
height: 150px;
max-width: 600px;
opacity: 1;
overflow: hidden;
position: absolute;
top: 0;
z-index: 2;
}
.offline .controller {
background: rgba(247, 247, 247, .1);
height: 100vh;
left: 0;
position: absolute;
top: 0;
width: 100vw;
z-index: 1;
}
#offline-resources {
display: none;
}
@media (max-width: 420px) {
.suggested-left > #control-buttons, .suggested-right > #control-buttons {
float: none;
}
.snackbar {
left: 0;
bottom: 0;
width: 100%;
border-radius: 0;
}
}
@media (max-height: 350px) {
h1 {
margin: 0 0 15px;
}
.icon-offline {
margin: 0 0 10px;
}
.interstitial-wrapper {
margin-top: 5%;
}
.nav-wrapper {
margin-top: 30px;
}
}
@media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {
.offline .interstitial-wrapper {
margin-left: 0;
margin-right: 0;
}
}
@media (min-width: 420px) and (max-width: 736px) and (min-height: 240px) and (max-height: 420px) and (orientation:landscape) {
.interstitial-wrapper {
margin-bottom: 100px;
}
}
@media (min-height: 240px) and (orientation: landscape) {
.offline .interstitial-wrapper {
margin-bottom: 90px;
}
.icon-offline {
margin-bottom: 20px;
}
}
@media (max-height: 320px) and (orientation: landscape) {
.icon-offline {
margin-bottom: 0;
}
.offline .runner-container {
top: 10px;
}
}
@media (max-width: 240px) {
.interstitial-wrapper {
overflow: inherit;
padding: 0 8px;
}
}

44
index.html Normal file

File diff suppressed because one or more lines are too long

2739
index.js Normal file

File diff suppressed because it is too large Load diff

24
manifest.json Normal file
View file

@ -0,0 +1,24 @@
{
"manifest_version": 2,
"name": "T-Rex Outrunner",
"description": "Replaces the new tab page with a custom Chrome disconnected page, inspired by an /r/outrun post.",
"version": "1",
"author": "Michael Hoskins",
"browser_action": {
"default_title": "Outrun",
"default_icon": "assets/icon-24x24.png"
},
"icons": {
"16": "assets/icon-16x16.png",
"48": "assets/icon-48x48.png",
"128": "assets/icon-128x128.png"
},
"chrome_url_overrides" : {
"newtab": "index.html"
},
"permissions": ["activeTab"]
}

BIN
sample.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
screenshot-01.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB