diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/scripts3.js | 37 | ||||
-rw-r--r-- | web/style3.css | 8 |
2 files changed, 30 insertions, 15 deletions
diff --git a/web/scripts3.js b/web/scripts3.js index 8be4d551..f4a21da3 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -96,23 +96,32 @@ function openSocialWindow(url) { if(window.focus) w.focus(); } +function checkUsername() { + var uname=$('#username').val(); + $.ajax('http://api.juick.com/users?uname='+uname).done(function() { + $('#username').css('background','#FFCCCC'); + }).fail(function() { + $('#username').css('background','#CCFFCC'); + }); +} + /******************************************************************************/ jQuery.fn.selectText = function(){ - var doc = document; - var element = this[0]; - console.log(this, element); - if (doc.body.createTextRange) { - var range = document.body.createTextRange(); - range.moveToElementText(element); - range.select(); - } else if (window.getSelection) { - var selection = window.getSelection(); - var range = document.createRange(); - range.selectNodeContents(element); - selection.removeAllRanges(); - selection.addRange(range); - } + var doc = document; + var element = this[0]; + console.log(this, element); + if (doc.body.createTextRange) { + var range = document.body.createTextRange(); + range.moveToElementText(element); + range.select(); + } else if (window.getSelection) { + var selection = window.getSelection(); + var range = document.createRange(); + range.selectNodeContents(element); + selection.removeAllRanges(); + selection.addRange(range); + } }; /* diff --git a/web/style3.css b/web/style3.css index f1bc761b..4a79e4ed 100644 --- a/web/style3.css +++ b/web/style3.css @@ -5,7 +5,7 @@ h1,h2 { font-weight: normal; } ul { list-style-type: none; } a { text-decoration: none; color: #069; } img,hr { border: none; } -hr { height: 1px; background: #CCC; } +hr { height: 1px; background: #CCC; margin: 10px 0; } pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; } .u { text-decoration: underline; } @@ -78,6 +78,12 @@ blockquote { border-left: 1px dashed #CCC; margin: 10px 0 10px 10px; padding-lef .page { text-align: center; padding: 5px; background: #E5E5DD; } +/* signup form */ +.signup-h1>img { vertical-align: middle; margin-right: 10px; } +.signup-h1 { margin: 20px 0 10px 0; font-size: x-large; } +.signup-h2 { font-size: large; margin: 10px 0 5px 0; } +.signup-hr { margin: 20px 0; } + /********/ #column { width: 185px; top: 0; padding-top: 10px; overflow: hidden; } |