diff options
author | Ugnich Anton | 2014-03-18 06:11:00 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-03-18 06:11:00 +0700 |
commit | c137f9c5acdb896a04569c5276cc53eaa68a5b2b (patch) | |
tree | 32df4ebe3dd76a9eee03dc1ee7baddc31d1a68bb /web/scripts3.js | |
parent | 9fae780d462eee90dc1c3891308f436699342e7d (diff) |
Login dialog in javascript
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 bf2835941..ca1110200 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"); |