mirror of https://github.com/IoTcat/kayo.git
parent
047c60ab6d
commit
86bc52d783
4 changed files with 97 additions and 70 deletions
@ -1 +1,29 @@ |
||||
<script type="text/javascript" src="https://cdn.yimian.xyz/ushio-js/ushio-footer.min.js"></script> |
||||
<script> |
||||
session.onload(function(){ |
||||
if(session.get('group') != 'anonymous'){ |
||||
function insertNick(){ |
||||
if($('.vnick').length){ |
||||
$('.vnick').val(session.get('nickname')); |
||||
}else{ |
||||
setTimeout(insertNick, 500); |
||||
} |
||||
} |
||||
function insertMail(){ |
||||
if($('.vmail').length){ |
||||
$('.vmail').val(session.get('email')); |
||||
}else{ |
||||
setTimeout(insertMail, 500); |
||||
} |
||||
} |
||||
|
||||
if(session.get('nickname')){ |
||||
insertNick(); |
||||
} |
||||
|
||||
if(session.get('email')){ |
||||
insertMail(); |
||||
} |
||||
} |
||||
}); |
||||
</script> |
||||
|
Loading…
Reference in new issue