Version Description
- Added PHP header to hybrid PHP/JS file
- Scroll library improvements
Download this release
Release Info
Developer | kubiq |
Plugin | MouseWheel Smooth Scroll |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.3
- js/jQuery.scrollSpeed.js +0 -100
- js/jquery.easing.min.js +0 -14
- js/wpmss.php +16 -0
- languages/wpmss-sk_SK.mo +0 -0
- languages/wpmss-sk_SK.po +22 -14
- mousewheel-smooth-scroll.php +13 -5
- readme.txt +6 -2
js/jQuery.scrollSpeed.js
DELETED
@@ -1,100 +0,0 @@
|
|
1 |
-
// Custom scrolling speed with jQuery
|
2 |
-
// Source: github.com/ByNathan/jQuery.scrollSpeed
|
3 |
-
// Version: 1.0.2
|
4 |
-
|
5 |
-
(function($) {
|
6 |
-
|
7 |
-
jQuery.scrollSpeed = function(step, speed, easing) {
|
8 |
-
|
9 |
-
var $document = $(document),
|
10 |
-
$window = $(window),
|
11 |
-
$body = $('html, body'),
|
12 |
-
option = easing || 'default',
|
13 |
-
root = 0,
|
14 |
-
scroll = false,
|
15 |
-
scrollY,
|
16 |
-
scrollX,
|
17 |
-
view;
|
18 |
-
|
19 |
-
if (window.navigator.msPointerEnabled)
|
20 |
-
|
21 |
-
return false;
|
22 |
-
|
23 |
-
$window.on('mousewheel DOMMouseScroll', function(e) {
|
24 |
-
|
25 |
-
if( ! e.ctrlKey ){
|
26 |
-
var deltaY = e.originalEvent.wheelDeltaY,
|
27 |
-
detail = e.originalEvent.detail;
|
28 |
-
scrollY = $document.height() > $window.height();
|
29 |
-
scrollX = $document.width() > $window.width();
|
30 |
-
scroll = true;
|
31 |
-
|
32 |
-
if (scrollY) {
|
33 |
-
|
34 |
-
view = $window.height();
|
35 |
-
|
36 |
-
if (deltaY < 0 || detail > 0)
|
37 |
-
|
38 |
-
root = (root + view) >= $document.height() ? root : root += step;
|
39 |
-
|
40 |
-
if (deltaY > 0 || detail < 0)
|
41 |
-
|
42 |
-
root = root <= 0 ? 0 : root -= step;
|
43 |
-
|
44 |
-
$body.stop().animate({
|
45 |
-
|
46 |
-
scrollTop: root
|
47 |
-
|
48 |
-
}, speed, option, function() {
|
49 |
-
|
50 |
-
scroll = false;
|
51 |
-
|
52 |
-
});
|
53 |
-
}
|
54 |
-
|
55 |
-
if (scrollX) {
|
56 |
-
|
57 |
-
view = $window.width();
|
58 |
-
|
59 |
-
if (deltaY < 0 || detail > 0)
|
60 |
-
|
61 |
-
root = (root + view) >= $document.width() ? root : root += step;
|
62 |
-
|
63 |
-
if (deltaY > 0 || detail < 0)
|
64 |
-
|
65 |
-
root = root <= 0 ? 0 : root -= step;
|
66 |
-
|
67 |
-
$body.stop().animate({
|
68 |
-
|
69 |
-
scrollLeft: root
|
70 |
-
|
71 |
-
}, speed, option, function() {
|
72 |
-
|
73 |
-
scroll = false;
|
74 |
-
|
75 |
-
});
|
76 |
-
}
|
77 |
-
|
78 |
-
return false;
|
79 |
-
}
|
80 |
-
|
81 |
-
|
82 |
-
}).on('scroll', function() {
|
83 |
-
|
84 |
-
if (scrollY && !scroll) root = $window.scrollTop();
|
85 |
-
if (scrollX && !scroll) root = $window.scrollLeft();
|
86 |
-
|
87 |
-
}).on('resize', function() {
|
88 |
-
|
89 |
-
if (scrollY && !scroll) view = $window.height();
|
90 |
-
if (scrollX && !scroll) view = $window.width();
|
91 |
-
|
92 |
-
});
|
93 |
-
};
|
94 |
-
|
95 |
-
jQuery.easing.default = function (x,t,b,c,d) {
|
96 |
-
|
97 |
-
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
98 |
-
};
|
99 |
-
|
100 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/jquery.easing.min.js
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* jQuery Easing v1.3.2 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3 |
-
* Open source under the BSD License.
|
4 |
-
* Copyright © 2008 George McGinley Smith
|
5 |
-
* All rights reserved.
|
6 |
-
* https://raw.github.com/gdsmith/jquery-easing/master/LICENSE
|
7 |
-
*/
|
8 |
-
(function(h){h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return h.easing[h.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1>
|
9 |
-
(a/=d/2)?b/2*a*a*a+c:b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a,
|
10 |
-
c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b*
|
11 |
-
(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f))+c},easeOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==
|
12 |
-
a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin(2*(a*d-e)*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(2==(a/=d/2))return c+b;f||(f=.3*d*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return 1>a?-.5*g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)+c:g*Math.pow(2,-10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)*.5+b+c},easeInBack:function(e,a,c,b,d,f){void 0==
|
13 |
-
f&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-h.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?7.5625*b*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+.75)+c:a<2.5/2.75?b*(7.5625*
|
14 |
-
(a-=2.25/2.75)*a+.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a<d/2?.5*h.easing.easeInBounce(e,2*a,0,b,d)+c:.5*h.easing.easeOutBounce(e,2*a-d,0,b,d)+.5*b+c}})})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/wpmss.php
CHANGED
@@ -1,3 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jQuery(document).ready(function($) {
|
2 |
MouseSmoothScroll();
|
3 |
});
|
1 |
+
<?php header("content-type: application/x-javascript"); ?>
|
2 |
+
|
3 |
+
<?php if ( $_GET['dequeueEasing'] == 0 ): ?>
|
4 |
+
//jQuery Easing v1.3.2
|
5 |
+
(function(h){h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return h.easing[h.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1>
|
6 |
+
(a/=d/2)?b/2*a*a*a+c:b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a,
|
7 |
+
c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b*
|
8 |
+
(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f))+c},easeOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==
|
9 |
+
a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin(2*(a*d-e)*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(2==(a/=d/2))return c+b;f||(f=.3*d*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return 1>a?-.5*g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)+c:g*Math.pow(2,-10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)*.5+b+c},easeInBack:function(e,a,c,b,d,f){void 0==
|
10 |
+
f&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-h.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?7.5625*b*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+.75)+c:a<2.5/2.75?b*(7.5625*
|
11 |
+
(a-=2.25/2.75)*a+.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a<d/2?.5*h.easing.easeInBounce(e,2*a,0,b,d)+c:.5*h.easing.easeOutBounce(e,2*a-d,0,b,d)+.5*b+c}})})(jQuery);
|
12 |
+
<?php endif ?>
|
13 |
+
|
14 |
+
// jQuery.scrollSpeed 1.0.2
|
15 |
+
!function(a){jQuery.scrollSpeed=function(b,c,d){var k,l,m,e=a(document),f=a(window),g=a("html, body"),h=d||"default",i=a(window).scrollTop(),j=!1;return window.navigator.msPointerEnabled?!1:void f.on("mousewheel DOMMouseScroll",function(a){if(!a.ctrlKey){var d=a.originalEvent.wheelDeltaY,n=a.originalEvent.detail;return k=e.height()>f.height(),l=e.width()>f.width(),j=!0,k&&(m=f.height(),(0>d||n>0)&&(i=i+m>=e.height()?i:i+=b),(d>0||0>n)&&(i=0>=i?0:i-=b),g.stop().animate({scrollTop:i},c,h,function(){j=!1})),l&&(m=f.width(),(0>d||n>0)&&(i=i+m>=e.width()?i:i+=b),(d>0||0>n)&&(i=0>=i?0:i-=b),g.stop().animate({scrollLeft:i},c,h,function(){j=!1})),!1}}).on("scroll",function(){k&&!j&&(i=f.scrollTop()),l&&!j&&(i=f.scrollLeft())}).on("resize",function(){k&&!j&&(m=f.height()),l&&!j&&(m=f.width())})},jQuery.easing["default"]=function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c}}(jQuery);
|
16 |
+
|
17 |
jQuery(document).ready(function($) {
|
18 |
MouseSmoothScroll();
|
19 |
});
|
languages/wpmss-sk_SK.mo
CHANGED
Binary file
|
languages/wpmss-sk_SK.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: woocommerce-heureka\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: Ing. Jakub Novák <info@kubiq.sk>\n"
|
7 |
"Language-Team: KubiQ <info@kubiq.sk>\n"
|
8 |
"Language: sk_SK\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
@@ -17,47 +17,55 @@ msgstr ""
|
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
"X-Poedit-SearchPath-1: ./..\n"
|
19 |
|
20 |
-
#: ../mousewheel-smooth-scroll.php:
|
21 |
msgid "Settings"
|
22 |
msgstr "Nastavenia"
|
23 |
|
24 |
-
#: ../mousewheel-smooth-scroll.php:
|
25 |
-
#: ../mousewheel-smooth-scroll.php:
|
26 |
msgid "MouseWheel Smooth Scroll"
|
27 |
msgstr "MouseWheel Smooth Scroll"
|
28 |
|
29 |
-
#: ../mousewheel-smooth-scroll.php:
|
30 |
msgid "General"
|
31 |
msgstr "Všeobecné"
|
32 |
|
33 |
-
#: ../mousewheel-smooth-scroll.php:
|
34 |
msgid "Help"
|
35 |
msgstr "Pomoc"
|
36 |
|
37 |
-
#: ../mousewheel-smooth-scroll.php:
|
38 |
msgid "Settings saved."
|
39 |
msgstr "Nastavenia boli uložené."
|
40 |
|
41 |
-
#: ../mousewheel-smooth-scroll.php:
|
42 |
msgid "Step:"
|
43 |
msgstr "Krok:"
|
44 |
|
45 |
-
#: ../mousewheel-smooth-scroll.php:
|
46 |
msgid "Speed:"
|
47 |
msgstr "Rýchlosť:"
|
48 |
|
49 |
-
#: ../mousewheel-smooth-scroll.php:
|
50 |
msgid "Ease:"
|
51 |
msgstr "Animácia:"
|
52 |
|
53 |
-
#: ../mousewheel-smooth-scroll.php:
|
54 |
msgid "try easings"
|
55 |
msgstr "pozrieť animácie"
|
56 |
|
57 |
-
#: ../mousewheel-smooth-scroll.php:
|
58 |
msgid "Enable for MAC and non-WebKit browsers (experimental)"
|
59 |
msgstr "Povoliť pre Mac a prehliadače, ktoré nemajú WebKit (experiment)"
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
#: ../mousewheel-smooth-scroll.php:175
|
62 |
msgid "Save"
|
63 |
msgstr "Uložiť"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: woocommerce-heureka\n"
|
4 |
+
"POT-Creation-Date: 2015-11-20 10:51+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-11-20 10:52+0100\n"
|
6 |
"Last-Translator: Ing. Jakub Novák <info@kubiq.sk>\n"
|
7 |
"Language-Team: KubiQ <info@kubiq.sk>\n"
|
8 |
"Language: sk_SK\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.6\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
"X-Poedit-SearchPath-1: ./..\n"
|
19 |
|
20 |
+
#: ../mousewheel-smooth-scroll.php:28
|
21 |
msgid "Settings"
|
22 |
msgstr "Nastavenia"
|
23 |
|
24 |
+
#: ../mousewheel-smooth-scroll.php:36 ../mousewheel-smooth-scroll.php:37
|
25 |
+
#: ../mousewheel-smooth-scroll.php:76
|
26 |
msgid "MouseWheel Smooth Scroll"
|
27 |
msgstr "MouseWheel Smooth Scroll"
|
28 |
|
29 |
+
#: ../mousewheel-smooth-scroll.php:62
|
30 |
msgid "General"
|
31 |
msgstr "Všeobecné"
|
32 |
|
33 |
+
#: ../mousewheel-smooth-scroll.php:62
|
34 |
msgid "Help"
|
35 |
msgstr "Pomoc"
|
36 |
|
37 |
+
#: ../mousewheel-smooth-scroll.php:77
|
38 |
msgid "Settings saved."
|
39 |
msgstr "Nastavenia boli uložené."
|
40 |
|
41 |
+
#: ../mousewheel-smooth-scroll.php:97
|
42 |
msgid "Step:"
|
43 |
msgstr "Krok:"
|
44 |
|
45 |
+
#: ../mousewheel-smooth-scroll.php:105
|
46 |
msgid "Speed:"
|
47 |
msgstr "Rýchlosť:"
|
48 |
|
49 |
+
#: ../mousewheel-smooth-scroll.php:113
|
50 |
msgid "Ease:"
|
51 |
msgstr "Animácia:"
|
52 |
|
53 |
+
#: ../mousewheel-smooth-scroll.php:154
|
54 |
msgid "try easings"
|
55 |
msgstr "pozrieť animácie"
|
56 |
|
57 |
+
#: ../mousewheel-smooth-scroll.php:159
|
58 |
msgid "Enable for MAC and non-WebKit browsers (experimental)"
|
59 |
msgstr "Povoliť pre Mac a prehliadače, ktoré nemajú WebKit (experiment)"
|
60 |
|
61 |
+
#: ../mousewheel-smooth-scroll.php:167
|
62 |
+
msgid "Don't load (dequeue) jQuery Easing library"
|
63 |
+
msgstr "Nenačítavať (odpojiť) jQuery Easing knižnicu"
|
64 |
+
|
65 |
+
#: ../mousewheel-smooth-scroll.php:168
|
66 |
+
msgid "if you don't need it, or it's already loaded by another plugin"
|
67 |
+
msgstr "ak ju nepotrebujete, alebo je už načítaná iným modulom"
|
68 |
+
|
69 |
#: ../mousewheel-smooth-scroll.php:175
|
70 |
msgid "Save"
|
71 |
msgstr "Uložiť"
|
mousewheel-smooth-scroll.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: MouseWheel Smooth Scroll
|
4 |
Plugin URI: http://kubiq.sk
|
5 |
Description: MouseWheel smooth scrolling for your WordPress website
|
6 |
-
Version: 1.
|
7 |
Author: Jakub Novák
|
8 |
Author URI: http://kubiq.sk
|
9 |
*/
|
@@ -48,15 +48,14 @@ if (!class_exists('wpmss')) {
|
|
48 |
}
|
49 |
|
50 |
function plugin_scripts_load() {
|
51 |
-
wp_enqueue_script( 'wpmss_jquery_easing', plugins_url( 'js/jquery.easing.min.js', __FILE__ ), array('jquery'));
|
52 |
$options = array(
|
53 |
'step' => isset( $this->settings['general']['step'] ) && trim( $this->settings['general']['step'] ) != "" ? $this->settings['general']['step'] : 120,
|
54 |
'speed' => isset( $this->settings['general']['speed'] ) && trim( $this->settings['general']['step'] ) != "" ? $this->settings['general']['speed'] : 800,
|
55 |
'ease' => isset( $this->settings['general']['ease'] ) ? $this->settings['general']['ease'] : 'easeOutCubic',
|
56 |
-
'enableAll' => isset( $this->settings['general']['enable_mac'] ) ? 1 : 0
|
|
|
57 |
);
|
58 |
-
wp_enqueue_script( '
|
59 |
-
wp_enqueue_script( 'wpmss_script', plugins_url( 'js/wpmss.php?'.http_build_query($options), __FILE__ ), array('jquery'));
|
60 |
}
|
61 |
|
62 |
function plugin_admin_tabs( $current = 'general' ) {
|
@@ -163,6 +162,15 @@ if (!class_exists('wpmss')) {
|
|
163 |
<input type="checkbox" name="enable_mac" value="checked" id="q_field_4" <?php echo isset( $this->settings[ $this->tab ]["enable_mac"] ) ? $this->settings[ $this->tab ]["enable_mac"] : "" ?>>
|
164 |
</td>
|
165 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
</table>
|
167 |
<p class="submit"><input type="submit" class="button button-primary button-large" value="<?php _e( 'Save' ) ?>"></p><?php
|
168 |
}
|
3 |
Plugin Name: MouseWheel Smooth Scroll
|
4 |
Plugin URI: http://kubiq.sk
|
5 |
Description: MouseWheel smooth scrolling for your WordPress website
|
6 |
+
Version: 1.3
|
7 |
Author: Jakub Novák
|
8 |
Author URI: http://kubiq.sk
|
9 |
*/
|
48 |
}
|
49 |
|
50 |
function plugin_scripts_load() {
|
|
|
51 |
$options = array(
|
52 |
'step' => isset( $this->settings['general']['step'] ) && trim( $this->settings['general']['step'] ) != "" ? $this->settings['general']['step'] : 120,
|
53 |
'speed' => isset( $this->settings['general']['speed'] ) && trim( $this->settings['general']['step'] ) != "" ? $this->settings['general']['speed'] : 800,
|
54 |
'ease' => isset( $this->settings['general']['ease'] ) ? $this->settings['general']['ease'] : 'easeOutCubic',
|
55 |
+
'enableAll' => isset( $this->settings['general']['enable_mac'] ) ? 1 : 0,
|
56 |
+
'dequeueEasing' => isset( $this->settings['general']['dequeueEasing'] ) ? 1 : 0
|
57 |
);
|
58 |
+
wp_enqueue_script( 'wpmss_scroll_scripts', plugins_url( 'js/wpmss.php?'.http_build_query($options), __FILE__ ), array('jquery'));
|
|
|
59 |
}
|
60 |
|
61 |
function plugin_admin_tabs( $current = 'general' ) {
|
162 |
<input type="checkbox" name="enable_mac" value="checked" id="q_field_4" <?php echo isset( $this->settings[ $this->tab ]["enable_mac"] ) ? $this->settings[ $this->tab ]["enable_mac"] : "" ?>>
|
163 |
</td>
|
164 |
</tr>
|
165 |
+
<tr>
|
166 |
+
<th>
|
167 |
+
<label for="q_field_4"><?php _e("Don't load (dequeue) jQuery Easing library", $this->domain) ?></label>
|
168 |
+
<br><small><?php _e("if you don't need it, or it's already loaded by another plugin", $this->domain) ?></small>
|
169 |
+
</th>
|
170 |
+
<td>
|
171 |
+
<input type="checkbox" name="dequeueEasing" value="checked" id="q_field_4" <?php echo isset( $this->settings[ $this->tab ]["dequeueEasing"] ) ? $this->settings[ $this->tab ]["dequeueEasing"] : "" ?>>
|
172 |
+
</td>
|
173 |
+
</tr>
|
174 |
</table>
|
175 |
<p class="submit"><input type="submit" class="button button-primary button-large" value="<?php _e( 'Save' ) ?>"></p><?php
|
176 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://kubiq.sk
|
|
4 |
Tags: smooth scroll, mousewheel scroll, scrolling
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -55,4 +55,8 @@ Replace basic scrolling "effect" on Windows, Linux and some browsers with nice s
|
|
55 |
* Tested on WP 4.4
|
56 |
* Use different jQuery library
|
57 |
* Repair scripts enqueue dependencies
|
58 |
-
* Ctrl + scroll is now zooming - default browser behaviour
|
|
|
|
|
|
|
|
4 |
Tags: smooth scroll, mousewheel scroll, scrolling
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 1.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
55 |
* Tested on WP 4.4
|
56 |
* Use different jQuery library
|
57 |
* Repair scripts enqueue dependencies
|
58 |
+
* Ctrl + scroll is now zooming - default browser behaviour
|
59 |
+
|
60 |
+
= 1.3 =
|
61 |
+
* Added PHP header to hybrid PHP/JS file
|
62 |
+
* Scroll library improvements
|