53 lines
1.4 KiB
HTML
53 lines
1.4 KiB
HTML
<style type="text/css" media="all">
|
|
.layui-btn {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
height: 38px;
|
|
line-height: 38px;
|
|
border: 1px solid transparent;
|
|
padding: 0 18px;
|
|
background-color: #16baaa;
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
|
|
margin-right: 10px;
|
|
margin-bottom: 10px;
|
|
word-spacing: normal;
|
|
|
|
outline: 0;
|
|
-webkit-appearance: none;
|
|
transition: all .3s;
|
|
-webkit-transition: all .3s;
|
|
box-sizing: border-box;
|
|
}
|
|
.layui-btn-xs {
|
|
height: 22px;
|
|
line-height: 22px;
|
|
padding: 0 5px;
|
|
font-size: 12px;
|
|
}
|
|
.layui-btn-normal {
|
|
background-color: #1e9fff;
|
|
}
|
|
</style>
|
|
<script>
|
|
var url = location.search;
|
|
if (url==="" || url==="?"){
|
|
url = window.location.protocol + '//' + window.location.hostname;
|
|
}else {
|
|
url=url.substr(1);
|
|
}
|
|
document.write("<span id='result'><button type=\"button\" class=\"layui-btn layui-btn-xs\">发布中</button>");
|
|
document.write('<script type=\"text/javascript\" src=\"'+url+'\"><\/script>');
|
|
window.onload = function(){
|
|
document.getElementById("result").innerHTML = '<button type="button" class="layui-btn layui-btn-xs layui-btn-normal">成功</button>';
|
|
}
|
|
window.onerror = function(){ return true; }
|
|
</script> |