Browse Source

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

tags/stw2018
Michael Weimann 11 months ago
parent
commit
6da0681c2d

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

@@ -254,15 +254,9 @@
254 254
       </xsl:attribute>
255 255
     </xsl:element> <!-- / Sharing cards -->
256 256
 
257
-    <script src="/scripts/jquery-1.10.2.min.js"></script>
257
+    <script src="/scripts/jquery-3.3.1.min.js"></script>
258 258
     <script src="/scripts/modernizr.custom.65251.js"></script>
259 259
 
260
-    <script>
261
-      hljs.tabReplace = "  ";
262
-//        hljs.initHighligtingOnLoad();
263
-// above line throws error: Uncaught TypeError: Object [object Object] has no method 'initHighligtingOnLoad'
264
-    </script>
265
-    
266 260
     <xsl:comment><![CDATA[[if lt IE 9]>
267 261
          <script src="/scripts/html5shiv.js"></script>
268 262
          <script src="/scripts/respond.min.js"></script>

+ 1
- 3
fellowship/default.xsl View File

@@ -177,7 +177,7 @@
177 177
       </xsl:element>
178 178
     </xsl:for-each>
179 179
     
180
-    <script src="/scripts/jquery-1.10.2.min.js"></script>
180
+    <script src="/scripts/jquery-3.3.1.min.js"></script>
181 181
     <script src="/scripts/modernizr.custom.30122.js"></script>
182 182
     <script src="/scripts/bootstrap-3.0.3.min.js"></script>
183 183
     <script src="/scripts/master.js"></script>
@@ -186,8 +186,6 @@
186 186
 
187 187
     <script>
188 188
       hljs.tabReplace = "  ";
189
-//        hljs.initHighligtingOnLoad();
190
-// above line throws error: Uncaught TypeError: Object [object Object] has no method 'initHighligtingOnLoad'
191 189
     </script>
192 190
     
193 191
     <xsl:comment>

+ 10
- 1
index.xsl View File

@@ -104,7 +104,16 @@
104 104
   </xsl:template>
105 105
 
106 106
   <xsl:template match="campaigns">
107
-    <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">
107
+    <div
108
+            id="campaigns-boxes"
109
+            class="cycle-slideshow"
110
+            data-cycle-log="false"
111
+            data-cycle-pause-on-hover="true"
112
+            data-cycle-speed="500"
113
+            data-cycle-timeout="9000"
114
+            data-cycle-slides="a"
115
+            data-cycle-fx="scrollHorz"
116
+            data-cycle-swipe="true">
108 117
       <div class="cycle-pager"/>
109 118
       
110 119
       <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
13 13
 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 */
14 14
 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 */
15 15
 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);
16
-//@ sourceMappingURL=jquery.cycle2.js.map

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


Loading…
Cancel
Save