aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-01-03 17:24:54 +0700
committerGravatar Ugnich Anton2013-01-03 17:24:54 +0700
commit881bc336c1cef93d08cd1f14e37f3a3feeb07e58 (patch)
treefcd3ea5ff881a1f59e4d42fd57dee7003b5bcdc1 /web
parent84e5ac3a172e15f11b04203cf9e93c9d5c8174ed (diff)
many bugfixes
message number js autoselection privacy fix
Diffstat (limited to 'web')
-rw-r--r--web/scripts3.js19
-rw-r--r--web/style3.css7
2 files changed, 24 insertions, 2 deletions
diff --git a/web/scripts3.js b/web/scripts3.js
index ca1fafa1..8be4d551 100644
--- a/web/scripts3.js
+++ b/web/scripts3.js
@@ -96,6 +96,25 @@ function openSocialWindow(url) {
if(window.focus) w.focus();
}
+/******************************************************************************/
+
+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);
+ }
+};
+
/*
* jQuery.fn.autoResize 1.14
*/
diff --git a/web/style3.css b/web/style3.css
index 6f0b42bf..e105081e 100644
--- a/web/style3.css
+++ b/web/style3.css
@@ -19,6 +19,7 @@ hr { height: 1px; background: #CCC; }
#header a { display: block; font-size: 18px; padding: 0 10px; color: #AAA; }
#header .wide { padding: 0 20px; }
#header img { max-width: 32px; max-height: 32px; vertical-align: middle; margin-right: 4px; }
+#header label { cursor: pointer; }
.head-ico { width: 32px; height: 32px; background: url(//static.juick.com/head-ico-24.png) no-repeat; display: inline-block; vertical-align: middle; margin-bottom: 2px; }
#hi-logo { width: 110px; margin: 0 28px; }
@@ -69,7 +70,7 @@ hr { height: 1px; background: #CCC; }
.title2 { padding: 10px 20px; margin: 20px 0; background: #DDDDD0; }
.title2-right { float: right; line-height: 24px; }
-.title2 h2 { font-size: 24px; }
+.title2 h2 { font-size: x-large; }
.page { text-align: center; padding: 5px; background: #E5E5DD; }
@@ -107,7 +108,7 @@ hr { height: 1px; background: #CCC; }
/********/
-#footer { clear: both; font-size: small; padding: 10px 0; color: #999; }
+#footer { clear: both; font-size: small; padding: 10px; color: #999; }
#footer-right { float: right; }
/******************************************************************************/
@@ -137,6 +138,8 @@ hr { height: 1px; background: #CCC; }
.msg-media { overflow: scroll; }
.msg-media,.msg-links,.msg-comment,.msg-comments,.msg-recomms { margin-left: 0px; }
+ .title2 h2 { font-size: large; }
+
.fix,.abs { position: static; }
#column { clear: both; margin: 0 3%; width: 44%; float: left; }
#rcol { float: left; width: 44%; margin: 20px 3% 0 3%; }