Browse Source

Upgrades jquery to version 3 and silences console outputs (#398)

tags/stw2018
Michael Weimann 1 year ago
parent
commit
6da0681c2d

+ 1
- 7
build/xslt/fsfe_head.xsl View File

@@ -254,15 +254,9 @@
</xsl:attribute>
</xsl:element> <!-- / Sharing cards -->

<script src="/scripts/jquery-1.10.2.min.js"></script>
<script src="/scripts/jquery-3.3.1.min.js"></script>
<script src="/scripts/modernizr.custom.65251.js"></script>

<script>
hljs.tabReplace = " ";
// hljs.initHighligtingOnLoad();
// above line throws error: Uncaught TypeError: Object [object Object] has no method 'initHighligtingOnLoad'
</script>
<xsl:comment><![CDATA[[if lt IE 9]>
<script src="/scripts/html5shiv.js"></script>
<script src="/scripts/respond.min.js"></script>

+ 1
- 3
fellowship/default.xsl View File

@@ -177,7 +177,7 @@
</xsl:element>
</xsl:for-each>
<script src="/scripts/jquery-1.10.2.min.js"></script>
<script src="/scripts/jquery-3.3.1.min.js"></script>
<script src="/scripts/modernizr.custom.30122.js"></script>
<script src="/scripts/bootstrap-3.0.3.min.js"></script>
<script src="/scripts/master.js"></script>
@@ -186,8 +186,6 @@

<script>
hljs.tabReplace = " ";
// hljs.initHighligtingOnLoad();
// above line throws error: Uncaught TypeError: Object [object Object] has no method 'initHighligtingOnLoad'
</script>
<xsl:comment>

+ 10
- 1
index.xsl View File

@@ -104,7 +104,16 @@
</xsl:template>

<xsl:template match="campaigns">
<div id="campaigns-boxes" class="cycle-slideshow" data-cycle-pause-on-hover="true" data-cycle-speed="500" data-cycle-timeout="9000" data-cycle-slides="a" data-cycle-fx="scrollHorz" data-cycle-swipe="true">
<div
id="campaigns-boxes"
class="cycle-slideshow"
data-cycle-log="false"
data-cycle-pause-on-hover="true"
data-cycle-speed="500"
data-cycle-timeout="9000"
data-cycle-slides="a"
data-cycle-fx="scrollHorz"
data-cycle-swipe="true">
<div class="cycle-pager"/>
<xsl:for-each select="/buildinfo/document/set/campaign[@running = 'yes']">

+ 0
- 6
scripts/jquery-1.10.2.min.js
File diff suppressed because it is too large
View File


+ 2
- 0
scripts/jquery-3.3.1.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
scripts/jquery-3.3.1.min.map
File diff suppressed because it is too large
View File


+ 0
- 1
scripts/jquery.cycle2.min.js View File

@@ -13,4 +13,3 @@ function(e){"use strict";function t(t,i,n){var s,o=t.API.getComponent("pager");o
function(e){"use strict";e.extend(e.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),e(document).on("cycle-initialized",function(e,t){if(t.API.getComponent("next").on(t.nextEvent,function(e){e.preventDefault(),t.API.next()}),t.API.getComponent("prev").on(t.prevEvent,function(e){e.preventDefault(),t.API.prev()}),t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",n=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t.API.next()}),t.container.on(n,function(){t.API.prev()})}}),e(document).on("cycle-update-view",function(e,t){if(!t.allowWrap){var i=t.disabledClass,n=t.API.getComponent("next"),s=t.API.getComponent("prev"),o=t._prevBoundry||0,c=void 0!==t._nextBoundry?t._nextBoundry:t.slideCount-1;t.currSlide==c?n.addClass(i).prop("disabled",!0):n.removeClass(i).prop("disabled",!1),t.currSlide===o?s.addClass(i).prop("disabled",!0):s.removeClass(i).prop("disabled",!1)}}),e(document).on("cycle-destroyed",function(e,t){t.API.getComponent("prev").off(t.nextEvent),t.API.getComponent("next").off(t.prevEvent),t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),/*! progressive loader plugin for Cycle2; version: 20130315 */
function(e){"use strict";e.extend(e.fn.cycle.defaults,{progressive:!1}),e(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var n,s,o=i.API,c=o.next,r=o.prev,a=o.prepareTx,l=e.type(i.progressive);if("array"==l)n=i.progressive;else if(e.isFunction(i.progressive))n=i.progressive(i);else if("string"==l){if(s=e(i.progressive),n=e.trim(s.html()),!n)return;if(/^(\[)/.test(n))try{n=e.parseJSON(n)}catch(d){return o.log("error parsing progressive slides",d),void 0}else n=n.split(RegExp(s.data("cycle-split")||"\n")),n[n.length-1]||n.pop()}a&&(o.prepareTx=function(e,t){var s,o;return e||0===n.length?(a.apply(i.API,[e,t]),void 0):(t&&i.currSlide==i.slideCount-1?(o=n[0],n=n.slice(1),i.container.one("cycle-slide-added",function(e,t){setTimeout(function(){t.API.advanceSlide(1)},50)}),i.API.add(o)):t||0!==i.currSlide?a.apply(i.API,[e,t]):(s=n.length-1,o=n[s],n=n.slice(0,s),i.container.one("cycle-slide-added",function(e,t){setTimeout(function(){t.currSlide=1,t.API.advanceSlide(-1)},50)}),i.API.add(o,!0)),void 0)}),c&&(o.next=function(){var e=this.opts();if(n.length&&e.currSlide==e.slideCount-1){var t=n[0];n=n.slice(1),e.container.one("cycle-slide-added",function(e,t){c.apply(t.API),t.container.removeClass("cycle-loading")}),e.container.addClass("cycle-loading"),e.API.add(t)}else c.apply(e.API)}),r&&(o.prev=function(){var e=this.opts();if(n.length&&0===e.currSlide){var t=n.length-1,i=n[t];n=n.slice(0,t),e.container.one("cycle-slide-added",function(e,t){t.currSlide=1,t.API.advanceSlide(-1),t.container.removeClass("cycle-loading")}),e.container.addClass("cycle-loading"),e.API.add(i,!0)}else r.apply(e.API)})}})}(jQuery),/*! tmpl plugin for Cycle2; version: 20121227 */
function(e){"use strict";e.extend(e.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),e.extend(e.fn.cycle.API,{tmpl:function(t,i){var n=RegExp(i.tmplRegex||e.fn.cycle.defaults.tmplRegex,"g"),s=e.makeArray(arguments);return s.shift(),t.replace(n,function(t,i){var n,o,c,r,a=i.split(".");for(n=0;s.length>n;n++)if(c=s[n]){if(a.length>1)for(r=c,o=0;a.length>o;o++)c=r,r=r[a[o]]||i;else r=c[i];if(e.isFunction(r))return r.apply(c,s);if(void 0!==r&&null!==r&&r!=i)return r}return i})}})}(jQuery);
//@ sourceMappingURL=jquery.cycle2.js.map

+ 0
- 2
scripts/jquery.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save