* from before. * * @package core * @subpackage js * * @author ebollens * @copyright Copyright (c) 2010-11 UC Regents * @license http://mwf.ucla.edu/license * @version 20111104 * * @uses JS */ require_once dirname(__FILE__) . '/lib/js.class.php'; ?> <html><head></head><body><script type="text/javascript"><?php /** * Core Javascript libraries always included. */ $core_filenames = array('vars.php', 'base.js', 'modernizr.js', 'capability.js', 'browser.js', 'useragent.js', 'screen.js', 'classification.js', 'util.js', 'override.js', 'server.js'); /** * Include each core Javascript library. */ foreach ($core_filenames as $filename) { JS::load('core/' . $filename); } ?> window.location = '<?php echo $_GET['return']; ?> ';</script></body></html>
* Moves the window below the URL bar and fixes Safari viewport on orientation change. */ if (User_Agent::get_os() == 'iphone_os') { JS::load('iphone/safariurlbar.js'); JS::load('iphone/orientation.js'); } /** * Include preview_util as part of js.php and import the desktop preview. * * @uses /assets/js/desktop/preview_util.php * @uses /assets/js/desktop/preview.js [import] */ if (Classification::is_preview()) { JS::load_from_key('jquery'); JS::load('desktop/preview_util.php'); JS::load('desktop/preview_menu.js'); } /** * Load all standard (and touch_lib for compat) libraries specified in the URI. */ if (Classification::is_standard() && (isset($_GET['standard_libs']) || isset($_GET['touch_libs']))) { $loadarr = isset($_GET['standard_libs']) ? explode(' ', $_GET['standard_libs']) : array(); if (isset($_GET['touch_libs'])) { $loadarr = array_merge(explode(' ', $_GET['touch_libs']), $loadarr); } foreach ($loadarr as $load) { JS::load_from_key($load); } } /** * Load all full (and webkit_lib for compat) libraries specified in the URI.
function load_js() { JS::load(); }