public/static/common/js/app.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* VARIABLES
* Description: All Global Vars
*/
// Impacts the responce rate of some of the responsive elements (lower value affects CPU but improves speed)
$.throttle_delay = 350;
// The rate at which the menu expands revealing child elements on click
$.menu_speed = 235;
// Note: You will also need to change this variable in the "variable.less" file.
$.navbar_height = 49;
/*
* APP DOM REFERENCES
* Description: Obj DOM reference, please try to avoid changing these
*/
$.root_ = $('body');
$.left_panel = $('#left-panel');
$.shortcut_dropdown = $('#shortcut');
$.bread_crumb = $('#ribbon ol.breadcrumb');
// desktop or mobile
$.device = null;
/*
* APP CONFIGURATION
* Description: Enable / disable certain theme features here
*/
$.navAsAjax = false; // Your left nav in your app will no longer fire ajax calls
// Please make sure you have included "jarvis.widget.js" for this below feature to work
$.enableJarvisWidgets = true;
// Warning: Enabling mobile widgets could potentially crash your webApp if you have too many
// widgets running at once (must have $.enableJarvisWidgets = true)
$.enableMobileWidgets = false;
/*
* DETECT MOBILE DEVICES
* Description: Detects mobile device - if any of the listed device is detected
* a class is inserted to $.root_ and the variable $.device is decleard.
*/
/* so far this is covering most hand held devices */
var ismobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (!ismobile) {
// Desktop
$.root_.addClass("desktop-detected");
$.device = "desktop";
} else {
// Mobile
$.root_.addClass("mobile-detected");
$.device = "mobile";
// Removes the tap delay in idevices
// dependency: js/plugin/fastclick/fastclick.js
FastClick.attach(document.body);
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。