This repository has been archived on 2026-03-31. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
splash/lib/app_base/scripts/splash.js

32 lines
1.1 KiB
JavaScript

/* splash.js
*
* Core javascript file for a compiled "Splash" app. Note: This is a template, replacement
* occurs at compile time. Certain functions defined below are only referenced on page load
* to knock together a working frame for the app to run in.
*
* @Author: Ryan McGrath (ryan@venodesigns.net)
* @Requires: jQuery 1.3.2 or greater (preferably 1.4.2, I make no guarantee for anything else, but it should work)
*/
var splash_reserved = {};
var game_on = function(json) {
if(/App Code/.test(json)) return;
};
if(typeof debug === "undefined")
var debug = function(msg) {
/* TODO: Support debugging in other annoying consoles (Opera, I'm looking at you) */
if(typeof console !== "undefined" && typeof console.log === "function") console.log(msg);
};
$(document).ready(function() {
splash_reserved.wrapper = $("#splash_app_wrapper");
/* Rough guesstimation for now on desired height, finagle later. Wait until the frame is our desired height before
* "running" our program.
*/
splash_reserved.wrapper.animate({"height": $(window).height() - 50}, 800, function() {
main();
});
});