WebUI/Jquery-plugIn/js/core.min.js

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

function pageScroll() {
    $("#backtop").css("background-position-x", "-28px"),
	window.scrollBy(0, -20),
	scrolldelay = setTimeout("pageScroll()", 2),
	0 == document.documentElement.scrollTop && 0 == document.body.scrollTop && ($("#backtop").css("background-position-x", "0"), clearTimeout(scrolldelay))
}
function cloud_animate(a, b) {
    $("#" + a).animate({
        marginLeft: parseInt($("#" + a).css("marginLeft")) + 30 * b
    },
	cloud_time,
	function () {
	    cloud_animate(a, -b)
	})
}
function errorTips(a, b) {
    $.colorbox({
        html: '<div id="uploadFile" class="popup"><table width="100%"><tr><td align="center"><h4 class="error_msg">' + a + "</h4></td>" + "</tr>" + "<tr>" + '<td align="center"><a href="#" class="btn_s">确&nbsp;定</a></td>' + "</tr>" + "</table>" + "</div>",
        title: b ? b : "错误提示"
    })
}
function textCounter(a, b, c) {
    var d = $('textarea[name="' + a + '"]');
    $.trim(d.val()).length > c ? d.val(d.val().substring(0, c)) : d.next(".word_count").children("span").text(c - $.trim(d.val()).length)
}
function placeholderFn() {
    placeholderSupport() || $("[placeholder]").focus(function () {
        var a = $(this);
        a.val() == a.attr("placeholder") && (a.val(""), a.removeClass("placeholder"))
    }).blur(function () {
        var a = $(this); ("" == a.val() || a.val() == a.attr("placeholder")) && (a.addClass("placeholder"), a.val(a.attr("placeholder")))
    }).blur(),
	"" === $("[placeholder]").value && ($("[placeholder]").value = $("[placeholder]").attr("placeholder"))
}
function placeholderSupport() {
    return "placeholder" in document.createElement("input")
}
$(function () {
    //$("#email,#password").blur(function () {
    //    $("#beError").hide()
    //}),
	$(".collapsible_menu").hover(function () {
	    $(this).addClass("expend"),
		$("dd", this).show()
	},
	function () {
	    $(this).removeClass("expend"),
		$("dd", this).hide()
	}),
	$("#qrSide a").click(function () {
	    $(this).parent().remove()
	}),
	$("#options dl dt").click(function () {
	    $(this).parent().hasClass("slideUp") ? ($(this).children("em").removeClass("transform"), $(this).parent().children("dd").slideDown(200), $(this).parent().removeClass("slideUp").children("dd").slideDown(200)) : ($(this).children("em").addClass("transform"), $(this).parent().children("dd").slideUp(200), $(this).parent().addClass("slideUp").children("dd").slideUp(200))
	}),
	$("#selected ul").delegate("li span", "click",
	function () {
	    var b = $(this).parent("li").children("strong").text();
	    $("#options dl").each(function () {
	        $("dt", this).text() == b && $("dt", this).trigger("click")
后面还有 107 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。