code/Athena0.0.1/Web/Content/js/indextab.js
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function ($) {
$.Athenatab = {
requestFullScreen: function () {
var de = document.documentElement;
if (de.requestFullscreen) {
de.requestFullscreen();
} else if (de.mozRequestFullScreen) {
de.mozRequestFullScreen();
} else if (de.webkitRequestFullScreen) {
de.webkitRequestFullScreen();
}
},
exitFullscreen: function () {
var de = document;
if (de.exitFullscreen) {
de.exitFullscreen();
} else if (de.mozCancelFullScreen) {
de.mozCancelFullScreen();
} else if (de.webkitCancelFullScreen) {
de.webkitCancelFullScreen();
}
},
refreshTab: function () {
var currentId = $('.page-tabs-content').find('.active').attr('data-id');
var target = $('.Athena_iframe[data-id="' + currentId + '"]');
var url = target.attr('src');
$.loading(true);
target.attr('src', url).load(function () {
$.loading(false);
});
},
activeTab: function () {
var currentId = $(this).data('id');
if (!$(this).hasClass('active')) {
$('.mainContent .Athena_iframe').each(function () {
if ($(this).data('id') == currentId) {
$(this).show().siblings('.Athena_iframe').hide();
return false;
}
});
$(this).addClass('active').siblings('.menuTab').removeClass('active');
$.Athenatab.scrollToTab(this);
}
},
closeOtherTabs: function () {
$('.page-tabs-content').children("[data-id]").find('.fa-remove').parents('a').not(".active").each(function () {
$('.Athena_iframe[data-id="' + $(this).data('id') + '"]').remove();
$(this).remove();
});
$('.page-tabs-content').css("margin-left", "0");
},
closeTab: function () {
var closeTabId = $(this).parents('.menuTab').data('id');
var currentWidth = $(this).parents('.menuTab').width();
if ($(this).parents('.menuTab').hasClass('active')) {
if ($(this).parents('.menuTab').next('.menuTab').size()) {
var activeId = $(this).parents('.menuTab').next('.menuTab:eq(0)').data('id');
$(this).parents('.menuTab').next('.menuTab:eq(0)').addClass('active');
$('.mainContent .Athena_iframe').each(function () {
if ($(this).data('id') == activeId) {
后面还有 212 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
