god i hate web programming

This commit is contained in:
Nicky Case 2018-04-25 14:46:26 -04:00
parent 587c54045c
commit 4489359805
258 changed files with 110 additions and 24 deletions

View File

@ -10,7 +10,7 @@ MY "WHY" FOR MAKING THIS:
--> -->
<!doctype> <!DOCTYPE html>
<html> <html>
<head> <head>

View File

@ -30,8 +30,8 @@ function createCanvas(canvas, width, height){
// Set difference in width & height // Set difference in width & height
canvas.width = width*2; canvas.width = width*2;
canvas.height = height*2; canvas.height = height*2;
canvas.style.width = width; canvas.style.width = (width) + "px";
canvas.style.height = height; canvas.style.height = (height) + "px";
return canvas; return canvas;
@ -180,9 +180,10 @@ function rotateVector(v, a){
// Cross Browser Crap // Cross Browser Crap
function _getBoundingClientRect(dom){ function _getBoundingClientRect(dom){
//debugger;
var bounds = dom.getBoundingClientRect(); var bounds = dom.getBoundingClientRect();
if(!bounds.x) bounds.x = bounds.left; // crossbrowser crap if(bounds.x===undefined) bounds.x = bounds.left; // crossbrowser crap
if(!bounds.y) bounds.y = bounds.top; // crossbrowser crap if(bounds.y===undefined) bounds.y = bounds.top; // crossbrowser crap
return bounds; return bounds;
} }
function _stopPropButton(button){ function _stopPropButton(button){

View File

@ -41,10 +41,8 @@ subscribe("prepreload/done", function(){
// Go to THE SPLASH // Go to THE SPLASH
slideshow.gotoChapter("Preloader"); slideshow.gotoChapter("Preloader");
/* //slideshow.gotoChapter("Credits");
slideshow.gotoChapter("Credits"); //$("#navigation").style.display = "block";
$("#navigation").style.display = "block";
*/
}); });

View File

@ -160,16 +160,16 @@ function Sim(config){
var container = $("#simulations_container"); var container = $("#simulations_container");
simOffset = _getBoundingClientRect(self.container.dom); simOffset = _getBoundingClientRect(self.container.dom);
self.canvas.style.left = -simOffset.x; self.canvas.style.left = (-simOffset.x) + "px";
self.canvas.style.top = -simOffset.y; self.canvas.style.top = (-simOffset.y) + "px";
// Set difference in width & height // Set difference in width & height
var width = container.clientWidth; var width = container.clientWidth;
var height = container.clientHeight; var height = container.clientHeight;
self.canvas.width = width*2; self.canvas.width = width*2;
self.canvas.height = height*2; self.canvas.height = height*2;
self.canvas.style.width = width; self.canvas.style.width = (width) + "px";
self.canvas.style.height = height; self.canvas.style.height = (height) + "px";
}; };
self.resize(); self.resize();

View File

@ -34,18 +34,18 @@ function Boxes(){
// Standard box properties... // Standard box properties...
if(config.id) box.id = config.id; if(config.id) box.id = config.id;
if(config.x) box.style.left = config.x; if(config.x) box.style.left = config.x + "px";
if(config.y) box.style.top = config.y; if(config.y) box.style.top = config.y + "px";
if(config.w) box.style.width = config.w; if(config.w) box.style.width = config.w + "px";
if(config.h) box.style.height = config.h; if(config.h) box.style.height = config.h + "px";
if(config.hidden) box.style.display = "none"; if(config.hidden) box.style.display = "none";
// background // background
if(config.background){ if(config.background){
box.style.left = "-1000px"; box.style.left = "-1000px";
box.style.top = "-1000px"; box.style.top = "-1000px";
box.style.width = 10000; box.style.width = 10000 + "px";
box.style.height = 10000; box.style.height = 10000 + "px";
box.style.background = config.background; box.style.background = config.background;
} }

View File

@ -67,13 +67,13 @@ function Navigation(){
var offset = _getBoundingClientRect(nav).x - _getBoundingClientRect($("#navigation")).x; var offset = _getBoundingClientRect(nav).x - _getBoundingClientRect($("#navigation")).x;
var label = nav.children[1].innerHTML; var label = nav.children[1].innerHTML;
bubble.style.left = offset - (220/2) + (36/2); bubble.style.left = ( offset - (220/2) + (36/2) ) + "px";
bubble.innerHTML = label; bubble.innerHTML = label;
bubble.style.display = "block"; bubble.style.display = "block";
setTimeout(function(){ setTimeout(function(){
bubble.style.opacity = 1; bubble.style.opacity = 1;
bubble.style.top = -85; bubble.style.top = (-85) + "px";
},1); },1);
isShowingBubble = true; isShowingBubble = true;
@ -81,7 +81,7 @@ function Navigation(){
var _hideBubble = function(){ var _hideBubble = function(){
isShowingBubble = false; isShowingBubble = false;
bubble.style.opacity = 0; bubble.style.opacity = 0;
bubble.style.top = -80; bubble.style.top = (-80) + "px";
}; };
var _countdown = 0; var _countdown = 0;
subscribe("update", function(){ subscribe("update", function(){

View File

@ -64,8 +64,8 @@ function Pencil(){
self.draw = function(){ self.draw = function(){
// Move DOM there // Move DOM there
self.canvas.style.left = self.x-_margin; self.canvas.style.left = (self.x-_margin) + "px";
self.canvas.style.top = self.y-_size+_margin; self.canvas.style.top = (self.y-_size+_margin) + "px";
// Which sprite? (normal by default...) // Which sprite? (normal by default...)
var sprite = self.sprite; var sprite = self.sprite;

87
supporters/index.html Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
supporters/peeps/ljt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 791 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
supporters/peeps/nick.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
supporters/peeps/noel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 KiB

BIN
supporters/polygons/aaron.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
supporters/polygons/alex_g.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
supporters/polygons/alex_mole.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
supporters/polygons/amy_fuchs.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
supporters/polygons/aran_jger.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
supporters/polygons/ben_kraft.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
supporters/polygons/bob_wise.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
supporters/polygons/brian.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
supporters/polygons/c.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
supporters/polygons/ceceron44.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
supporters/polygons/dave_tu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
supporters/polygons/dominc.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Some files were not shown because too many files have changed in this diff Show More