jQuery(function () { jQuery.ajax({ url: "http://nanjchallenge.net/index.rdf", type: "GET", dataType: "xml", success: function (a) { jQuery(a).find("item").each(function () { var a = jQuery(this), b = a.find("title").text(), a = a.find("link").text(), b = jQuery('
  • ' + b + "
  • "); jQuery(".ticker").append(b) }) } }) }); jQuery(function () { function a() { jQuery(".ticker > li:first").fadeOut(function () { jQuery(this).appendTo(jQuery(".ticker")).fadeIn() }) } setInterval(function () { a() }, 5E3) }); jQuery(function () { var a = location.href; jQuery(".menu-li > a").each(function () { jQuery(this).attr("href") == a && jQuery(this).addClass("active") }) }); jQuery(function () { jQuery(".bg").css({backgroundPosition: "0px 0px"}); jQuery(".bg2").css({backgroundPosition: "0px 0px"}); jQuery(".bg2").css({backgroundPosition: "0px 0px"}); jQuery(".bg").animate({ backgroundPosition: "(-10000px -2000px)" }, 24E5, "linear"); jQuery(".bg2").animate({ backgroundPosition: "(-10000px -2000px)" }, 12E5, "linear"); jQuery(".bg3").animate({ backgroundPosition: "(-10000px -2000px)" }, 48E5, "linear") }); jQuery(function () { jQuery(".fixed-icon").hide(); jQuery(window).scroll(function () { 100 < jQuery(this).scrollTop() ? jQuery(".fixed-icon").fadeIn() : jQuery(".fixed-icon").stop().fadeOut() }) }); jQuery(function () { jQuery(".article-comment-outer-a, .fixed-icon > a, .comment-reply-a").on("click", function (a) { a.preventDefault(); a = jQuery(this).attr("href"); if (jQuery(a).size()) return a = jQuery(a).offset().top - 40, jQuery("html,body").animate({ scrollTop: a }, 1E3), !1; }) }); jQuery(function () { jQuery(".menu-social-li-search").each(function () { jQuery(this).hover(function () { jQuery(this) .find(".search-box") .stop() .fadeIn(400) }, function () { jQuery(this) .find(".search-box") .stop() .fadeOut(400) }) }) }); jQuery(function () { jQuery(".global-nav-sticky").each(function () { var a = jQuery(window), c = jQuery(this), b = jQuery(".ticker-static"); point = b.offset().top + b.outerHeight(); a.on("scroll", jQuery.throttle(1E3 / 15, function () { a.scrollTop() > point ? c.addClass("visible") : c.removeClass("visible") })); a.trigger("scroll") }) }); function commentReply(a) { document.getElementById("comment-form-textarea").value = ">>" + a + "\n" } //function rep() { // var a = document.getElementById("comments-list"); // a.innerHTML = a.innerHTML.replace(/[\uff10-\uff19]/g, function (a) { // return String.fromCharCode(a.charCodeAt(0) - 65248) // }); // a.innerHTML = a.innerHTML.replace(/(\u203b|\u7c73|>>)(\d+)/g, 'jQuery1jQuery2') //} function opentext(a, c) { var b, d = document.getElementById("mypopup"); b = document.getElementById("comments-list").getElementsByTagName("ul"); b = b[a - 1]; c || (c = event); var e = c.clientX + (document.body.scrollLeft || document.documentElement.scrollLeft), f = c.clientY + (document.body.scrollTop || document.documentElement.scrollTop); b && (d.innerHTML = b.innerHTML, d.style.left = e + 15 + "px", d.style.top = f - 25 + "px", d.style.zIndex = 9999, d.style.display = "block") } function popoff() { document .getElementById("mypopup") .style .display = "none" } window.onload = rep; jQuery(function () { jQuery.ajax({ url: "http://nanjchallenge.net/index.rdf", type: "GET", dataType: "xml", success: function (a) { jQuery(a).find("item").each(function () { var a = jQuery(this), b = a.find("title").text(), a = a.find("link").text(), b = jQuery('
  • ' + b + "
  • "); jQuery(".ticker").append(b) }) } }) }); jQuery(function () { function a() { jQuery(".ticker-static > li:first").fadeOut(function () { jQuery(this).appendTo(jQuery(".ticker-static")).fadeIn() }) } setInterval(function () { a() }, 5E3) });