From 8509b23e9f56e12eac2acadfb6cfe9051cc335b7 Mon Sep 17 00:00:00 2001 From: Lukasz Anwajler Date: Thu, 23 Sep 2010 04:32:17 -0500 Subject: [PATCH] Widget: 140px version --- wolnelektury/static/css/widget.css | 3 +++ wolnelektury/static/js/catalogue.js | 2 +- wolnelektury/static/js/widget.js | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wolnelektury/static/css/widget.css b/wolnelektury/static/css/widget.css index 31349efb1..626698844 100644 --- a/wolnelektury/static/css/widget.css +++ b/wolnelektury/static/css/widget.css @@ -1,6 +1,9 @@ #wl { background-color: white; } +#wl a, a:visited, a:hover { +border: 0; +} #wl img { border: 0; } diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 7177c4c39..1eede5c90 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -447,7 +447,7 @@ function serverTime() { return false; }); - //$('.sponsors').cycle({timeout: 3000}); + $('.sponsors').cycle({timeout: 3000}); $('.widget-code').focus( function(){ diff --git a/wolnelektury/static/js/widget.js b/wolnelektury/static/js/widget.js index 7012e6404..d0581746c 100644 --- a/wolnelektury/static/js/widget.js +++ b/wolnelektury/static/js/widget.js @@ -64,3 +64,10 @@ widget.style.width = "160px"; widget.style.padding = "10px"; widget.style.fontSize = "12px"; form.style.paddingTop = "10px"; + +/* resize - if needed */ +if(widget.getAttribute('width') == '140'){ + logo.setAttribute('width', '140'); + inputText.setAttribute('size', '10'); + widget.style.width = "140px"; +} -- 2.20.1