$(function(){setInterval("verifyUserLoginStatus()",5000)});function httpRequest(type,url,data,callback){$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}});var loading=showLoading();$.ajax({url:url,type:type,dataType:"json",data:data,success:function(res){hideLoading(loading);if(res.code===0){callback(res)}else{showErrorMessage(res.msg)}}})}function showErrorMessage(msg){layer.msg(msg,{icon:5,time:5000,anim:6,closeBtn:1,})}function showSuccessMessage(msg){layer.msg(msg,{icon:1,time:5000,})}function showMessageAndReload(msg){layer.msg(msg);setTimeout(function(){location.reload()},2000)}function showSuccessMessageAndReload(msg){layer.msg(msg,{icon:1,time:5000,});setTimeout(function(){location.reload()},2000)}function showSuccessMessageAndDo(msg,callback){layer.msg(msg,{icon:1,time:5000,});setTimeout(callback,2000)}function showLoading(type){if(typeof type==="undefined"){type=1}return layer.load(1,{shade:[0.5,"#fff"]})}function hideLoading(index){if(typeof index==="undefined"){layer.closeAll()}layer.close(index)}function showWarningMsg(msg){layer.msg(msg,{icon:7,time:5000,anim:5,closeBtn:1,})}function showConfirm(msg,callback){layer.confirm(msg,{btn:["确定","取消"]},function(){callback()},function(){})}function gotoPage(url,msg){if(msg!=""){layer.msg(msg,{icon:1,time:5000,})}setTimeout(function(){location.href=url},2000)}function randomWord(randomFlag,min,max){var str="",range=min,arr=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];if(randomFlag){range=Math.round(Math.random()*(max-min))+min}for(var i=0;i<range;i++){pos=Math.round(Math.random()*(arr.length-1));str+=arr[pos]}return str};
{'avg_line_length': 1841.0, 'max_line_length': 1841, 'alphanum_fraction': 0.6838674633351439, 'licenses': ['MIT'], 'repository_name': 'lushaoming/bookManagementSystem', 'path': 'public/js/178c21b89514b8a3bfc68e6bbe4595bc.js', 'size': 1849, 'lang': 'JavaScript'}