PageSourceSearch

https://hongdou.com/public/tpl/default/static/js/js.js

js hongdou.com collected 2026-10-04 02:40:39 UTC 2,198 bytes, 66 lines download raw bytes

1function checks(obj){
2	  
3	          layui.use(['form','table', 'laydate'], function() {
4            var form = layui.form,
5                layer = layui.layer,
6				table = layui.table,
7                laydate = layui.laydate;
8var k=1
9  $(obj).find("[err!='']").each(function(){if($.trim($(this).val())==""||(typeof($(this).attr("placeholder"))!="undefined"&&$(this).attr("placeholder")==$(this).val())){
10	if(typeof($(this).attr("err"))!="undefined"){	
11	if($(this).is(":visible")){k=0;
12
13	layer.alert($(this).attr("err"));$(this).focus();return false;
14	}
15	}}})
16	
17 if(k==0){return false}
18
19
20var url=$(obj).attr('action')+'?ajax=json';
21$.post(url,$(obj).serialize(),function(res){
22layer.alert(res.msg,function(){
23layer.close(layer.index);
24if(res.code==1){
25location.href=location.href;
26}
27
28})
29
30})
31
32})
33return false;
34}
35  function showmodel(title,msg,style){
36  style=(typeof(style)=='undefined')?'':style;
37  if($("body .v-modal").length<1){
38    $("body").append('<div class="v-modal" ></div>');
39  }
40  $("body #app").addClass('modelopen').append('<div  class="el-dialog__wrapper"><div class="el-dialog '+style+'" ><div class="el-dialog__header"><span class="el-dialog__title">'+title+'</span><button type="button" aria-label="Close" class="el-dialog__headerbtn"><i class="el-dialog__close el-icon el-icon-close"></i></button></div><div class="el-dialog__body">'+msg+'</div></div></div> ');
41  
42 var obj=$(".el-dialog__wrapper:last");
43
44var z=$(".el-dialog__wrapper").index(obj);
45$(".v-modal").css('z-index',2000);
46$(".v-modal").hide().fadeIn();
47obj.css('z-index',2000+z+1);
48
49obj.find('.el-dialog').css('margin-top','15vh');;
50obj.find(".el-dialog__header button").click(function(){
51
52obj.fadeOut(function(){
53	$(this).remove();								  
54	if($("body .el-dialog__wrapper").length<1){ $("body").removeClass('modelopen');}															  
55	});
56$(".v-modal").fadeOut();
57 })  
58 return obj;
59  }
60  
61  $(function(){
62	$("input[type='radio']").click(function(){
63		  $("input[type='radio'][name='"+$(this).attr('name')+"']").parent(".el-radio__input").removeClass('is-checked');
64		  $(this).parent(".el-radio__input").addClass('is-checked');
65		  })		 
66			 })

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.