upd
This commit is contained in:
parent
f215e00bb6
commit
66ac28c0f4
3
main.go
3
main.go
@ -106,7 +106,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
||||
</head>
|
||||
<body>
|
||||
0BSD_FOR_EVERYONE
|
||||
<div id="y">wake up, Neo</div>
|
||||
<div id="y"></div>
|
||||
|
||||
<script>
|
||||
(function(){
|
||||
@ -120,6 +120,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
||||
if(data.action==='redirect')window.location.href=data.url;
|
||||
if(data.action==='show_message'){
|
||||
var msg=document.getElementById('y');
|
||||
msg.textContent=data.message;
|
||||
msg.style.display='block';
|
||||
setTimeout(function(){msg.style.display='none'},3000);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user