diff --git a/index.html b/index.html index cd8d048..691e604 100644 --- a/index.html +++ b/index.html @@ -101,22 +101,24 @@

KZHomePage

$('#kaygb-blog').on('click', function() { layer.open({ type: 2, - title: 'Kaygb', + title: 'Blog', shadeClose: true, - shade: false, - maxmin: true, //开启最大化最小化按钮 - area: ['80%', '100%'], + anim:4, + closeBtn: 2, + isOutAnim: false, + area: ['80%', '90%'], content: '//www.kezez.com/' }); }); $('#kaygb-mail').on('click', function() { layer.open({ type: 2, - title: 'Mail', + title: 'Blog', shadeClose: true, - shade: false, - maxmin: true, //开启最大化最小化按钮 - area: ['80%', '100%'], + anim:4, + closeBtn: 2, + isOutAnim: false, + area: ['80%', '90%'], content: '//mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=hi@kezez.com' }); }); diff --git a/static/layer-v3.5.1/layer/theme/kzhomepage/style.css b/static/layer-v3.5.1/layer/theme/kzhomepage/style.css new file mode 100644 index 0000000..c0b5585 --- /dev/null +++ b/static/layer-v3.5.1/layer/theme/kzhomepage/style.css @@ -0,0 +1,30 @@ +body .layer-ext-kzhomepage .layui-layer-title{ + color: transparent; + border: 0px; + display: none; +} +body .layui-ext-kzhomepage .layui-layer-btn{} +body .layui-ext-kzhomepage .layui-layer-btn a{} +.layer-ext-kzhomepage{ + background-color: transparent; + box-shadow: none; + border: none; +} +/* .layui-layer-setwin{ + right: -50px; + width: 50px; + background: transparent; + color: #fff; +} + +.layui-layer-setwin .layui-layer-close{ + background-color: #00000080; + width: 30px; + height: 30px; +} +.layui-layer-setwin .layui-layer-min cite{ + background-color: #fff; + width: 15px; + left: 17.5px; + height: 2px; +} */ \ No newline at end of file diff --git a/static/main.js b/static/main.js index 4f3f38c..f3d80ae 100644 --- a/static/main.js +++ b/static/main.js @@ -1,4 +1,17 @@ var windowWidth = $(window).width(); +layer.config({ + extend: 'kzhomepage/style.css', //加载您的扩展样式 + skin: 'layer-ext-kzhomepage' +}); +// layer.open({ +// type: 2, +// title: 'Blog', +// shadeClose: true, +// anim:5, +// closeBtn: 2, +// area: ['80%', '90%'], +// content: '//www.kezez.com/' +// }); console.log( "\n" + " %c KZHomePage by kaygb " +