(function(op) {
var effect1 = function() {
var head = $('#xg_header');
var an = function() {
if(document.documentElement.scrollTop + document.body.scrollTop > head.height()) {
head.css('opacity', 1);
} else {
head.css('opacity', 1);
}
}
page.scroll(an);
}
if(page.currentDevice() == 1) {
if(op.pcEffect == 2) {
effect1();
}
} else {}
})({
'pcEffect': 0,
'mobileEffect': 0
});
var menu = function(obj, options) {
var cssAColor = '';
var addClass = function(el, className) {
el.addClass(className);
if(el.css('color') && cssAColor.indexOf('.' + className) == -1) {
cssAColor += '.' + className + ' a{color:' + el.css('color') + ';}';
}
}
var nid = parseInt(util.queryString('nid'));
if(isNaN(nid)) {
nid = 0;
}
if(nid > 0) {
var navi = obj.find('li[data-nid=' + nid + ']');
var tid = parseInt(util.queryString('typeid'));
if(isNaN(tid)) {
tid = parseInt(util.queryString('tid'));
}
var li = obj.children('.xg_menuUl').children('li[data-tid=' + tid + ']');
if(li.length > 0) {
addClass(li, li.attr('class').split(' ')[0] + '-select');
} else if(navi.length > 0) {
addClass(navi, navi.attr('class').split(' ')[0] + '-select');
if(tid > 0) {
var li = navi.find('li[data-tid=' + tid + ']');
if(li.length > 0) {
addClass(li, li.attr('class').split(' ')[0] + '-select');
li.parentsUntil('.xg_menu', 'li').each(function() {
addClass($(this), $(this).attr('class').split(' ')[0] + '-select');
actived = true;
return false;
});
}
}
}
} else {
var url = util.createUrl();
if(url.replace(document.location.host, '').indexOf('.') == -1 || url.indexOf('index.aspx') > 0) {
var home = obj.find('li[home=1]');
if(home.length > 0) {
addClass(home, home.attr('class').split(' ')[0] + '-select');
}
}
}
if(cssAColor) {
var style = document.createElement('style');
style.type = 'text/css';
style.innerText = cssAColor;
document.head.appendChild(style);
}
var showType = obj.data('mobileshoweffect');
obj.find('.xg_menuMobile .xg_memu_btn').on('click', function() {
options.mobileMenuEffect.show(obj);
if(util.isNullOrEmpty($('body').attr('style')) || (!util.isNullOrEmpty($('body').attr('style') && $('body').attr('style').indexOf('overflow-y') == -1))) {
$('body').css('overflow-y', 'hidden');
$('body').attr('data-overflow', true);
} else {
$('body').attr('data-overflow', false);
}
if(showType == 0 || showType == 2) {
$(this).next().css({
'left': '0px'
});
} else if(showType == 1 || showType == 3) {
$(this).next().css({
'top': '0px'
});
}
setTimeout(function() {
obj.find('img').lazyload();
}, 300);
});
obj.find('.xg_menuShade').on('click', function() {
if($('body').data('overflow')) {
$('body').css('overflow-y', '');
}
$('body').removeAttr('data-overflow');
var css = {};
if(showType == 0) {
css = {
'left': '-100%'
};
} else if(showType == 1) {
css = {
'top': '-100%'
};
} else if(showType == 2) {
css = {
'left': '100%'
};
} else if(showType == 3) {
css = {
'top': '100%'
};
}
$(this).parent().css(css);
options.mobileMenuEffect.hide(obj);
});
var design = util.inDesign();
if(design) {
if(obj.find('.xg_menutop').children().length == 0) {
obj.find('.xg_menutop').html('
可拖动行到此
');
}
if(obj.find('.xg_menubottom').children().length == 0) {
obj.find('.xg_menubottom').html('可拖动行到此
');
}
}
var device = page.currentDevice();
if(device == 2) {
options.mobileMenuEffect.init(obj);
if(obj.data('mobilelisttype') == 2) {
var mobile = obj.find('.xg_menuMobile');
mobile.children('.xg_menuPanel').find('ul').show();
mobile.find('.xg_menuUl').css({
'height': '100%',
'overflow-y': 'auto'
});
return;
}
}
obj.children('.xg_menuMobile').find('.xg_menuTitle1,.xg_menuTitle2,.xg_menuTitle3,.xg_menuTitle4').on('click', function(e) {
var ul = $(this).next();
if(ul.length == 0) {
return true;
}
ul.slideToggle();
return true;
});
if(device == 1 && obj.data('droptype') == '1') {
var ul = obj.children('.xg_menuUl');
var needEffect = obj.data('effect');
if(!needEffect) {
needEffect = 0;
}
var menulis = ul.children('li');
var droplist = obj.children('.xg_dropdownlist');
if(design) {
var html = '';
if(droplist.length == 0) {
html = '';
}
obj.children('.xg_menuUl').children('li').each(function() {
var id = $(this).data('nid');
var type = 'n';
if(!id) {
id = $(this).data('tid');
type = 't';
}
if($(this).attr('home') || droplist.children('div[data-rid=' + id + ']').length > 0) {
return;
}
html += '
当前下拉菜单中无内容,访客访问将不显示当前下拉菜单
';
});
if(droplist.length == 0) {
html += '
';
obj.append(html);
droplist = obj.children('.xg_dropdownlist');
} else {
droplist.append(html);
}
menulis.on('click', function() {
var _this = $(this);
setTimeout(function() {
if(!selector._element.innerSelect) {
return;
}
var id = _this.data('nid');
if(!id) {
id = _this.data('tid');
}
if(!id) {
return;
}
var mWidth = $(this).parents('.xg_header').width();
droplist.css({
'width': document.documentElement.clientWidth + 'px',
'height': 'auto',
'display': 'block',
'min-width': mWidth + 'px',
'position': 'absolute',
'top': ul.height() + 'px'
});
if(droplist.offset().left != 0) {
var mLeft = parseInt(droplist.css('margin-left'));
isNaN(mLeft) && (mLeft = 0);
var left = mLeft - droplist.offset().left;
droplist.css({
'margin-left': left + 'px'
});
}
var list = droplist.children('[data-rid=' + id + ']');
if(list.length == 0) {
return;
}
if(list.css('display') == 'block') {
list.hide();
} else {
list.show().siblings().hide();
}
}, 150);
});
} else if(droplist.length > 0) {
menulis.hover(function() {
clearTimeout($(this).data('menuHide'));
var id = $(this).data('nid');
if(!id) {
id = $(this).data('tid');
}
if(!id) {
return;
}
var mWidth = $(this).parents('.xg_header').width();
droplist.css({
'width': document.documentElement.clientWidth + 'px',
'height': 'auto',
'display': 'block',
'min-width': mWidth + 'px',
'position': 'absolute',
'top': ul.height() + 'px'
});
if(droplist.offset().left != 0) {
var mLeft = parseInt(droplist.css('margin-left'));
isNaN(mLeft) && (mLeft = 0);
var left = mLeft - droplist.offset().left;
droplist.css({
'margin-left': left + 'px'
});
}
var list = droplist.children('[data-rid=' + id + ']');
if(list.length == 0) {
return;
}
list.siblings().hide();
if(needEffect == 0) {
list.show();
} else {
list.stop().slideDown('fast');
}
}, function() {
var _this = $(this);
var id = _this.data('nid');
if(!id) {
id = _this.data('tid');
}
if(!id) {
return;
}
var list = droplist.children('[data-rid=' + id + ']');
if(list.length == 0) {
return;
}
clearTimeout(_this.data('menuHide'));
_this.data('menuHide', setTimeout(function() {
if(needEffect == 0) {
list.hide();
} else {
list.stop().slideUp('fast');
}
}, 120));
});
droplist.children('div').hover(function() {
var id = $(this).data('rid');
menulis.each(function() {
var _that = $(this);
var mid = _that.data('nid');
if(!mid) {
mid = _that.data('tid');
}
if(mid == id || mid == id) {
clearTimeout(_that.data('menuHide'));
}
});
}, function() {
if(needEffect == 0) {
$(this).hide();
} else {
$(this).stop().slideUp('fast');
}
});
}
}
}
var configd53611f2e387d337 = {
"autoPlay": "true",
"pc_slidesToShow": "1",
"pc_slidesToScroll": "1",
"arrows": "false",
"m_slidesToShow": "1",
"m_slidesToScroll": "1",
"dots": "false",
"m_arrows": "false",
"row": "1",
"slidesPerRow": "1",
"m_row": "1",
"m_slidesPerRow": "3",
"speed": "1000",
"infinite": "true",
"pc_mouseTouch": "true",
"centerMode": "false",
"centerPadding": "150px",
"m_centerPadding": "80px",
"onBeforeChange": " ",
"onAfterChange": " ",
"pauseOnHover": "true"
};
(function(root, config) {
var container = root.find(".xg_list:first");
var slick = root.find(".data_row:first");
root.find(".row").css("visibility", "hidden");
slick.data("currentDevice", 0);
function main() {
setTimeout(function() {
play();
}, 2000);
}
var play = function() {
if(config.autoPlay) {
slick.slick('slickPlay');
}
}
function init() {
config.autoPlay = util.toBool(config.autoPlay);
config.infinite = util.toBool(config.infinite);
config.speed = util.toInt(config.speed) == 0 ? 1000 : util.toInt(config.speed);
config.autoplaySpeed = util.toInt(config.autoplaySpeed) == 0 ? 3000 : util.toInt(config.autoplaySpeed);
config.centerPadding = config.centerPadding ? config.centerPadding : "150px";
config.m_centerPadding = config.m_centerPadding ? config.m_centerPadding : "80px";
config.pauseOnHover = util.inDesign() ? true : util.toBool(config.pauseOnHover);
if(slick.children().length > 0 && slick.data("currentDevice") != 0 && slick.find(".slick-list").length > 0) {
slick.slick('destroy');
}
var loaded = false;
var load = function() {
if(loaded) {
return;
}
var options = {
autoplay: false, //自动播放
autoplaySpeed: config.autoplaySpeed, //自动播放速度
arrows: config.arrows, //上一页下一页箭头
infinite: config.infinite, //循环播放
speed: config.speed, //滑动时间
adaptiveHeight: true,
pauseOnHover: config.pauseOnHover, //鼠标悬停暂停
cssEase: 'cubic-bezier(0.950, 0.050, 0.795, 0.950)',
onBeforeChange: config.onBeforeChange,
onAfterChange: config.onAfterChange,
syncloadImage: true
};
if(typeof mySlickOption != 'undefined') {
options = mySlickOption(options, root);
}
if(options.syncloadImage) {
root.find("img").each(function() {
var src = $(this).data("src");
if(!$(this).attr("src")) {
$(this).attr("src", src);
}
});
}
options.dots = util.toBool(config.dots); //隐藏点点
options.pcMouseTouch = util.toBool(config.pc_mouseTouch);
options.centerMode = util.toBool(config.centerMode);
var device = page.currentDevice();
if(device == 2) {
options.arrows = util.toBool(config.m_arrows); //上一页下一页箭头
options.centerPadding = config.m_centerPadding;
} else {
options.arrows = util.toBool(config.arrows); //上一页下一页箭头
options.centerPadding = config.centerPadding;
}
var rows = device == 2 ? config.m_row : config.row;
if(rows <= 1) {
if(device == 2) {
options.slidesToShow = util.toInt(config.m_slidesToShow) == 0 ? 3 : util.toInt(config.m_slidesToShow); //幻灯片每屏显示个数
options.slidesToScroll = util.toInt(config.m_slidesToScroll) == 0 ? 3 : util.toInt(config.m_slidesToScroll); // 幻灯片每次滑动个数
} else {
options.slidesToShow = util.toInt(config.pc_slidesToShow) == 0 ? 4 : util.toInt(config.pc_slidesToShow); //幻灯片每屏显示个数
options.slidesToScroll = util.toInt(config.pc_slidesToScroll) == 0 ? 4 : util.toInt(config.pc_slidesToScroll); // 幻灯片每次滑动个数
}
} else {
if(device == 2) {
if(config.m_slidesPerRow) {
options.slidesPerRow = config.m_slidesPerRow;
}
} else {
if(config.slidesPerRow) {
options.slidesPerRow = config.slidesPerRow;
}
}
options.rows = rows;
}
loaded = true;
slick.on('init', function(s) {
slick.find(".slick-dots li").addClass("slick-dots-point");
if(parent != this) {
container.css("max-width", $(window).width() + "px");
}
$(slick.currentTarget).show();
setTimeout(function() {
root.find(".row").css("visibility", "visible");
}, 100);
}).slick(options);
slick.data("currentDevice", page.currentDevice());
}
load();
}
function reloadSlick() {
container.data("tabload", "0");
if(slick.data("currentDevice") && slick.data("currentDevice") != page.currentDevice()) {
init();
main();
}
slick.slick('unload');
slick.slick('reinit');
}
page.resize(reloadSlick);
page.registeTabReload.push(function(tabItem, index) {
var find = false;
var isInTab = false; //是否同一TAB里
container.parents().each(function() {
if($(this).is(tabItem)) {
find = true;
} else if($(this).is(tabItem.parent())) {
isInTab = true;
}
});
if(find) {
if(container.data("tabload") == "1") {
if(config.autoPlay) {
slick.slick('slickPlay'); //继续播放
}
} else {
container.data("tabload", "1");
init();
main();
}
} else if(isInTab) {
setTimeout(function() {
slick.slick('slickPause'); //暂停
}, 1000);
}
});
var inTab = false;
container.parents().each(function() {
if($(this).hasClass("xg_tab_tt") && $(this).data("index") != 0) {
inTab = true;
}
});
if(!inTab) {
init();
}
$(main);
})($('#cd53611f2e387d337'), configd53611f2e387d337);
var config23b32c3d038cf4f8 = {
"autoPlay": "true",
"slidesToShow": "3",
"slidesToScroll": "3",
"arrows": "true",
"autoplaySpeed": "6",
"m_slidesToShow": "2",
"m_slidesToScroll": "1",
"m_arrows": "false",
"speed": "1000",
"errorAutoPlay": "false"
};
(function(root, config) {
var slick = root.find('.data_row');
slick.data("currentDevice", 0);
function main() {
setTimeout(function() {
play();
}, 2000);
}
var play = function() {
if(config.autoPlay) {
slick.slick('slickPlay');
}
}
function init() {
config.errorAutoPlay = util.toBool(config.errorAutoPlay);
config.autoPlay = util.toBool(config.autoPlay);
config.slidesToShow = util.toInt(config.slidesToShow);
config.slidesToScroll = util.toInt(config.slidesToScroll);
config.arrows = util.toBool(config.arrows);
config.autoplaySpeed = util.toInt(config.autoplaySpeed) == 0 ? 3 : util.toInt(config.autoplaySpeed);
config.speed = util.toInt(config.speed);
if(page.currentDevice() == 2) {
config.arrows = util.toBool(config.m_arrows);
config.slidesToShow = util.toInt(config.m_slidesToShow) == 0 ? 3 : util.toInt(config.m_slidesToShow);
config.slidesToScroll = util.toInt(config.m_slidesToScroll) == 0 ? 3 : util.toInt(config.m_slidesToScroll);
}
var options = {
autoplay: config.errorAutoPlay, //自动播放
autoplaySpeed: config.autoplaySpeed * 1000, //自动播放速度
arrows: config.arrows, //上一页下一页箭头
infinite: true, //循环播放
speed: config.speed, //滑动时间
slidesToShow: config.slidesToShow, //幻灯片每屏显示个数
slidesToScroll: config.slidesToScroll, // 幻灯片每次滑动个数
vertical: true,
adaptiveHeight: true,
pauseOnHover: true, //鼠标悬停暂停
cssEase: 'cubic-bezier(0.950, 0.050, 0.795, 0.950)',
}
if(typeof mySlickOption != 'undefined') {
options = mySlickOption(options, root);
}
if(slick.children().length > 0 && slick.data("currentDevice") != 0 && slick.find(".slick-list").length > 0) {
slick.slick('destroy');
}
var loaded = false;
var load = function() {
if(loaded) {
return;
}
loaded = true;
slick.on('init', function(slick) {
var $imgs = $(slick.currentTarget).find('img').not('[loaded]');
$imgs.each(function(index, item) {
var src = $(item).attr("src");
if(!src || src.indexOf("data:") == 0) {
$(item).attr("src", $(item).attr("data-src")).attr('loaded', 1);
} else {
$(item).attr('loaded', 1);
}
});
}).slick(options);
slick.data("currentDevice", page.currentDevice());
}
load();
}
function reloadSlick() {
root.data("tabload", "0");
if(slick.data("currentDevice") && slick.data("currentDevice") != page.currentDevice()) {
init();
main();
}
}
page.resize(reloadSlick);
page.registeTabReload.push(function(tabItem, index) {
var find = false;
root.parents().each(function() {
if($(this).is(tabItem)) {
find = true;
}
});
if(find) {
if(root.data("tabload") == "1") {
if(config.autoPlay) {
slick.slick('slickPlay'); //继续播放
}
} else {
root.data("tabload", "1");
init();
main();
}
} else {
slick.slick('slickPause'); //暂停
}
});
init();
$(main);
})($('#c23b32c3d038cf4f8'), config23b32c3d038cf4f8);
var config97781ec6d91784ac = {
"autoPlay": "true",
"slidesToShow": "3",
"slidesToScroll": "1",
"arrows": "false",
"autoplaySpeed": "3",
"m_slidesToShow": "3",
"m_slidesToScroll": "3",
"m_arrows": "false",
"speed": "2000",
"errorAutoPlay": "false"
};
(function(root, config) {
var slick = root.find('.data_row');
slick.data("currentDevice", 0);
function main() {
setTimeout(function() {
play();
}, 2000);
}
var play = function() {
if(config.autoPlay) {
slick.slick('slickPlay');
}
}
function init() {
config.errorAutoPlay = util.toBool(config.errorAutoPlay);
config.autoPlay = util.toBool(config.autoPlay);
config.slidesToShow = util.toInt(config.slidesToShow);
config.slidesToScroll = util.toInt(config.slidesToScroll);
config.arrows = util.toBool(config.arrows);
config.autoplaySpeed = util.toInt(config.autoplaySpeed) == 0 ? 3 : util.toInt(config.autoplaySpeed);
config.speed = util.toInt(config.speed);
if(page.currentDevice() == 2) {
config.arrows = util.toBool(config.m_arrows);
config.slidesToShow = util.toInt(config.m_slidesToShow) == 0 ? 3 : util.toInt(config.m_slidesToShow);
config.slidesToScroll = util.toInt(config.m_slidesToScroll) == 0 ? 3 : util.toInt(config.m_slidesToScroll);
}
var options = {
autoplay: config.errorAutoPlay, //自动播放
autoplaySpeed: config.autoplaySpeed * 1000, //自动播放速度
arrows: config.arrows, //上一页下一页箭头
infinite: true, //循环播放
speed: config.speed, //滑动时间
slidesToShow: config.slidesToShow, //幻灯片每屏显示个数
slidesToScroll: config.slidesToScroll, // 幻灯片每次滑动个数
vertical: true,
adaptiveHeight: true,
pauseOnHover: true, //鼠标悬停暂停
cssEase: 'cubic-bezier(0.950, 0.050, 0.795, 0.950)',
}
if(typeof mySlickOption != 'undefined') {
options = mySlickOption(options, root);
}
if(slick.children().length > 0 && slick.data("currentDevice") != 0 && slick.find(".slick-list").length > 0) {
slick.slick('destroy');
}
var loaded = false;
var load = function() {
if(loaded) {
return;
}
loaded = true;
slick.on('init', function(slick) {
var $imgs = $(slick.currentTarget).find('img').not('[loaded]');
$imgs.each(function(index, item) {
var src = $(item).attr("src");
if(!src || src.indexOf("data:") == 0) {
$(item).attr("src", $(item).attr("data-src")).attr('loaded', 1);
} else {
$(item).attr('loaded', 1);
}
});
}).slick(options);
slick.data("currentDevice", page.currentDevice());
}
load();
}
function reloadSlick() {
root.data("tabload", "0");
if(slick.data("currentDevice") && slick.data("currentDevice") != page.currentDevice()) {
init();
main();
}
}
page.resize(reloadSlick);
page.registeTabReload.push(function(tabItem, index) {
var find = false;
root.parents().each(function() {
if($(this).is(tabItem)) {
find = true;
}
});
if(find) {
if(root.data("tabload") == "1") {
if(config.autoPlay) {
slick.slick('slickPlay'); //继续播放
}
} else {
root.data("tabload", "1");
init();
main();
}
} else {
slick.slick('slickPause'); //暂停
}
});
init();
$(main);
})($('#c97781ec6d91784ac'), config97781ec6d91784ac);
//滚动后
$(function() {
$(".xg_header").addClass("on");
window.myScreenLeave = function(index, nextIndex, direction) {
console.log(nextIndex);
if(nextIndex != 1) {
console.log("其他");
$(".xg_header").removeClass("on");
} else {
console.log("第一");
$(".xg_header").addClass("on");
$(".xg_header").mouseover(function() {
$(".xg_header").removeClass("on");
});
$(".xg_header").mouseout(function() {
$(".xg_header").addClass("on");
})
}
}
})
//模拟banner
$(function() {
$("#s40001").append('
')
var n = $("#i6d4bef526313b8fa .data_col");
var i = 0;
var s = 0;
var _leng = n.length;
var device = page.currentDevice();
n.first().addClass('first');
$(".banner_b_icon").addClass('on');
$("#i6d4bef526313b8fa .data_col").each(function() {
if(device == 1) {
//PC设备
var _imgsrc = $(this).find(".p1732m0331bc373bbd89c4 img").attr("src")
} else if(device == 2) {
//手机设备
var _imgsrc = $(this).find(".p1732m8e6a2fb7aaf9a578 img").attr("src")
}
$(this).css({
"background": "url(" + _imgsrc + ") no-repeat center center",
"background-size": "cover"
})
})
setTimeout(function() {
n.eq(0).removeClass("first");
}, 10000)
setInterval(e, 10000);
function e() {
s = i;
i++;
if(i >= _leng) {
i = 0;
}
n.eq(s).addClass('learning');
n.eq(i).addClass('active');
setTimeout(function() {
n.eq(s).removeClass("learning active");
$(".banner_b_icon").addClass('on');
}, 1250);
$(".banner_b_icon").removeClass('on');
setTimeout(function() {
$(".banner_b_icon").addClass('on');
}, 200);
};
})
//自定义缩放
$(function() {
var device = page.currentDevice();
if(device == 1) {
function mysize() {
var scriwidth = $(window).width();
var s = scriwidth / 1920;
$(".fp-section>.container").css({
"zoom": s
});
}
mysize();
$(window).resize(function() {
mysize();
})
} else if(device == 2) {
//手机设备
$(window).resize(function() {
$(".fp-section>.container").css({
"zoom": 1
});
})
}
});
menu($('#' + 'if17530d4557c0982fbe34c'), {
mobileMenuEffect: {
init: function(root) {},
show: function(root) {
var lis = root.find('.xg_menuMobile').find('li');
var count = 0;
for(var index = 0; index < lis.length; index++) {
if(lis.eq(index).parent().css('display') == 'none') {
continue;
}
lis.eq(index).css({
'transition': 'left 0.5s ' + (count++ * 0.08) + 's',
'left': (-1 * lis.width()) + 'px'
});
}
setTimeout(function() {
lis.css('left', '0px');
}, 50);
},
hide: function(root) {
setTimeout(function() {
var lis = root.find('.xg_menuMobile').find('li');
lis.css({
'transition': '',
'left': (-1 * lis.width()) + 'px'
});
}, 100);
}
}
});
animation.config['an193'] = {
"id": "193",
"clientIndex": "fef8f40eb45fffc6",
"timingFunction": "",
"duration": "1.7",
"delay": "0",
"type": 1,
"name": "关于beat365_向左飞入",
"anName": "an_tran_193",
"library": "fadeInRight",
"device": 1,
"loop": 1,
"resume": 1,
"clear": 1
};
animation.regist($("[data-eventid='fef8f40eb45fffc6']"), [{
"name": "滚屏进入",
"id": 183,
"event": "screenin",
"an": [{
"id": 193,
"anName": "an_tran_193",
"device": 1
}],
"device": 1,
"doCount": 0,
"count": 0
}]);
animation.config['an192'] = {
"id": "192",
"clientIndex": "087f604360d278c5",
"timingFunction": "",
"duration": "1.5",
"delay": "0",
"type": 1,
"name": "研究院_飞入",
"anName": "an_tran_192",
"library": "fadeInLeft",
"device": 1,
"loop": 1,
"resume": 1,
"clear": 1
};
animation.regist($("[data-eventid='5000800010001']"), [{
"name": "滚屏进入",
"id": 182,
"event": "screenin",
"an": [{
"id": 192,
"anName": "an_tran_192",
"device": 1
}],
"device": 1,
"doCount": 0,
"count": 0
}]);
animation.config['an331'] = {
"id": "331",
"clientIndex": "65b7f0995cdf41cc",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻标题_移入",
"anName": "an_tran_331",
"device": 1,
"resume": 0,
"clear": 1
};
animation.config['an332'] = {
"id": "332",
"clientIndex": "65b7f0995cdf41cc",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻标题_移出",
"anName": "an_tran_332",
"device": 1,
"resume": 0,
"clear": 1
};
animation.config['an333'] = {
"id": "333",
"clientIndex": "e0dfd2da4446821e",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻时间_移入",
"anName": "an_tran_333",
"device": 1,
"resume": 0,
"clear": 1
};
animation.config['an334'] = {
"id": "334",
"clientIndex": "e0dfd2da4446821e",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻时间_移出",
"anName": "an_tran_334",
"device": 1,
"resume": 0,
"clear": 1
};
animation.config['an335'] = {
"id": "335",
"clientIndex": "a5cc886dac511ff2",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻描述_移入",
"anName": "an_tran_335",
"device": 1,
"resume": 0,
"clear": 1
};
animation.config['an336'] = {
"id": "336",
"clientIndex": "a5cc886dac511ff2",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻描述_移出",
"anName": "an_tran_336",
"device": 1,
"resume": 0,
"clear": 1
};
animation.config['an337'] = {
"id": "337",
"clientIndex": "6f7e60f50a00793b",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻背景_移入",
"anName": "an_tran_337",
"device": 1,
"resume": 0,
"clear": 1
};
animation.config['an338'] = {
"id": "338",
"clientIndex": "6f7e60f50a00793b",
"timingFunction": "",
"duration": "1",
"delay": "0",
"type": 10,
"name": "新闻背景_移出",
"anName": "an_tran_338",
"device": 1,
"resume": 0,
"clear": 1
};
animation.regist($("[data-eventid='6f7e60f50a00793b']"), [{
"name": "鼠标悬停",
"id": 216,
"event": "mouseenter",
"an": [{
"id": 331,
"anName": "an_tran_331",
"device": 1
}, {
"id": 337,
"anName": "an_tran_337",
"device": 1
}, {
"id": 335,
"anName": "an_tran_335",
"device": 1
}, {
"id": 333,
"anName": "an_tran_333",
"device": 1
}],
"device": 1,
"doCount": 0,
"count": 0
}, {
"name": "鼠标移出",
"id": 217,
"event": "mouseleave",
"an": [{
"id": 332,
"anName": "an_tran_332",
"device": 1
}, {
"id": 338,
"anName": "an_tran_338",
"device": 1
}, {
"id": 336,
"anName": "an_tran_336",
"device": 1
}, {
"id": 334,
"anName": "an_tran_334",
"device": 1
}],
"device": 1,
"doCount": 0,
"count": 0
}]);
animation.config['an291'] = {
"id": "291",
"clientIndex": "d17d5b09bf40c370",
"timingFunction": "",
"duration": "1.9",
"delay": "0",
"type": 1,
"name": "291_新闻_向左飞入",
"anName": "an_tran_291",
"library": "fadeInRight",
"device": 1,
"loop": 1,
"resume": 1,
"clear": 1
};
animation.regist($("[data-eventid='728e77599c323259']"), [{
"name": "滚屏进入",
"id": 210,
"event": "screenin",
"an": [{
"id": 291,
"anName": "an_tran_291",
"device": 1
}],
"device": 1,
"doCount": 0,
"count": 0
}]);
(function() {
var closepc = false;
var closemobile = false;
var device = page.currentDevice();
if(closepc && device == 1) {
return;
} else if(closemobile && device == 2) {
return;
}
$('.aspNetHidden').remove();
var bodyForm = $('#form1');
var anchors = [];
var navtooltips = [];
var i = 0;
var className = page.currentDevice() == 1 ? 'hidden-lg' : 'hidden-sm';
bodyForm.children().each(function(index, item) {
if($(item).css('display') == 'none') {
$(item).show();
util.log('滚屏隐藏方式不正确,请删除滚屏分页或隐藏通栏内的行');
};
var classname = $(item).attr('class');
var tag = $(item).attr('data-tag');
var type = $(item).attr('data-type');
if(classname && classname.indexOf('xg_section') > -1 || !util.isNullOrEmpty(tag) || !util.isNullOrEmpty(type)) {
if(classname.indexOf('xg_marketing') > -1 || classname.indexOf('xg_header') > -1) {
return true;
};
i++;
$(this).addClass('xg_screen');
anchors.push('page' + i);
navtooltips.push('page' + i);
}
var show = false;
var subs = $(this).children().is('section') ? $(this).path('section/div/div') : $(this).path('div/div');
subs.each(function() {
if(!$(this).hasClass(className)) {
show = true;
}
});
if(show) {
show = false;
subs.path('div').each(function() {
if(!$(this).hasClass(className)) {
show = true;
}
});
}
if(!show) {
$(this).remove();
}
});
bodyForm.fullpage({
verticalCentered: false,
anchors: anchors,
navigation: true,
navigationTooltips: ['page1', 'page2', 'page3', 'page4', 'page1', 'page2', 'page3', 'page1', 'page2'],
continuousVertical: false,
closemobile: closemobile,
closepc: closepc,
onLeave: function(index, nextIndex, direction) {
$('.xg_screen').eq(index - 1).find('[data-eventid]').trigger('screenout');
$('.xg_screen').eq(nextIndex - 1).find('[data-eventid]').trigger('screenin');
if(util.inDesign()) {
selector.hide();
}
if(typeof myScreenLeave != 'undefined') {
myScreenLeave(index, nextIndex, direction);
}
$(window).trigger('myScreenLeave', index, nextIndex, direction);
}
});
})();