Your commit message
242
static/css/style.css
Normal file
@@ -0,0 +1,242 @@
|
||||
/* 清除浏览器默认边距,
|
||||
使边框和内边距的值包含在元素的width和height内 */
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 使用flex布局,让内容垂直和水平居中 */
|
||||
|
||||
section {
|
||||
/* 相对定位 */
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
/* linear-gradient() 函数用于创建一个表示两种或多种颜色线性渐变的图片 */
|
||||
background: linear-gradient(to bottom, #f1f4f9, #dff1ff);
|
||||
}
|
||||
|
||||
/* 背景颜色 */
|
||||
|
||||
section .color {
|
||||
/* 绝对定位 */
|
||||
position: absolute;
|
||||
/* 使用filter(滤镜) 属性,给图像设置高斯模糊*/
|
||||
filter: blur(200px);
|
||||
}
|
||||
|
||||
/* :nth-child(n) 选择器匹配父元素中的第 n 个子元素 */
|
||||
|
||||
section .color:nth-child(1) {
|
||||
top: -350px;
|
||||
width: 600px;
|
||||
height: 600px;
|
||||
background: #ff359b;
|
||||
}
|
||||
|
||||
section .color:nth-child(2) {
|
||||
bottom: -150px;
|
||||
left: 100px;
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
background: #fffd87;
|
||||
}
|
||||
|
||||
section .color:nth-child(3) {
|
||||
bottom: 50px;
|
||||
right: 100px;
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
background: #00d2ff;
|
||||
}
|
||||
|
||||
.box {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 背景圆样式 */
|
||||
|
||||
.box .circle {
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
/* backdrop-filter属性为一个元素后面区域添加模糊效果 */
|
||||
backdrop-filter: blur(5px);
|
||||
box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 50%;
|
||||
/* 使用filter(滤镜) 属性,改变颜色。
|
||||
hue-rotate(deg) 给图像应用色相旋转
|
||||
calc() 函数用于动态计算长度值
|
||||
var() 函数调用自定义的CSS属性值x*/
|
||||
filter: hue-rotate(calc(var(--x) * 70deg));
|
||||
/* 调用动画animate,需要10s完成动画,
|
||||
linear表示动画从头到尾的速度是相同的,
|
||||
infinite指定动画应该循环播放无限次*/
|
||||
animation: animate 10s linear infinite;
|
||||
/* 动态计算动画延迟几秒播放 */
|
||||
animation-delay: calc(var(--x) * -1s);
|
||||
}
|
||||
|
||||
/* 背景圆动画 */
|
||||
|
||||
@keyframes animate {
|
||||
0%, 100%{
|
||||
transform: translateY(-50px);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(50px);
|
||||
}
|
||||
}
|
||||
|
||||
.box .circle:nth-child(1) {
|
||||
top: -50px;
|
||||
right: -60px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.box .circle:nth-child(2) {
|
||||
top: 150px;
|
||||
left: -100px;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.box .circle:nth-child(3) {
|
||||
bottom: 50px;
|
||||
right: -60px;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.box .circle:nth-child(4) {
|
||||
bottom: -80px;
|
||||
left: 100px;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.box .circle:nth-child(5) {
|
||||
top: -80px;
|
||||
left: 140px;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
/* 登录框样式 */
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
width: 400px;
|
||||
min-height: 400px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
backdrop-filter: blur(5px);
|
||||
box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.form {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
/* 登录标题样式 */
|
||||
|
||||
.form h2 {
|
||||
position: relative;
|
||||
color: #333;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 5px;
|
||||
margin-bottom: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 登录标题的下划线样式 */
|
||||
|
||||
.form h2::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -10px;
|
||||
width: 0px;
|
||||
height: 3px;
|
||||
background: #fff;
|
||||
transition: 0.5s;
|
||||
}
|
||||
|
||||
.form h2:hover:before {
|
||||
width: 53px;
|
||||
}
|
||||
|
||||
.form .inputBox {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/* 输入框样式 */
|
||||
|
||||
.form .inputBox input {
|
||||
width: 100%;
|
||||
padding: 10px 20px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
outline: none;
|
||||
border: none;
|
||||
border-radius: 30px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
font-size: 16px;
|
||||
letter-spacing: 1px;
|
||||
color: #666;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.form .inputBox input::placeholder {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* 登录按钮样式 */
|
||||
|
||||
.form .inputBox input[type="submit"] {
|
||||
background: #fff;
|
||||
color: #666;
|
||||
max-width: 100px;
|
||||
margin-bottom: 20px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.forget {
|
||||
margin-top: 6px;
|
||||
color: #333;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.forget a {
|
||||
color: #666;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.radio input{
|
||||
margin-top:15px;
|
||||
|
||||
}
|
||||
|
||||
BIN
static/ding.mp3
Normal file
BIN
static/img/bg.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
3
static/js/axios.js
Normal file
1589
static/js/china.js
Normal file
8
static/js/echarts-wordcloud.min.js
vendored
Normal file
98075
static/js/echarts.js
Normal file
45
static/js/echarts.min.js
vendored
Normal file
6
static/js/jquery-2.1.0.min.js
vendored
Normal file
2
static/js/jquery.js
vendored
Normal file
1
static/js/layui/css/layui.css
Normal file
2
static/js/layui/css/layui.mobile.css
Normal file
2
static/js/layui/css/modules/code.css
Normal file
@@ -0,0 +1,2 @@
|
||||
/** layui-v2.4.5 MIT License By https://www.layui.com */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
||||
2
static/js/layui/css/modules/laydate/default/laydate.css
Normal file
BIN
static/js/layui/css/modules/layer/default/icon-ext.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
static/js/layui/css/modules/layer/default/icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
2
static/js/layui/css/modules/layer/default/layer.css
Normal file
BIN
static/js/layui/css/modules/layer/default/loading-0.gif
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
static/js/layui/css/modules/layer/default/loading-1.gif
Normal file
|
After Width: | Height: | Size: 701 B |
BIN
static/js/layui/css/modules/layer/default/loading-2.gif
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
static/js/layui/font/iconfont.eot
Normal file
473
static/js/layui/font/iconfont.svg
Normal file
|
After Width: | Height: | Size: 274 KiB |
BIN
static/js/layui/font/iconfont.ttf
Normal file
BIN
static/js/layui/font/iconfont.woff
Normal file
BIN
static/js/layui/font/iconfont.woff2
Normal file
BIN
static/js/layui/images/face/0.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
static/js/layui/images/face/1.gif
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
static/js/layui/images/face/10.gif
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
static/js/layui/images/face/11.gif
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
static/js/layui/images/face/12.gif
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
static/js/layui/images/face/13.gif
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
static/js/layui/images/face/14.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
static/js/layui/images/face/15.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
static/js/layui/images/face/16.gif
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
static/js/layui/images/face/17.gif
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
static/js/layui/images/face/18.gif
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
static/js/layui/images/face/19.gif
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
static/js/layui/images/face/2.gif
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
static/js/layui/images/face/20.gif
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
static/js/layui/images/face/21.gif
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
static/js/layui/images/face/22.gif
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
static/js/layui/images/face/23.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
static/js/layui/images/face/24.gif
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
static/js/layui/images/face/25.gif
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
static/js/layui/images/face/26.gif
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
static/js/layui/images/face/27.gif
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
static/js/layui/images/face/28.gif
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
static/js/layui/images/face/29.gif
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
static/js/layui/images/face/3.gif
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
static/js/layui/images/face/30.gif
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
static/js/layui/images/face/31.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
static/js/layui/images/face/32.gif
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
static/js/layui/images/face/33.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
static/js/layui/images/face/34.gif
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
static/js/layui/images/face/35.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
static/js/layui/images/face/36.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
static/js/layui/images/face/37.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
static/js/layui/images/face/38.gif
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
static/js/layui/images/face/39.gif
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
static/js/layui/images/face/4.gif
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
static/js/layui/images/face/40.gif
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
static/js/layui/images/face/41.gif
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
static/js/layui/images/face/42.gif
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
static/js/layui/images/face/43.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
static/js/layui/images/face/44.gif
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
static/js/layui/images/face/45.gif
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
static/js/layui/images/face/46.gif
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
static/js/layui/images/face/47.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
static/js/layui/images/face/48.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
static/js/layui/images/face/49.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
static/js/layui/images/face/5.gif
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
static/js/layui/images/face/50.gif
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
static/js/layui/images/face/51.gif
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
static/js/layui/images/face/52.gif
Normal file
|
After Width: | Height: | Size: 777 B |
BIN
static/js/layui/images/face/53.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
static/js/layui/images/face/54.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
static/js/layui/images/face/55.gif
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
static/js/layui/images/face/56.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
static/js/layui/images/face/57.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
static/js/layui/images/face/58.gif
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
static/js/layui/images/face/59.gif
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
static/js/layui/images/face/6.gif
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
static/js/layui/images/face/60.gif
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
static/js/layui/images/face/61.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
static/js/layui/images/face/62.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
static/js/layui/images/face/63.gif
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
static/js/layui/images/face/64.gif
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
static/js/layui/images/face/65.gif
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
static/js/layui/images/face/66.gif
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
static/js/layui/images/face/67.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
static/js/layui/images/face/68.gif
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
static/js/layui/images/face/69.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
static/js/layui/images/face/7.gif
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
static/js/layui/images/face/70.gif
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
static/js/layui/images/face/71.gif
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
static/js/layui/images/face/8.gif
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
static/js/layui/images/face/9.gif
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
static/js/layui/images/logo.png
Normal file
|
After Width: | Height: | Size: 457 B |
2
static/js/layui/lay/modules/carousel.js
Normal file
@@ -0,0 +1,2 @@
|
||||
/** layui-v2.4.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});
|
||||
2
static/js/layui/lay/modules/code.js
Normal file
@@ -0,0 +1,2 @@
|
||||
/** layui-v2.4.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");
|
||||