ncase.me-trust/index.html

113 lines
3 KiB
HTML
Raw Normal View History

2017-06-20 11:10:41 +00:00
<!doctype>
<html>
<head>
<title>The Evolution of Trust</title>
<link rel="stylesheet" href="css/slides.css">
2017-07-12 18:59:22 +00:00
<link rel="stylesheet" href="css/balloon.css">
2017-06-20 11:10:41 +00:00
</head>
<body>
<div id="main">
2017-07-13 15:07:33 +00:00
<div id="slideshow_container">
<div id="slideshow"></div>
2017-07-20 18:45:11 +00:00
<div id="scratcher"></div>
2017-07-13 15:07:33 +00:00
</div>
2017-06-20 11:10:41 +00:00
</div>
<div id="footer">
<div id="select"></div>
</div>
</body>
</html>
<!-- Libraries -->
<script src="js/lib/helpers.js"></script>
2017-06-28 14:53:43 +00:00
<script src="js/lib/pegasus.js"></script>
2017-07-13 15:07:33 +00:00
<script>var c_ = {};</script>
2017-06-20 11:10:41 +00:00
<script src="js/lib/minpubsub.src.js"></script>
<script src="js/lib/q.js"></script>
<script src="js/lib/pixi.min.js"></script>
2017-07-13 15:41:43 +00:00
<script src="js/lib/howler.js"></script>
2017-06-21 20:05:44 +00:00
<script>var createjs = window;</script>
<script src="js/lib/tweenjs-0.6.2.min.js"></script>
2017-06-28 20:28:15 +00:00
<script>Ticker.framerate=60; Ticker.paused=true;</script>
2017-06-20 11:10:41 +00:00
<!-- Core Engine -->
2017-06-27 17:49:58 +00:00
<script src="js/core/Loader.js"></script>
2017-06-20 11:10:41 +00:00
<script src="js/core/Slideshow.js"></script>
<script src="js/core/SlideSelect.js"></script>
<script src="js/core/Button.js"></script>
2017-06-26 19:52:49 +00:00
<script src="js/core/TextBox.js"></script>
<script src="js/core/Words.js"></script>
2017-06-28 20:28:15 +00:00
<script src="js/core/IncDecNumber.js"></script>
2017-06-29 02:12:32 +00:00
<script src="js/core/Slider.js"></script>
2017-07-10 15:38:20 +00:00
<script src="js/core/Scratcher.js"></script>
2017-07-12 21:24:26 +00:00
<script src="js/core/Background.js"></script>
2017-07-17 19:39:26 +00:00
<script src="js/core/ImageBox.js"></script>
2017-07-18 18:39:53 +00:00
<script src="js/core/PayoffsUI.js"></script>
2017-06-20 11:10:41 +00:00
<!-- Simulations -->
2017-07-10 15:38:20 +00:00
<script src="js/sims/Splash.js"></script>
2017-06-21 20:05:44 +00:00
<script src="js/sims/PD.js"></script>
2017-07-10 15:38:20 +00:00
<script src="js/sims/Iterated.js"></script>
2017-06-23 21:57:22 +00:00
<script src="js/sims/Tournament.js"></script>
2017-06-28 14:53:43 +00:00
<script src="js/sims/SandboxUI.js"></script>
2017-06-20 11:10:41 +00:00
2017-06-26 19:52:49 +00:00
<!-- Slides -->
2017-07-12 13:42:17 +00:00
<script src="js/slides/0_Slides_Intro.js"></script>
<script src="js/slides/1_Slides_OneOff.js"></script>
<script src="js/slides/2_Slides_Iterated.js"></script>
<script src="js/slides/3_Slides_Tournament.js"></script>
2017-07-12 21:24:26 +00:00
<script src="js/slides/4_Slides_Evolution.js"></script>
2017-07-17 22:32:02 +00:00
<script src="js/slides/5_Slides_Distrust.js"></script>
<script src="js/slides/6_Slides_Noise.js"></script>
<script src="js/slides/7_Slides_Sandbox.js"></script>
<script src="js/slides/8_Slides_Conclusion.js"></script>
<script src="js/slides/9_Slides_Credits.js"></script>
2017-07-12 13:42:17 +00:00
<!--script src="js/slides/Slides_Sandbox.js"></script-->
2017-06-26 19:52:49 +00:00
2017-06-20 11:10:41 +00:00
<!-- Main Code -->
<script>
var slideshow, slideSelect;
window.onload = function(){
2017-07-20 18:45:11 +00:00
// PRELOADER
2017-06-27 17:49:58 +00:00
Q.all([
2017-07-20 18:45:11 +00:00
Loader.loadAssets(Loader.manifestPreload),
2017-06-27 17:49:58 +00:00
Words.convert("lang/en.html")
]).then(function(){
2017-06-20 11:10:41 +00:00
2017-06-26 19:52:49 +00:00
// Slideshow
slideshow = new Slideshow({
dom: $("#slideshow"),
slides: SLIDES
});
2017-06-20 11:10:41 +00:00
2017-06-26 19:52:49 +00:00
// Slide Select
2017-07-12 13:42:17 +00:00
slideSelect = new SlideSelect({
2017-06-26 19:52:49 +00:00
dom: $("#select"),
slides: SLIDES
2017-07-12 13:42:17 +00:00
});
2017-07-20 18:45:11 +00:00
slideSelect.dom.style.display = "none";
subscribe("start/game", function(){
publish("slideshow/next");
slideSelect.dom.style.display = "block";
});
// LOAD REAL THINGS
Loader.loadAssets(
Loader.manifest,
function(){
publish("preloader/done");
},
function(ratio){
publish("preloader/progress", [ratio]);
}
);
2017-06-26 19:52:49 +00:00
// First slide!
2017-07-20 18:45:11 +00:00
slideshow.nextSlide();
//slideshow.gotoSlide("noise");
2017-06-26 19:52:49 +00:00
});
2017-06-20 11:10:41 +00:00
};
</script>