-1){
window.swanInvoke({
appKey: 'LYaggHHMnhIO7GgfWsVcMKQKoRjCXLqq',
path: 'pages/zydown/zydown',
query: {
id: el.attributes['ownattr'].nodeValue
}
});
return false;
}else{
return true;
}
};
;(function(){
var ua = navigator.userAgent.toLowerCase()
var isWXWork = ua.match(/wxwork/i) == 'wxwork';
var isWeixin = !isWXWork && ua.match(/MicroMessenger/i) == 'micromessenger';
var isMobile = isDesktop = false;
if (navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|IEMobile)/i))
{ isMobile = true; } else { isDesktop = true; }
var isAndroid = ua.indexOf('android') > -1 || ua.indexOf('Adr') > -1;
var isOS = ua.indexOf('iPhone') > -1 || ua.indexOf('iPad') > -1 || ua.indexOf('Mac') > -1;
if (isWeixin) { }
if (isAndroid) { }
// 標題固定fixed
var $fixedTit = $('#J_FixedShowDetailTit');
var fixed_tit = function () {
var titIsShow = $(window).scrollTop() > 179;
if (titIsShow) {
$fixedTit.animate({ top: 0 }, 300);
}
else {
$fixedTit.animate({ top: '-200px' }, 300);
}
};
$(window).on('scroll', _.debounce(fixed_tit, 50));
fixed_tit();
// 簡介固定高度
var $height= $('.assets-intro').height();
if($height == 480) $('.introAll').show();
// 收縮
function toMore(el){
var flag = el == '.introAll' ? 1 : 0;
var overflow = flag ? "auto" : "hidden";
var maxHeight = flag ? "inherit" : "480px" ;
var className = flag ? ".introAllHide" : ".introAll";
$(el).on('click',function(){
$('.assets-intro').css({
"overflow":overflow,
"maxHeight": maxHeight
});
$(el).hide();
$(className).show();
});
}
toMore('.introAll');
toMore('.introAllHide');
})();