From: Lukasz Anwajler Date: Thu, 23 Sep 2010 09:32:17 +0000 (-0500) Subject: Widget: 140px version X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/8509b23e9f56e12eac2acadfb6cfe9051cc335b7?hp=9e81b1b5ad1a11035710f32ab2af4f57b471d206 Widget: 140px version --- 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"; +}