FLOWER/Admin/Js/modela.js

(开头部分) 11KB

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

function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]); return null;
}
$(function () {
    if ($("#DFMoney").length > 0)
    {
        $("#DFMoney").keyup(function () {
            if (this.value.length == 1) { this.value = this.value.replace(/[^1-9]/g, '') } else { this.value = this.value.replace(/\D/g, '') }
        });

        $("#DFMoney").afterpaste(function () {
            if (this.value.length == 1) { this.value = this.value.replace(/[^1-9]/g, '') } else { this.value = this.value.replace(/\D/g, '') }
        });
    }
  


    $("#button1").click(function () {
        
        var cid = GetQueryString("channelid");
        if (cid == "1000015")
        {
            $("#Answer").val("");
            var number = $("#OptionNum").val();
            var astr = "";
            var asflag = "";
            if ($("#QuestionType").val() == "单选题")
            {
                for (i = 1; i <= number; i++)
                {
                    if (i == 1) { astr = $("#appans1" + i).val(); }
                    else { astr += "$$$$" + $("#appans1" + i).val(); }
                    if ($("#dxradio" + i).prop("checked")) {
                        asflag = $("#dxradio" + i).val();
                    }
                }
            }
            else if ($("#QuestionType").val() == "多选题")
            {
                for (i = 1; i <= number; i++) {
                    if (i == 1) { astr = $("#appans2" + i).val(); }
                    else { astr += "$$$$" + $("#appans2" + i).val(); }
                    if ($("#dxcheck" + i).prop("checked")) {
                        if (asflag == "") {
                            asflag = $("#dxcheck" + i).val();
                        }
                        else
                        {
                            asflag += ","+$("#dxcheck" + i).val();
                        }
                    }
                }
            }
            else if ($("#QuestionType").val() == "判断题")
            {
                astr = "正确$$$$错误";
                if ($("#pdradio1").prop("checked"))
                {
后面还有 207 行代码,购买后查看完整代码

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

AI 解读 AI

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

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