diff options
Diffstat (limited to 'web/scripts3.js')
-rw-r--r-- | web/scripts3.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/scripts3.js b/web/scripts3.js index bf283594..ca111020 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -212,6 +212,22 @@ function checkUsername() { /******************************************************************************/ +function openDialogLogin() { + var html='<div class="dialoglogin"><p>Пожалуйста, представьтесь:' + +'<a href="/_fblogin" id="signfb">Facebook</a> ' + +'<a href="/_vklogin" id="signvk">ВКонтакте</a></p>' + +'<p>Уже зарегистрированы?</p>' + +'<form action="/login" method="POST">' + +'<input class="signinput" type="text" name="username" placeholder="Имя пользователя"/><br/>' + +'<input class="signinput" type="password" name="password" placeholder="Пароль"/><br/>' + +'<input class="signsubmit" type="submit" value="OK"/>' + +'</form></div>'; + openDialog(html); + return false; +} + +/******************************************************************************/ + function setPopular(e,mid,popular) { $.ajax('http://api.juick.com/messages/set_popular?mid='+mid+'&popular='+popular+'&hash='+hash).done(function() { var a=$(e).closest("article"); |