fix
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
6 changed files
with
19 additions
and
28 deletions
| ... | @@ -26205,7 +26205,7 @@ | ... | @@ -26205,7 +26205,7 @@ |
| 26205 | }); | 26205 | }); |
| 26206 | 26206 | ||
| 26207 | // Add your custom JS here. | 26207 | // Add your custom JS here. |
| 26208 | var myLazyLoad = new LazyLoad(); | 26208 | new LazyLoad(); |
| 26209 | window.tz_checkVisible = function (elm, evalType, offset, heightBuffer) { | 26209 | window.tz_checkVisible = function (elm, evalType, offset, heightBuffer) { |
| 26210 | evalType = evalType || "visible"; | 26210 | evalType = evalType || "visible"; |
| 26211 | var vpH = jQuery(window).height(), | 26211 | var vpH = jQuery(window).height(), |
| ... | @@ -26234,25 +26234,21 @@ | ... | @@ -26234,25 +26234,21 @@ |
| 26234 | $('html, body, #page').animate({ | 26234 | $('html, body, #page').animate({ |
| 26235 | scrollTop: $("#relevant-resources").offset().top - 250 | 26235 | scrollTop: $("#relevant-resources").offset().top - 250 |
| 26236 | }, 100); | 26236 | }, 100); |
| 26237 | setTimeout(myLazyLoad.update(), 2000); | ||
| 26238 | }); | 26237 | }); |
| 26239 | (function () { | 26238 | (function () { |
| 26240 | var origOpen = XMLHttpRequest.prototype.open; | 26239 | var origOpen = XMLHttpRequest.prototype.open; |
| 26241 | XMLHttpRequest.prototype.open = function (method, url) { | 26240 | XMLHttpRequest.prototype.open = function (method, url) { |
| 26242 | this.addEventListener('load', function () { | 26241 | this.addEventListener('load', function () { |
| 26243 | console.log('XHR finished loading', method, url); | ||
| 26244 | if (url.includes('search')) { | 26242 | if (url.includes('search')) { |
| 26245 | setTimeout(function () { | 26243 | setTimeout(function () { |
| 26246 | $('html, body, #page').animate({ | 26244 | $('html, body, #page').animate({ |
| 26247 | scrollTop: $("#search-wrapper").offset().top - 250 | 26245 | scrollTop: $("#search-wrapper").offset().top - 250 |
| 26248 | }, 100); | 26246 | }, 100); |
| 26249 | console.log('click'); | 26247 | console.log('click'); |
| 26250 | }, 2000); | 26248 | }, 100); |
| 26251 | } | 26249 | } |
| 26252 | }); | 26250 | }); |
| 26253 | this.addEventListener('error', function () { | 26251 | this.addEventListener('error', function () {}); |
| 26254 | console.log('XHR errored out', method, url); | ||
| 26255 | }); | ||
| 26256 | origOpen.apply(this, arguments); | 26252 | origOpen.apply(this, arguments); |
| 26257 | }; | 26253 | }; |
| 26258 | })(); | 26254 | })(); |
| ... | @@ -26260,12 +26256,14 @@ | ... | @@ -26260,12 +26256,14 @@ |
| 26260 | document.addEventListener('wpcf7mailsent', function (event) { | 26256 | document.addEventListener('wpcf7mailsent', function (event) { |
| 26261 | jQuery('.appArea.responsive').hide(); | 26257 | jQuery('.appArea.responsive').hide(); |
| 26262 | }, true); | 26258 | }, true); |
| 26263 | jQuery(document).ready(function ($) { | 26259 | |
| 26264 | $(document).on("click", ".pojo-a11y-toolbar-link", function (e) { | 26260 | // jQuery(document).ready(function($) { |
| 26265 | console.log('click'); | 26261 | // $(document).on("click", ".pojo-a11y-toolbar-link", function(e){ |
| 26266 | $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open'); | 26262 | // console.log('click'); |
| 26267 | }); | 26263 | // $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open'); |
| 26268 | }); | 26264 | // }); |
| 26265 | |||
| 26266 | // }); | ||
| 26269 | 26267 | ||
| 26270 | exports.Alert = alert$1; | 26268 | exports.Alert = alert$1; |
| 26271 | exports.Button = button; | 26269 | exports.Button = button; | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -4,8 +4,6 @@ import LazyLoad from "vanilla-lazyload"; | ... | @@ -4,8 +4,6 @@ import LazyLoad from "vanilla-lazyload"; |
| 4 | import DataTable from 'datatables.net-dt'; | 4 | import DataTable from 'datatables.net-dt'; |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | |||
| 8 | |||
| 9 | import "./_menu_mobile"; | 7 | import "./_menu_mobile"; |
| 10 | import "./_search"; | 8 | import "./_search"; |
| 11 | import "./_header_menu"; | 9 | import "./_header_menu"; |
| ... | @@ -52,7 +50,6 @@ jQuery(document).ready(function($) { | ... | @@ -52,7 +50,6 @@ jQuery(document).ready(function($) { |
| 52 | $('html, body, #page').animate({ | 50 | $('html, body, #page').animate({ |
| 53 | scrollTop: $("#relevant-resources").offset().top - 250 | 51 | scrollTop: $("#relevant-resources").offset().top - 250 |
| 54 | }, 100); | 52 | }, 100); |
| 55 | setTimeout( myLazyLoad.update(), 2000); | ||
| 56 | }); | 53 | }); |
| 57 | 54 | ||
| 58 | 55 | ||
| ... | @@ -62,20 +59,16 @@ jQuery(document).ready(function($) { | ... | @@ -62,20 +59,16 @@ jQuery(document).ready(function($) { |
| 62 | var origOpen = XMLHttpRequest.prototype.open; | 59 | var origOpen = XMLHttpRequest.prototype.open; |
| 63 | XMLHttpRequest.prototype.open = function(method, url) { | 60 | XMLHttpRequest.prototype.open = function(method, url) { |
| 64 | this.addEventListener('load', function() { | 61 | this.addEventListener('load', function() { |
| 65 | console.log('XHR finished loading', method, url); | ||
| 66 | if(url.includes('search')){ | 62 | if(url.includes('search')){ |
| 67 | setTimeout(function(){ | 63 | setTimeout(function(){ |
| 68 | $('html, body, #page').animate({ | 64 | $('html, body, #page').animate({ |
| 69 | scrollTop: $("#search-wrapper").offset().top - 250 | 65 | scrollTop: $("#search-wrapper").offset().top - 250 |
| 70 | }, 100); | 66 | }, 100); |
| 71 | console.log('click'); | 67 | console.log('click'); |
| 72 | }, 2000); | 68 | }, 100); |
| 73 | } | 69 | } |
| 74 | |||
| 75 | }); | 70 | }); |
| 76 | |||
| 77 | this.addEventListener('error', function() { | 71 | this.addEventListener('error', function() { |
| 78 | console.log('XHR errored out', method, url); | ||
| 79 | }); | 72 | }); |
| 80 | origOpen.apply(this, arguments); | 73 | origOpen.apply(this, arguments); |
| 81 | }; | 74 | }; |
| ... | @@ -90,11 +83,11 @@ document.addEventListener( 'wpcf7mailsent', function( event ) { | ... | @@ -90,11 +83,11 @@ document.addEventListener( 'wpcf7mailsent', function( event ) { |
| 90 | }, true ); | 83 | }, true ); |
| 91 | 84 | ||
| 92 | 85 | ||
| 93 | jQuery(document).ready(function($) { | 86 | // jQuery(document).ready(function($) { |
| 94 | $(document).on("click", ".pojo-a11y-toolbar-link", function(e){ | 87 | // $(document).on("click", ".pojo-a11y-toolbar-link", function(e){ |
| 95 | console.log('click'); | 88 | // console.log('click'); |
| 96 | $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open'); | 89 | // $('.gt_options').hasClass('gt-open') ? $('.gt_options').removeClass('gt-open') : $('.gt_options').addClass('gt-open'); |
| 97 | }); | 90 | // }); |
| 98 | 91 | ||
| 99 | }); | 92 | // }); |
| 100 | 93 | ... | ... |
-
Please register or sign in to post a comment