WebContent/resource/web/js/flatpoint_core.js
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* Dont delete this code!!! This file has to be included in template or template will lose his main functionality */
/* This is main core javascript for properly functioning template - DO NOT DELETE OR EXCLUDE THIS FILE */
jQuery.noConflict();
/** Debounced resize - resizing screen update width and height of some elements **/
(function($,sr){
var debounce = function (func, threshold, execAsap) {
var timeout;
return function debounced () {
var obj = this, args = arguments;
function delayed () {
if (!execAsap)
func.apply(obj, args);
timeout = null;
};
if (timeout)
clearTimeout(timeout);
else if (execAsap)
func.apply(obj, args);
timeout = setTimeout(delayed, threshold || 100);
};
}
// smartresize
jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
})(jQuery,'smartresize');
/** Functions start here **/
jQuery(function($) {
/* Responsive menu show/hide */
$('.responsive_menu a').click(function() {
if($('#main_navigation > div').length > 0) {
if($('#main_navigation > div').is(":hidden")) {
$('#main_navigation > div').slideDown();
} else {
$('#main_navigation > div').slideUp();
}
return false;
}
if($('#top_navigation').length > 0) {
if($('#top_navigation').is(':hidden')) {
$('#top_navigation').slideDown();
} else {
$('#top_navigation').slideUp();
}
return false;
}
});
/** Popovers **/
$('a[rel="popover"]').popover();
$('a[rel="popover"]').click(function() {
return false;
后面还有 292 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。