Plugin Directory

Changeset 795169


Ignore:
Timestamp:
10/29/2013 07:06:23 AM (12 years ago)
Author:
Retio
Message:

1.5.1 opacity fix

Location:
sn-facebook-like/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sn-facebook-like/trunk/define.php

    r794524 r795169  
    22define('SNFL_ID', 'SN-Facebook-Like');
    33define('SNFL_NAME', 'SN Facebook Like');
    4 define('SNFL_VERSION', '1.5');
     4define('SNFL_VERSION', '1.5.1');
    55define('SNFL_AUTHOR', 'Mateusz "Retio" Lerczak');
    66
  • sn-facebook-like/trunk/js/retioSlider.js

    r794524 r795169  
    1 // retioSlider v0.6 - simple box slider based on jQuery
    2 // Copyright (c) 2011 Matthew Lerczak - kiki.diavo@gmail.com
     1// retioSlider v0.6.1 - simple box slider based on jQuery
     2// Copyright (c) 2011-2013 Matthew Lerczak - kiki.diavo@gmail.com
    33// https://github.com/retio/retioSlider
    44// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
    5 
    65(function($) {
    76$.fn.retioSlider = function(options) {
     
    9897    }
    9998   
    100     if (jQuery.support.browser) {
     99    if ($.browser.name !== 'msie') {
    101100        sliderCSS['opacity'] = sOpacity;
    102101        oSettings['opacity'] = oOpacity;
     
    158157    return this;
    159158 }})(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);
  • sn-facebook-like/trunk/js/retioSlider.min.js

    r794524 r795169  
    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);
  • sn-facebook-like/trunk/readme.txt

    r794524 r795169  
    55Requires at least: 3.0
    66Tested up to: 3.7
    7 Stable tag: 1.5
     7Stable tag: 1.5.1
    88License: GPLv2
    99
     
    4545== Changelog ==
    4646
     47= 1.5.1 =
     48* Opacity fix, IE disabled
     49
    4750= 1.5 =
    4851* JS Bug fix
  • sn-facebook-like/trunk/sn-facebook-like.php

    r794524 r795169  
    66  Author: Retio
    77  Author URI: http://blog.lerczak.eu
    8   Version: 1.5
     8  Version: 1.5.1
    99  Text Domain: SNFL
    1010  Domain Path: /lang/
Note: See TracChangeset for help on using the changeset viewer.