= 0; var reprint = { open: 0, msg: '', copylenopen: 0, copylen: 10, addurl: 0 } document.body.oncopy = function () { var copytext = window.getSelection().toString(); if (copynotmsg == 0) { if (reprint.open == 1) { if (reprint.copylenopen == 1) { if (copytext.length > reprint.copylen) { addarelt('復制內容太長,禁止復制', 'erro'); JScopyText(' '); copynotmsg = 0; } else { copyaddurl(copytext); } } else { copyaddurl(copytext); } } } copynotmsg = 0; } function copyaddurl(content) { if (reprint.addurl == 0) { addarelt(reprint.msg, 'succ'); } else { if (content.length > 100) { addarelt(reprint.msg, 'succ'); JScopyText(content + '\n 【來源:http://www.attach-guaranty.cn/25.html,轉載請注明】'); } else { addarelt(reprint.msg, 'succ'); } } } $('.go-top-plane').click(function () { $('html,body').animate({scrollTop: '0px'}, 500); }); $(document).scroll(function () { var scroH = $(document).scrollTop(); //滾動高度 var viewH = $(window).height(); //可見高度 var contentH = $(document).height(); //內容高度 if (scroH > 100) { //距離頂部大于100px時 $('.go-top-plane').addClass('go-top-plane-show') } else { $('.go-top-plane').removeClass('go-top-plane-show') } if (contentH - (scroH + viewH) <= 100) { //距離底部高度小于100px } if (contentH == (scroH + viewH)) { //滾動條滑到底部啦 } }); function mobile_menuclick(e) { if ($('.menu-item-has-children:hover > .sub-menu').css('visibility') == 'visible') { $('.menu-item-has-children:hover > .sub-menu').addClass('sub-menu-hide'); $('.menu-item-has-children:hover > .sub-menu').removeClass('sub-menu-show'); } else { $('.menu-item-has-children:hover > .sub-menu').removeClass('sub-menu-hide'); $('.menu-item-has-children:hover > .sub-menu').addClass('sub-menu-show'); } e.stopPropagation(); } $(document).ready(function () { $(document).click(function (e) { $('.sub-menu').removeClass('sub-menu-hide'); $('.sub-menu').removeClass('sub-menu-show'); e.stopPropagation(); }); $('.tag-cloud-link').each(function () { var colors = ['#67C23A', '#E6A23C', '#F56C6C', '#909399', '#CC9966', '#FF6666', '#99CCFF', '#FF9999', '#CC6633']; var backcolor = colors[Math.floor((Math.random() * colors.length))]; $(this).css('background-color', backcolor); }); $('.menu-header-list > .menu-item-has-children'); var i = 0; //文章目錄 var html = ''; $(".post-content h2,.post-content h3").each(function () { var tagName = $(this)[0].tagName.toLowerCase(); console.log(); if ($(this).parent().attr('class') == 'zd-plane-content') { return; } $(this).attr('catalog', 'catalog-' + tagName + '-' + i); var clickargs = "go_catalog('catalog-" + tagName + "-" + i + "','" + tagName + "')"; html = html + '

' + $(this).html() + '

'; i++; }); $('#post-catalog-list').html(html); set_catalog_position(); $('#post-catalog').css('visibility', 'visible'); $('#post-catalog').css('opacity', '1'); if ($(".post-content h2").length == 0 && $(".post-content h3").length == 0) { $('#post-catalog').css('visibility', 'hidden'); } $('.corepress-code-pre>code').each(function () { $(this).html(replaceTag($(this).html())); }); }); $(window).resize(function () { set_catalog_position(); }); $(document).scroll(function () { if ($('#post-catalog').css('visibility') != 'visible') { return; } $(".post-content h2[catalog],.post-content h3[catalog]").each(function () { var el_y = this.getBoundingClientRect().y; if (el_y < 100 && el_y > 0) { var name = $(this).attr('catalog'); set_catalog_css(); $('p[catalog=' + name + ']').addClass('catalog-hover'); return; } }); }); function close_show(type) { if (type == 1) { $('.post-catalog-main').removeClass('post-catalog-main-hide') } else { $('#post-catalog').addClass('post-catalog-hide') } } function set_catalog_css() { $('p[catalog]').removeClass('catalog-hover'); } function set_catalog_position() { if ($('.post-info').length == 0) { return; } var title_x = $('.post-info').offset().left; $('#post-catalog').css('left', title_x - 200 + 'px'); } function go_catalog(catalogname, tagName) { var _scrolltop = $(tagName + '[catalog=' + catalogname + ']').offset().top; $('html, body').animate({ scrollTop: _scrolltop - 60 }, 500 ); } $(document).ready( function () { NProgress.done(); } );
秋霞影视 秋霞影视 天天影视 凤凰影视
木瓜电影网 极速影院 吉祥电影网 秋霞影视