summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-20 20:33:46 +0400
committerAndrew Dolgov <[email protected]>2013-03-20 20:33:46 +0400
commitb5d4716a52aab283e1d3e0527d036134c5787095 (patch)
treeb0215ff969e40204ea661000d7f89914335eae89 /lib
parent47e909d1cfc1199a068732137bbb2d1d31a400ed (diff)
optimize loading of external libraries a bit
fix bold text in Unread articles
Diffstat (limited to 'lib')
-rw-r--r--lib/position.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/position.js b/lib/position.js
deleted file mode 100644
index 43ea85f76..000000000
--- a/lib/position.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/* http://textsnippets.com/posts/show/835 */
-
-Position.GetWindowSize = function(w) {
- w = w ? w : window;
- var width = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth);
- var height = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight);
- return [width, height];
-};
-
-/* http://textsnippets.com/posts/show/836 */
-
-Position.Center = function(element, parent) {
- var w, h, pw, ph;
- var d = Element.getDimensions(element);
- w = d.width;
- h = d.height;
- Position.prepare();
- if (!parent) {
- var ws = Position.GetWindowSize();
- pw = ws[0];
- ph = ws[1];
- } else {
- pw = parent.offsetWidth;
- ph = parent.offsetHeight;
- }
- element.style.top = (ph/2) - (h/2) - Position.deltaY + "px";
- element.style.left = (pw/2) - (w/2) - Position.deltaX + "px";
-};
-
-
-