Skip to content

Commit

Permalink
god i hate web programming
Browse files Browse the repository at this point in the history
  • Loading branch information
ncase committed Apr 25, 2018
1 parent 587c540 commit 4489359
Show file tree
Hide file tree
Showing 258 changed files with 110 additions and 24 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-->

<!doctype>
<!DOCTYPE html>
<html>
<head>

Expand Down
9 changes: 5 additions & 4 deletions js/lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function createCanvas(canvas, width, height){
// Set difference in width & height
canvas.width = width*2;
canvas.height = height*2;
canvas.style.width = width;
canvas.style.height = height;
canvas.style.width = (width) + "px";
canvas.style.height = (height) + "px";

return canvas;

Expand Down Expand Up @@ -180,9 +180,10 @@ function rotateVector(v, a){

// Cross Browser Crap
function _getBoundingClientRect(dom){
//debugger;
var bounds = dom.getBoundingClientRect();
if(!bounds.x) bounds.x = bounds.left; // crossbrowser crap
if(!bounds.y) bounds.y = bounds.top; // crossbrowser crap
if(bounds.x===undefined) bounds.x = bounds.left; // crossbrowser crap
if(bounds.y===undefined) bounds.y = bounds.top; // crossbrowser crap
return bounds;
}
function _stopPropButton(button){
Expand Down
6 changes: 2 additions & 4 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ subscribe("prepreload/done", function(){

// Go to THE SPLASH
slideshow.gotoChapter("Preloader");
/*
slideshow.gotoChapter("Credits");
$("#navigation").style.display = "block";
*/
//slideshow.gotoChapter("Credits");
//$("#navigation").style.display = "block";

});

Expand Down
8 changes: 4 additions & 4 deletions js/sim/Simulations.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,16 @@ function Sim(config){

var container = $("#simulations_container");
simOffset = _getBoundingClientRect(self.container.dom);
self.canvas.style.left = -simOffset.x;
self.canvas.style.top = -simOffset.y;
self.canvas.style.left = (-simOffset.x) + "px";
self.canvas.style.top = (-simOffset.y) + "px";

// Set difference in width & height
var width = container.clientWidth;
var height = container.clientHeight;
self.canvas.width = width*2;
self.canvas.height = height*2;
self.canvas.style.width = width;
self.canvas.style.height = height;
self.canvas.style.width = (width) + "px";
self.canvas.style.height = (height) + "px";

};
self.resize();
Expand Down
12 changes: 6 additions & 6 deletions js/slideshow/Boxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ function Boxes(){

// Standard box properties...
if(config.id) box.id = config.id;
if(config.x) box.style.left = config.x;
if(config.y) box.style.top = config.y;
if(config.w) box.style.width = config.w;
if(config.h) box.style.height = config.h;
if(config.x) box.style.left = config.x + "px";
if(config.y) box.style.top = config.y + "px";
if(config.w) box.style.width = config.w + "px";
if(config.h) box.style.height = config.h + "px";
if(config.hidden) box.style.display = "none";

// background
if(config.background){
box.style.left = "-1000px";
box.style.top = "-1000px";
box.style.width = 10000;
box.style.height = 10000;
box.style.width = 10000 + "px";
box.style.height = 10000 + "px";
box.style.background = config.background;
}

Expand Down
6 changes: 3 additions & 3 deletions js/slideshow/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@ function Navigation(){

var offset = _getBoundingClientRect(nav).x - _getBoundingClientRect($("#navigation")).x;
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.style.display = "block";
setTimeout(function(){
bubble.style.opacity = 1;
bubble.style.top = -85;
bubble.style.top = (-85) + "px";
},1);
isShowingBubble = true;

};
var _hideBubble = function(){
isShowingBubble = false;
bubble.style.opacity = 0;
bubble.style.top = -80;
bubble.style.top = (-80) + "px";
};
var _countdown = 0;
subscribe("update", function(){
Expand Down
4 changes: 2 additions & 2 deletions js/slideshow/Pencil.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function Pencil(){
self.draw = function(){

// Move DOM there
self.canvas.style.left = self.x-_margin;
self.canvas.style.top = self.y-_size+_margin;
self.canvas.style.left = (self.x-_margin) + "px";
self.canvas.style.top = (self.y-_size+_margin) + "px";

// Which sprite? (normal by default...)
var sprite = self.sprite;
Expand Down
87 changes: 87 additions & 0 deletions supporters/index.html

Large diffs are not rendered by default.

Binary file added supporters/peeps/aimee_jarboe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/andrew_grondin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/andy_ellis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/ben_mathes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/chad_sansing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/christopher_rodier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/david_e_weekly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/dylan_field.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/jared_cosulich.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/joe_sevits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/kate_fractal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/ljt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/matt_hughes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/michael_duke.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/michael_huff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/natalie_sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/nick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/noel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/phil_dougherty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/rafael_ffont.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/sean_riley.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/srini_kadamati.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/travis_ross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/yuhan_kuo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/peeps/zach_smith.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added supporters/polygons/aaron.png
Binary file added supporters/polygons/abhishek_modi.png
Binary file added supporters/polygons/adam_zeiner.png
Binary file added supporters/polygons/aditya_bhargava.png
Binary file added supporters/polygons/aiden_clack.png
Binary file added supporters/polygons/aiman_josefsson.png
Binary file added supporters/polygons/aimee_jarboe.png
Binary file added supporters/polygons/alejo_amiras.png
Binary file added supporters/polygons/alex_dytrych.png
Binary file added supporters/polygons/alex_g.png
Binary file added supporters/polygons/alex_mole.png
Binary file added supporters/polygons/alexander_zacherl.png
Binary file added supporters/polygons/alexandre_barret.png
Binary file added supporters/polygons/allison_cliftjennings.png
Binary file added supporters/polygons/amy_fuchs.png
Binary file added supporters/polygons/amy_traylor.png
Binary file added supporters/polygons/andrea_di_biagio.png
Binary file added supporters/polygons/andrew_grondin.png
Binary file added supporters/polygons/andy_ellis.png
Binary file added supporters/polygons/animation_at_work.png
Binary file added supporters/polygons/anshul_dhawan.png
Binary file added supporters/polygons/anthony_pecorella.png
Binary file added supporters/polygons/aran_jger.png
Binary file added supporters/polygons/aria_minaei.png
Binary file added supporters/polygons/artwalks_europe.png
Binary file added supporters/polygons/ben_kraft.png
Binary file added supporters/polygons/ben_mathes.png
Binary file added supporters/polygons/benjamin_lindsay.png
Binary file added supporters/polygons/bob_wise.png
Binary file added supporters/polygons/bohdan_makohin.png
Binary file added supporters/polygons/boondoggle.png
Binary file added supporters/polygons/brian.png
Binary file added supporters/polygons/brian_lange.png
Binary file added supporters/polygons/brianna_bergen.png
Binary file added supporters/polygons/bruce_steinberg.png
Binary file added supporters/polygons/c.png
Binary file added supporters/polygons/caelyn_mcaulay.png
Binary file added supporters/polygons/cathy_deng.png
Binary file added supporters/polygons/ceceron44.png
Binary file added supporters/polygons/cedric_rossi.png
Binary file added supporters/polygons/chad_sansing.png
Binary file added supporters/polygons/charlie_stigler.png
Binary file added supporters/polygons/chris_hallacy.png
Binary file added supporters/polygons/chris_makler.png
Binary file added supporters/polygons/christopher_ferrie.png
Binary file added supporters/polygons/christopher_goes.png
Binary file added supporters/polygons/christopher_rodier.png
Binary file added supporters/polygons/clive_freeman.png
Binary file added supporters/polygons/colin_anderson.png
Binary file added supporters/polygons/colin_liotta.png
Binary file added supporters/polygons/cristy_stone.png
Binary file added supporters/polygons/curtis_frye.png
Binary file added supporters/polygons/cyrus_levy.png
Binary file added supporters/polygons/da_liberman.png
Binary file added supporters/polygons/dag_frode_solberg.png
Binary file added supporters/polygons/dave_mcclure.png
Binary file added supporters/polygons/dave_tu.png
Binary file added supporters/polygons/david_e_weekly.png
Binary file added supporters/polygons/david_sallmann.png
Binary file added supporters/polygons/dinos_papadopoulos.png
Binary file added supporters/polygons/dominc.png
Binary file added supporters/polygons/dylan_field.png
Binary file added supporters/polygons/eli_jeschke.png
Binary file added supporters/polygons/elmar_schlueter.png
Binary file added supporters/polygons/eric_chisholm.png
Binary file added supporters/polygons/evan_rocha.png
Binary file added supporters/polygons/evan_shulman.png
Binary file added supporters/polygons/fiona_nielsen.png
Binary file added supporters/polygons/florencia_herra_vega.png
Binary file added supporters/polygons/fred_ehrsam.png
Binary file added supporters/polygons/fred_tschepp.png
Binary file added supporters/polygons/freddie_firth.png
Binary file added supporters/polygons/fritz_solares.png
Binary file added supporters/polygons/gabriel_barbosa_nunes.png
Binary file added supporters/polygons/glen_e_ivey.png
Binary file added supporters/polygons/green.png
Binary file added supporters/polygons/greg_nelson.png
Binary file added supporters/polygons/grvling.png
Binary file added supporters/polygons/gui_ambros.png
Binary file added supporters/polygons/harry_brisson.png
Binary file added supporters/polygons/hilary_fried.png
Binary file added supporters/polygons/iago_medeiros_cordeiro.png
Binary file added supporters/polygons/iain_kirkpatrick.png
Binary file added supporters/polygons/idahosa_ness.png
Binary file added supporters/polygons/igor_krawczuk.png
Binary file added supporters/polygons/industrialrobot.png
Binary file added supporters/polygons/istvn_hamar.png
Binary file added supporters/polygons/ivo_murrell.png
Binary file added supporters/polygons/jaakko.png
Binary file added supporters/polygons/jack.png
Binary file added supporters/polygons/jacob_feala.png
Binary file added supporters/polygons/jacob_james_leaney.png
Binary file added supporters/polygons/jacopo_cascioli.png
Binary file added supporters/polygons/jamieson_taylor.png
Binary file added supporters/polygons/jan_van_nigtevegt.png
Binary file added supporters/polygons/jared_cosulich.png
Binary file added supporters/polygons/jasmine_ren.png
Binary file added supporters/polygons/jason_crawford.png
Binary file added supporters/polygons/jeaneudes_denis.png
Binary file added supporters/polygons/jesper_the_end.png
Binary file added supporters/polygons/jessica_osio.png
Binary file added supporters/polygons/joe_sevits.png
Binary file added supporters/polygons/joe_shumaker.png
Binary file added supporters/polygons/jonathan_ng.png
Binary file added supporters/polygons/josef_komenda.png
Binary file added supporters/polygons/josh_cheeseness_bush.png
Binary file added supporters/polygons/josh_comeau.png
Binary file added supporters/polygons/josh_koenig.png
Binary file added supporters/polygons/josh_leong.png
Binary file added supporters/polygons/joshua_horowitz.png
Binary file added supporters/polygons/juan_ignacio_terraza.png
Binary file added supporters/polygons/julie_franke.png
Binary file added supporters/polygons/kailys.png
Binary file added supporters/polygons/kaitlin_smith.png
Binary file added supporters/polygons/karen_cooper.png
Binary file added supporters/polygons/kate_fractal.png
Binary file added supporters/polygons/kelvin_nishikawa.png
Binary file added supporters/polygons/kendra_lockman.png
Binary file added supporters/polygons/kevin_zollman.png
Binary file added supporters/polygons/kumara_uttara.png
Binary file added supporters/polygons/laura.png
Binary file added supporters/polygons/laura_baldwin.png
Binary file added supporters/polygons/leopard_dan.png
Binary file added supporters/polygons/leslie_robinson.png
Binary file added supporters/polygons/lexszero.png
Binary file added supporters/polygons/linda_liukas.png
Binary file added supporters/polygons/ljt.png
Binary file added supporters/polygons/lucas_garron.png
Binary file added supporters/polygons/lukas_wegmann.png
Binary file added supporters/polygons/m.png
Binary file added supporters/polygons/macdiva.png
Binary file added supporters/polygons/maciej.png
Binary file added supporters/polygons/marconi_pereira.png
Binary file added supporters/polygons/mary_bush.png
Binary file added supporters/polygons/matt_hughes.png
Binary file added supporters/polygons/matthew_campbell.png
Binary file added supporters/polygons/matthew_weber.png
Binary file added supporters/polygons/maxim_sidorov.png
Binary file added supporters/polygons/mga.png
Binary file added supporters/polygons/michael_donatz.png
Binary file added supporters/polygons/michael_duke.png
Binary file added supporters/polygons/michael_handler.png
Binary file added supporters/polygons/michael_huff.png
Binary file added supporters/polygons/michael_merchant.png
Binary file added supporters/polygons/mikayla_hutchinson.png
Binary file added supporters/polygons/mikey.png
Binary file added supporters/polygons/mikkel_snyder.png
Binary file added supporters/polygons/molly_mcfadden.png
Binary file added supporters/polygons/naomi_alderman.png
Binary file added supporters/polygons/nat_alison.png
Binary file added supporters/polygons/natalie_rothfels.png
Binary file added supporters/polygons/natalie_sun.png
Binary file added supporters/polygons/nelson_crespo.png
Binary file added supporters/polygons/nick.png
Binary file added supporters/polygons/nick_gallegos.png
Binary file added supporters/polygons/nikita.png
Binary file added supporters/polygons/nimrod_kimhi.png
Binary file added supporters/polygons/nishanth_sudharsanam.png
Binary file added supporters/polygons/noah_richards.png
Binary file added supporters/polygons/noel.png
Binary file added supporters/polygons/pablo_molins.png
Binary file added supporters/polygons/patrick_bobell.png
Binary file added supporters/polygons/patrick_henderson.png
Binary file added supporters/polygons/paul_daoust.png
Binary file added supporters/polygons/paul_sztajer.png
Binary file added supporters/polygons/peter_kadlot.png
Binary file added supporters/polygons/phil_dougherty.png
Binary file added supporters/polygons/postmillenial.png
Binary file added supporters/polygons/quartz.png
Binary file added supporters/polygons/rae_mcintosh.png
Binary file added supporters/polygons/rafael_ffont.png
Binary file added supporters/polygons/raspbeguy.png
Binary file added supporters/polygons/raymond_keller.png
Binary file added supporters/polygons/rebecca_wigandt.png
Binary file added supporters/polygons/reed_copperstrand.png
Binary file added supporters/polygons/rob_mckaughan.png
Binary file added supporters/polygons/rob_napier.png
Binary file added supporters/polygons/robert_aran.png
Binary file added supporters/polygons/robert_duncan.png
Binary file added supporters/polygons/rohit_bhat.png
Binary file added supporters/polygons/rory_sutherland.png
Binary file added supporters/polygons/rupert_moore.png
Binary file added supporters/polygons/s_smith.png
Binary file added supporters/polygons/sal_go.png
Binary file added supporters/polygons/sam_dorios.png
Binary file added supporters/polygons/sam_prinssen.png
Binary file added supporters/polygons/sam_remis.png
Binary file added supporters/polygons/sara_hekimian.png
Binary file added supporters/polygons/scott_donaldson.png
Binary file added supporters/polygons/sean.png
Binary file added supporters/polygons/sean_riley.png
Binary file added supporters/polygons/serena_casanova.png
Binary file added supporters/polygons/sergiy_protsiv.png
Binary file added supporters/polygons/settworks.png
Binary file added supporters/polygons/shakir_alshareef.png
Binary file added supporters/polygons/shreeya_goel.png
Binary file added supporters/polygons/silviu_strliciuc.png
Binary file added supporters/polygons/srini_kadamati.png
Binary file added supporters/polygons/stefano_baccianella.png
Binary file added supporters/polygons/steve_krouse.png
Binary file added supporters/polygons/steve_ryman.png
Binary file added supporters/polygons/steve_waldman.png
Binary file added supporters/polygons/tal_rotbart.png
Binary file added supporters/polygons/tamir_bahar.png
Binary file added supporters/polygons/teodor_zhechev.png
Binary file added supporters/polygons/thomas_ballinger.png
Binary file added supporters/polygons/toby_schachman.png
Binary file added supporters/polygons/todd_siegel.png
Binary file added supporters/polygons/tom_lieber.png
Binary file added supporters/polygons/toph_tucker.png
Binary file added supporters/polygons/travis_ross.png
Binary file added supporters/polygons/trevor_haldenby.png
Binary file added supporters/polygons/tudor_iliescu.png
Binary file added supporters/polygons/upidaisy.png
Binary file added supporters/polygons/william_b_everett.png
Binary file added supporters/polygons/william_ohanley.png
Binary file added supporters/polygons/wouter_slegers.png
Binary file added supporters/polygons/yates_buckley.png
Binary file added supporters/polygons/yinhung_hsu.png
Binary file added supporters/polygons/yuhan_kuo.png
Binary file added supporters/polygons/yury_melnichek.png
Binary file added supporters/polygons/zach_smith.png
Binary file added supporters/polygons/zan_armstrong.png

0 comments on commit 4489359

Please sign in to comment.