From 958840c28de5e7aacaee1c582a9007204b586d14 Mon Sep 17 00:00:00 2001 From: Sveneld Date: Sat, 1 Jun 2024 21:45:06 +0200 Subject: [PATCH] change line separator to \n --- js/viewportDetect.js | 100 ++++++++++++------------ languages/de_DE/LC_MESSAGES/messages.mo | Bin 19256 -> 20080 bytes languages/en_US/LC_MESSAGES/messages.mo | Bin 643 -> 647 bytes languages/sk_SK/LC_MESSAGES/messages.mo | Bin 861 -> 879 bytes 4 files changed, 50 insertions(+), 50 deletions(-) diff --git a/js/viewportDetect.js b/js/viewportDetect.js index 4297e1f3..8dc3c914 100644 --- a/js/viewportDetect.js +++ b/js/viewportDetect.js @@ -1,50 +1,50 @@ -/*! -* viewportDetect Plugin -* v1.0 [jj 13Dec18] -* -* returns the current viewport ("xs", "sm", "md", or "lg") -* $.viewportDetect() -* -* create a callback function that is called whenever the viewport changes -* $.viewportDetect(function(currentViewport, previousViewport) { }); -*/ - -$(document).ready(function () { - // create some unobtrusive dom that bootstrap will show and hide depending on its media queries - $("body").append("
"); - - /* examples - // simply log the current viewport size every two seconds - setInterval(function () { - console.log("interval: " + $.viewportDetect()); }, - 2000); - - // a callback fn that gets called whenever the viewport changes - $.viewportDetect(function (vp, prevVp) { - console.log("onChange: " + prevVp + " -> " + vp); - }); - */ -}); - -(function ($) { - var _currentViewport = ""; - - $.viewportDetect = function(onChange) { - if (arguments.length == 0) { - return $("#viewportDetect div:visible").data("viewport"); - } - - // onChange is a function we want to call whenever the viewport changes - $(window).resize(function () { - var viewport = $("#viewportDetect div:visible").data("viewport"); - if (_currentViewport == "") _currentViewport = viewport; // the first change is not really a change at all - - if (_currentViewport != viewport) { - var prevViewport = _currentViewport; - _currentViewport = viewport; - onChange(_currentViewport, prevViewport); - } - }); - }; - -})(jQuery); +/*! +* viewportDetect Plugin +* v1.0 [jj 13Dec18] +* +* returns the current viewport ("xs", "sm", "md", or "lg") +* $.viewportDetect() +* +* create a callback function that is called whenever the viewport changes +* $.viewportDetect(function(currentViewport, previousViewport) { }); +*/ + +$(document).ready(function () { + // create some unobtrusive dom that bootstrap will show and hide depending on its media queries + $("body").append("
"); + + /* examples + // simply log the current viewport size every two seconds + setInterval(function () { + console.log("interval: " + $.viewportDetect()); }, + 2000); + + // a callback fn that gets called whenever the viewport changes + $.viewportDetect(function (vp, prevVp) { + console.log("onChange: " + prevVp + " -> " + vp); + }); + */ +}); + +(function ($) { + var _currentViewport = ""; + + $.viewportDetect = function(onChange) { + if (arguments.length == 0) { + return $("#viewportDetect div:visible").data("viewport"); + } + + // onChange is a function we want to call whenever the viewport changes + $(window).resize(function () { + var viewport = $("#viewportDetect div:visible").data("viewport"); + if (_currentViewport == "") _currentViewport = viewport; // the first change is not really a change at all + + if (_currentViewport != viewport) { + var prevViewport = _currentViewport; + _currentViewport = viewport; + onChange(_currentViewport, prevViewport); + } + }); + }; + +})(jQuery); diff --git a/languages/de_DE/LC_MESSAGES/messages.mo b/languages/de_DE/LC_MESSAGES/messages.mo index e341dc8178982999f6a223725db0a63c085e5a2b..763e7fcf7a0d42229d37489fb7313509e8a54d83 100644 GIT binary patch delta 4347 zcmZXY-)~h#5Xbknx3u^6H-%nGffkBhpsklup;p8e5Ni#Jhz5xgg3(0O;7?HE58@+_ z&50%^zVIg)W1<4DF+8gU)e7c>>5QlUNU zvaHt8y2MBnS_hYTDIJP~t4N8AD`;{U#L z!Rj*^(Lh=`q?JHgIi#5()d$+2Jl6fyrD?p;RURRYgtT7hknF#zju7eB)qIZ}h@An+ zH>8aWX?#hh2$8A!*+#Wxr;@I85b3mBLL^KiZ^*QlAnlFpVpqemaxkKYPWebk5kcBP zki3<&+Bez#uB8Uv9t!^uljYUj=xX(&dpM=*k{sSPVL5C@wIJ0PQf;7TWq)H^({?r~ z?QjXy9i(|mvYyZ?ezaN>BrnZPSsb z?Dy`==5r<_koFT)WPh>enq_}BJVCkvAY~ew^cWzGgtQ{4*x~CvExTfmro?q%Ifs-* zh*C(VwINexMQ7&X27q)@p&dT5BvZwaX;n@$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6S`r(9YU&dSHJFfi(YPGYJ&8OsLvXMMNRQ^f^ z$SgHnX>{(zpORYgdy+$bWbBdj#M1Yus_Y@nk(&2&544iiuJ38*G3+IINiu!6%T+2ZB!#};;Z3$#U{za-6(GRG#%P-*R5ZZKQy7yS{j=boJlhGOs?>%ypd; z@wBVgJ6Af_;%-|U%*uU>S|RzP+wuuMKt6Wuf8aE7#;y#e&iNCyUywNFZD-|pzkja~3y|2zQqKecKfDJ& delta 13 UcmZo?ZDwV;C&V&!BS$?G02^il+yDRo diff --git a/languages/sk_SK/LC_MESSAGES/messages.mo b/languages/sk_SK/LC_MESSAGES/messages.mo index 369da478aed31415fa960c62a49775e8345854db..765aad6a71c9d7fdae3fc10157aa13e4a9a30328 100644 GIT binary patch delta 108 zcmcc1_MR>I{rY;|fEWZI(yVY63!DYg0g+{gvpC_bWG1le I#y}os0F$E{p8x;= delta 66 zcmaFQc9)Iio)F8_i5xP9D;O9USb=yY5VHXBdLU*4;w?bT4#c~Gm=lN(1937F1H;*k H$vn&eo%;&%