Changeset 794531
- Timestamp:
- 10/27/2013 07:49:20 PM (12 years ago)
- Location:
- google-plus-badge/trunk
- Files:
-
- 4 edited
-
google-plus-badge.php (modified) (1 diff)
-
js/retioSlider.js (modified) (4 diffs)
-
js/retioSlider.min.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
google-plus-badge/trunk/google-plus-badge.php
r700187 r794531 6 6 Author: Retio 7 7 Author URI: http://blog.lerczak.eu 8 Version: 1. 3.28 Version: 1.4 9 9 Text Domain: GPB 10 10 Domain Path: /lang/ -
google-plus-badge/trunk/js/retioSlider.js
r481782 r794531 1 // retioSlider v0. 4- simple box slider based on jQuery2 // Copyright (c) 2011 Mat euszLerczak - kiki.diavo@gmail.com3 // http ://mateuszlerczak.com/retioslider/1 // retioSlider v0.6 - simple box slider based on jQuery 2 // Copyright (c) 2011 Matthew Lerczak - kiki.diavo@gmail.com 3 // https://github.com/retio/retioSlider 4 4 // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 5 5 … … 23 23 }, options); 24 24 25 if ($(window).width() < 768) { 26 return; 27 } 25 28 26 var slider = $(this); 27 var sContentDIV = $(this).children('.slider-content'); 28 var sLogoDIV = $(this).children('.slider-logo'); 29 var sLogoIMG = (settings['type'] == 'slider') ? sLogoDIV.children() : sLogoDIV.children().children(); 29 var slider = $(this), 30 sContentDIV = $(this).children('.slider-content'), 31 sLogoDIV = $(this).children('.slider-logo'), 32 sLogoIMG = (settings['type'] == 'slider') ? sLogoDIV.children() : sLogoDIV.children().children(), 33 34 oDirection = settings['direction'], 35 oLength = settings['openLenght'], 36 cLength = settings['closeLenght'], 30 37 31 var ieSuck = jQuery.browser.msie; 38 oTime = settings['openTime'], 39 cTime = settings['closeTime'], 40 41 oOpacity = settings['openOpacity'], 42 cOpacity = settings['closeOpacity'], 43 sOpacity = settings['startOpacity'], 32 44 33 var oDirection = settings['direction']; 34 var oLength = settings['openLenght']; 35 var cLength = settings['closeLenght']; 36 37 var oTime = settings['openTime']; 38 var cTime = settings['closeTime']; 39 40 var oOpacity = settings['openOpacity']; 41 var cOpacity = settings['closeOpacity']; 42 var sOpacity = settings['startOpacity']; 45 action = settings['action'], 43 46 44 var action = settings['action']; 45 46 var oSettings = {}; 47 var cSettings = {}; 48 var sliderCSS = {}; 47 oSettings = {}, 48 cSettings = {}, 49 sliderCSS = {}; 49 50 50 51 slider.addClass('slider-'+oDirection); … … 64 65 } 65 66 66 if (sLogoIMG.width() &&sLogoIMG.height()) {67 var horizontalSize = (-sLogoIMG.width() + "px") ;68 v ar verticalSize = (-sLogoIMG.height() + "px");67 if (sLogoIMG.width() || sLogoIMG.height()) { 68 var horizontalSize = (-sLogoIMG.width() + "px"), 69 verticalSize = (-sLogoIMG.height() + "px"); 69 70 70 71 switch (oDirection) { … … 97 98 } 98 99 99 if ( !ieSuck) {100 if (jQuery.support.browser) { 100 101 sliderCSS['opacity'] = sOpacity; 101 102 oSettings['opacity'] = oOpacity; -
google-plus-badge/trunk/js/retioSlider.min.js
r481782 r794531 1 // retioSlider v0.4 - simple box slider based on jQuery 2 // Copyright (c) 2011 Mateusz Lerczak - kiki.diavo@gmail.com 3 // http://mateuszlerczak.com/retioslider/ 4 // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 5 6 (function(a){a.fn.retioSlider=function(f){var t=jQuery.extend({action:"hover",direction:"left",openLenght:0,closeLenght:0,openTime:500,closeTime:500,startOpacity:0.75,openOpacity:1,closeOpacity:0.75,type:"slider"},f);var o=a(this);var u=a(this).children(".slider-content");var s=a(this).children(".slider-logo");var h=(t.type=="slider")?s.children():s.children().children();var p=jQuery.browser.msie;var i=t.direction;var k=t.openLenght;var r=t.closeLenght;var c=t.openTime;var l=t.closeTime;var m=t.openOpacity;var n=t.closeOpacity;var e=t.startOpacity;var q=t.action;var g={};var j={};var b={};o.addClass("slider-"+i);switch(i){case"left":case"right":if(t.type=="slider"){u.addClass("slider-float-"+i);r=-(o.width()+1)}break;case"top":case"bottom":if(t.type=="slider"){r=-(o.height()+1)}break}if(h.width()&&h.height()){var d=(-h.width()+"px");var v=(-h.height()+"px");switch(i){case"left":s.css("right",d);break;case"right":s.css("left",d);break;case"top":s.css("bottom",v);break;case"bottom":s.css("top",v);break}}switch(i){case"left":case"right":if(t.logoPosition>=0){s.css("top",t.logoPosition+"px")}break;case"top":case"bottom":if(t.logoPosition>=0){s.css("left",t.logoPosition+"px")}break}if(!p){b.opacity=e;g.opacity=m;j.opacity=n}if(t.type=="slider"){g[i]=k;j[i]=r}switch(i){case"left":case"right":if(t.topPosition>=0){b.top=t.topPosition+"px"}break;case"top":case"bottom":if(t.leftPosition>=0){b.left=t.leftPosition+"px"}break}b[i]=r;a(this).css(b);s.bind({click:function(){o.toggleClass("slider-clicked");if(o.hasClass("slider-clicked")){o.stop().animate(g,c)}else{o.stop().animate(j,l)}}});o.bind({mouseenter:function(){o.stop().animate(g,c)},mouseleave:function(){o.stop().animate(j,l)}});switch(q){case"click":o.unbind("mouseenter");o.unbind("mouseleave");break;case"hover":s.unbind("click");break}o.show();return this}})(jQuery); 1 (function(e){e.fn.retioSlider=function(t){var n=jQuery.extend({action:"hover",direction:"left",openLenght:0,closeLenght:0,openTime:500,closeTime:500,startOpacity:.75,openOpacity:1,closeOpacity:.75,type:"slider"},t);if(e(window).width()<768){return}var r=e(this),i=e(this).children(".slider-content"),s=e(this).children(".slider-logo"),o=n["type"]=="slider"?s.children():s.children().children(),u=n["direction"],a=n["openLenght"],f=n["closeLenght"],l=n["openTime"],c=n["closeTime"],h=n["openOpacity"],p=n["closeOpacity"],d=n["startOpacity"],v=n["action"],m={},g={},y={};r.addClass("slider-"+u);switch(u){case"left":case"right":if(n["type"]=="slider"){i.addClass("slider-float-"+u);f=-(r.width()+1)}break;case"top":case"bottom":if(n["type"]=="slider")f=-(r.height()+1);break}if(o.width()||o.height()){var b=-o.width()+"px",w=-o.height()+"px";switch(u){case"left":s.css("right",b);break;case"right":s.css("left",b);break;case"top":s.css("bottom",w);break;case"bottom":s.css("top",w);break}}switch(u){case"left":case"right":if(n["logoPosition"]>=0)s.css("top",n["logoPosition"]+"px");break;case"top":case"bottom":if(n["logoPosition"]>=0)s.css("left",n["logoPosition"]+"px");break}if(jQuery.support.browser){y["opacity"]=d;m["opacity"]=h;g["opacity"]=p}if(n["type"]=="slider"){m[u]=a;g[u]=f}switch(u){case"left":case"right":if(n["topPosition"]>=0)y["top"]=n["topPosition"]+"px";break;case"top":case"bottom":if(n["leftPosition"]>=0)y["left"]=n["leftPosition"]+"px";break}y[u]=f;e(this).css(y);s.bind({click:function(){r.toggleClass("slider-clicked");if(r.hasClass("slider-clicked")){r.stop().animate(m,l)}else{r.stop().animate(g,c)}}});r.bind({mouseenter:function(){r.stop().animate(m,l)},mouseleave:function(){r.stop().animate(g,c)}});switch(v){case"click":r.unbind("mouseenter");r.unbind("mouseleave");break;case"hover":s.unbind("click");break}r.show();return this}})(jQuery) -
google-plus-badge/trunk/readme.txt
r700187 r794531 4 4 Tags: google plus, google plugin, plus, google, slider, sn widget, wordpress like, wordpress.like, google badge, badge, google pages, google page, page 5 5 Requires at least: 3.0 6 Tested up to: 3. 5.17 Stable tag: 1. 3.26 Tested up to: 3.7 7 Stable tag: 1.4 8 8 License: GPLv2 9 9 … … 42 42 == Changelog == 43 43 44 = 1.4 = 45 * JS Bug fix 46 44 47 = 1.3.2 = 45 48 * URL update
Note: See TracChangeset
for help on using the changeset viewer.