<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
+ <!--
+
+ Currently tested with:
+
+ Mac Windows
+ ______________________
+ Chrome | 15 -
+ Safari | 5 -
+ FF | 8 8
+ IE | N/A 9
+
+ -->
<head>
<title>FinalsClub.org</title>
<div class="content">
+
<style>
/* The is here is because it's related less to "styling" and more to UI "behavior" */
.page { display: none; }
*/
var topQueue = [0]
function goPage(path) {
- var y = 0 + window.pageYOffset
- topQueue.push(y)
- history.pushState({}, path, path);
- showPage(0);
+ if(history.pushState !== undefined) {
+ topQueue.push(window.pageYOffset)
+ history.pushState({}, path, path);
+ showPage(0);
+ }
+ else {
+ document.location = path;
+ }
}
/* Simulates a "back" browser navigation. */
+var popped = false;
function goBack(event) {
- var y = topQueue.pop()
- showPage( y );
+ popped = true;
+ showPage( topQueue.pop() );
}
+
$(document).ready(function() {
// This code executes after the page has been fully loaded
+ $(".proto").css("display", "none"); // make all the prototypes invisible
+
+ //$("body").get(0).onunload = function() { } // fires when leaving the page proper
+
+ ProtoDiv.each = function(e) { $(e).show() }
+
window.onpopstate = goBack
+ setTimeout(function() {
+ if(!popped)
+ showPage(0)
+ }, 2000);
// xxx older FF browsers don't fire a page load/reload - deal with it somehow.
// showPage( 0 ); // needed for some older browsers, redundant for chrome
delete e.id
mom.insertBefore(e, sib)
ProtoDiv.inject(e, obj, i)
+ if(ProtoDiv.each)
+ ProtoDiv.each(e, i, obj, mom)
}
if(!keep)