增加小说模板

This commit is contained in:
make
2025-03-25 17:45:16 +08:00
parent 9f0c24c87f
commit bc13f9b009
148 changed files with 23147 additions and 3 deletions

View File

@@ -0,0 +1 @@
!function(a,b){function c(){var b=f.getBoundingClientRect().width;b/i>540&&(b=540*i);var c=b/10;f.style.fontSize=c+"px",k.rem=a.rem=c}var d,e=a.document,f=e.documentElement,g=e.querySelector('meta[name="viewport"]'),h=e.querySelector('meta[name="flexible"]'),i=0,j=0,k=b.flexible||(b.flexible={});if(g){console.warn("将根据已有的meta标签来设置缩放比例");var l=g.getAttribute("content").match(/initial\-scale=([\d\.]+)/);l&&(j=parseFloat(l[1]),i=parseInt(1/j))}else if(h){var m=h.getAttribute("content");if(m){var n=m.match(/initial\-dpr=([\d\.]+)/),o=m.match(/maximum\-dpr=([\d\.]+)/);n&&(i=parseFloat(n[1]),j=parseFloat((1/i).toFixed(2))),o&&(i=parseFloat(o[1]),j=parseFloat((1/i).toFixed(2)))}}if(!i&&!j){var p=(a.navigator.appVersion.match(/android/gi),a.navigator.appVersion.match(/iphone/gi)),q=a.devicePixelRatio;i=p?q>=3&&(!i||i>=3)?3:q>=2&&(!i||i>=2)?2:1:1,j=1/i}if(f.setAttribute("data-dpr",i),!g)if(g=e.createElement("meta"),g.setAttribute("name","viewport"),g.setAttribute("content","initial-scale="+j+", maximum-scale="+j+", minimum-scale="+j+", user-scalable=no"),f.firstElementChild)f.firstElementChild.appendChild(g);else{var r=e.createElement("div");r.appendChild(g),e.write(r.innerHTML)}a.addEventListener("resize",function(){clearTimeout(d),d=setTimeout(c,300)},!1),a.addEventListener("pageshow",function(a){a.persisted&&(clearTimeout(d),d=setTimeout(c,300))},!1),"complete"===e.readyState?e.body.style.fontSize=12*i+"px":e.addEventListener("DOMContentLoaded",function(){e.body.style.fontSize=12*i+"px"},!1),c(),k.dpr=a.dpr=i,k.refreshRem=c,k.rem2px=function(a){var b=parseFloat(a)*this.rem;return"string"==typeof a&&a.match(/rem$/)&&(b+="px"),b},k.px2rem=function(a){var b=parseFloat(a)/this.rem;return"string"==typeof a&&a.match(/px$/)&&(b+="rem"),b}}(window,window.lib||(window.lib={}));

View File

@@ -0,0 +1,99 @@
(function() {
function isMoblie() {
if(!navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
$("body").addClass("app_NoMoblie");
}else{
$("body").removeClass("app_NoMoblie");
}
}
$('body').on('click','.app_meskSection',function () {
$('.app_header_second').hide();
$('.app_meskSection').hide();
$('#header').removeClass('app_headerFixed2');
$('.moreIco').removeClass('closeIco');
});
$('.app_header_back').click(function () {
window.history.go(-1);
});
$('.moreIco').click(function () {
if($(this).hasClass('closeIco')){
$('#header').removeClass('app_headerFixed2');
$(this).removeClass('closeIco');
$('.app_header_second').hide();
$('.app_meskSection').hide();
}else{
$('#header').addClass('app_headerFixed2');
$(this).addClass('closeIco');
$('.app_header_second').show();
$('.app_meskSection').show();
}
});
/** 点击完成按钮 */
$('#success').click(function () {
$('#administration').show();
$(this).hide();
$('#list .rightJustTime').show();
$('#list .deleteBlock').hide();
});
/** 点击管理 */
$('#administration').click(function () {
$(this).hide();
$('#success').show();
$('#list .rightJustTime').hide();
$('#list .deleteBlock').show();
});
$(window).resize(function () {
isMoblie();
});
newcode=function(){
var verifyimg = $("#imgCode").attr("src");
if (verifyimg.indexOf('?') > 0) {
$("#imgCode").attr("src", verifyimg + '&random=' + Math.random());
} else {
$("#imgCode").attr("src", verifyimg.replace(/\?.*$/, '') + '?' + Math.random());
}
$("#code").val('');
}
$("#imgCode").click(function() {
newcode();
});
var i,intervalid;
$('.codeBtn').click(function(){
var loadin_layer=layer.open({type: 2,content: '正在发送'});
var send_data = JSON.parse($(this).attr('send-data'));
send_data['type'] = 'passw';
$.get($(this).attr('send-url'),send_data,function(data){
layer.close(loadin_layer);
if(data.code==1){
layer.open({content: data.msg,time: 4});
$('.codeBtn').attr({"disabled":"true"});
i=180;
intervalid = setInterval("codefun()",1000);
}else{
layer.open({content: data.msg,time: 2});
}
});
});
codefun=function(){
if (i == 0){
$(".codeBtn").text("获取验证码").removeAttr("disabled");
clearInterval(intervalid);
}else{
$('.codeBtn').text(i+"秒后重获取");
i--;
}
}
})();