Changeset 795176
- Timestamp:
- 10/29/2013 07:23:09 AM (12 years ago)
- Location:
- google-plus-badge/trunk
- Files:
-
- 5 edited
-
define.php (modified) (1 diff)
-
google-plus-badge.php (modified) (1 diff)
-
js/retioSlider.js (modified) (3 diffs)
-
js/retioSlider.min.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
google-plus-badge/trunk/define.php
r794534 r795176 2 2 define('GPB_ID', 'Google-Plus-Badge'); 3 3 define('GPB_NAME', 'Google Plus Badge'); 4 define('GPB_VERSION', '1.4 ');4 define('GPB_VERSION', '1.4.1'); 5 5 define('GPB_AUTHOR', 'Mateusz "Retio" Lerczak'); 6 6 -
google-plus-badge/trunk/google-plus-badge.php
r794531 r795176 6 6 Author: Retio 7 7 Author URI: http://blog.lerczak.eu 8 Version: 1.4 8 Version: 1.4.1 9 9 Text Domain: GPB 10 10 Domain Path: /lang/ -
google-plus-badge/trunk/js/retioSlider.js
r794531 r795176 1 // retioSlider v0.6 - simple box slider based on jQuery2 // Copyright (c) 2011 Matthew Lerczak - kiki.diavo@gmail.com1 // retioSlider v0.6.1 - simple box slider based on jQuery 2 // Copyright (c) 2011-2013 Matthew Lerczak - kiki.diavo@gmail.com 3 3 // https://github.com/retio/retioSlider 4 4 // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 5 6 5 (function($) { 7 6 $.fn.retioSlider = function(options) { … … 98 97 } 99 98 100 if ( jQuery.support.browser) {99 if ($.browser.name !== 'msie') { 101 100 sliderCSS['opacity'] = sOpacity; 102 101 oSettings['opacity'] = oOpacity; … … 158 157 return this; 159 158 }})(jQuery); 159 (function($){$.browserTest=function(a,z){var u='unknown',x='X',m=function(r,h){for(var i=0;i<h.length;i=i+1){r=r.replace(h[i][0],h[i][1]);}return r;},c=function(i,a,b,c){var r={name:m((a.exec(i)||[u,u])[1],b)};r[r.name]=true;r.version=(c.exec(i)||[x,x,x,x])[3];if(r.name.match(/safari/)&&r.version>400){r.version='2.0';}if(r.name==='presto'){r.version=($.browser.version>9.27)?'futhark':'linear_b';}r.versionNumber=parseFloat(r.version,10)||0;r.versionX=(r.version!==x)?(r.version+'').substr(0,1):x;r.className=r.name+r.versionX;return r;};a=(a.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?m(a,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape']]):a).toLowerCase();$.browser=$.extend((!z)?$.browser:{},c(a,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));$.layout=c(a,/(gecko|konqueror|msie|opera|webkit)/,[['konqueror','khtml'],['msie','trident'],['opera','presto']],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);$.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[u])[0].replace('sunos','solaris')};if(!z){$('html').addClass([$.os.name,$.browser.name,$.browser.className,$.layout.name,$.layout.className].join(' '));}};$.browserTest(navigator.userAgent);})(jQuery); -
google-plus-badge/trunk/js/retioSlider.min.js
r794531 r795176 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)1 (function(a){a.fn.retioSlider=function(f){var s=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);if(a(window).width()<768){return}var o=a(this),t=a(this).children(".slider-content"),r=a(this).children(".slider-logo"),h=(s.type=="slider")?r.children():r.children().children(),i=s.direction,k=s.openLenght,q=s.closeLenght,c=s.openTime,l=s.closeTime,m=s.openOpacity,n=s.closeOpacity,e=s.startOpacity,p=s.action,g={},j={},b={};o.addClass("slider-"+i);switch(i){case"left":case"right":if(s.type=="slider"){t.addClass("slider-float-"+i);q=-(o.width()+1)}break;case"top":case"bottom":if(s.type=="slider"){q=-(o.height()+1)}break}if(h.width()||h.height()){var d=(-h.width()+"px"),u=(-h.height()+"px");switch(i){case"left":r.css("right",d);break;case"right":r.css("left",d);break;case"top":r.css("bottom",u);break;case"bottom":r.css("top",u);break}}switch(i){case"left":case"right":if(s.logoPosition>=0){r.css("top",s.logoPosition+"px")}break;case"top":case"bottom":if(s.logoPosition>=0){r.css("left",s.logoPosition+"px")}break}if(a.browser.name!=="msie"){b.opacity=e;g.opacity=m;j.opacity=n}if(s.type=="slider"){g[i]=k;j[i]=q}switch(i){case"left":case"right":if(s.topPosition>=0){b.top=s.topPosition+"px"}break;case"top":case"bottom":if(s.leftPosition>=0){b.left=s.leftPosition+"px"}break}b[i]=q;a(this).css(b);r.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(p){case"click":o.unbind("mouseenter");o.unbind("mouseleave");break;case"hover":r.unbind("click");break}o.show();return this}})(jQuery);(function($){$.browserTest=function(a,z){var u='unknown',x='X',m=function(r,h){for(var i=0;i<h.length;i=i+1){r=r.replace(h[i][0],h[i][1]);}return r;},c=function(i,a,b,c){var r={name:m((a.exec(i)||[u,u])[1],b)};r[r.name]=true;r.version=(c.exec(i)||[x,x,x,x])[3];if(r.name.match(/safari/)&&r.version>400){r.version='2.0';}if(r.name==='presto'){r.version=($.browser.version>9.27)?'futhark':'linear_b';}r.versionNumber=parseFloat(r.version,10)||0;r.versionX=(r.version!==x)?(r.version+'').substr(0,1):x;r.className=r.name+r.versionX;return r;};a=(a.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?m(a,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape']]):a).toLowerCase();$.browser=$.extend((!z)?$.browser:{},c(a,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));$.layout=c(a,/(gecko|konqueror|msie|opera|webkit)/,[['konqueror','khtml'],['msie','trident'],['opera','presto']],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);$.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[u])[0].replace('sunos','solaris')};if(!z){$('html').addClass([$.os.name,$.browser.name,$.browser.className,$.layout.name,$.layout.className].join(' '));}};$.browserTest(navigator.userAgent);})(jQuery); -
google-plus-badge/trunk/readme.txt
r794531 r795176 5 5 Requires at least: 3.0 6 6 Tested up to: 3.7 7 Stable tag: 1.4 7 Stable tag: 1.4.1 8 8 License: GPLv2 9 9 … … 42 42 == Changelog == 43 43 44 = 1.4.1 = 45 * Opacity fix, IE disabled 46 44 47 = 1.4 = 45 48 * JS Bug fix
Note: See TracChangeset
for help on using the changeset viewer.