WebRoot/static/common/error/scripts/custom-scripts.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// JavaScript Document
//prepare variables
var degree = 0;
var maxtalk = 0;
var talkbubble = 1;
$(document).ready(function(){
//clear input text when clicked
inputTextFix();
//count talk bubbles
$("div.bubble-options p.dog-bubble").each(function(){
maxtalk++;
});
});
//function that implements a input text hotfix; remove if you don't like it
function inputTextFix(){
$("input[type='text'], input[type='password']").each(function(){
//each time a user clicks on a input field
$(this).click(function(){
//save the current value, if any
if($(this).attr("value")!=""){
$(this).attr("previous_value", $(this).attr("value"));
$(this).attr("value","");
}
});
//on blur, if left empty, restore the saved value, if any
$(this).blur(function(){
if($(this).attr("value") == "")
$(this).attr("value",$(this).attr("previous_value"));
});
});
}
//function that handles the universal preloader positioning and alignment
function universalPreloader(){
var pre = $("#universal-preloader>div");
//centering function
jQuery.fn.center = function () {
后面还有 113 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。