fix
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
6 changed files
with
31 additions
and
3 deletions
| ... | @@ -26236,14 +26236,26 @@ | ... | @@ -26236,14 +26236,26 @@ |
| 26236 | }, 100); | 26236 | }, 100); |
| 26237 | setTimeout(myLazyLoad.update(), 2000); | 26237 | setTimeout(myLazyLoad.update(), 2000); |
| 26238 | }); | 26238 | }); |
| 26239 | $(document).on("click", ".page-item ", function (e) { | 26239 | (function () { |
| 26240 | var origOpen = XMLHttpRequest.prototype.open; | ||
| 26241 | XMLHttpRequest.prototype.open = function (method, url) { | ||
| 26242 | this.addEventListener('load', function () { | ||
| 26243 | console.log('XHR finished loading', method, url); | ||
| 26244 | if (url.includes('search')) { | ||
| 26240 | setTimeout(function () { | 26245 | setTimeout(function () { |
| 26241 | $('html, body, #page').animate({ | 26246 | $('html, body, #page').animate({ |
| 26242 | scrollTop: $("#search-wrapper").offset().top - 250 | 26247 | scrollTop: $("#search-wrapper").offset().top - 250 |
| 26243 | }, 100); | 26248 | }, 100); |
| 26244 | console.log('click'); | 26249 | console.log('click'); |
| 26245 | }, 2000); | 26250 | }, 2000); |
| 26251 | } | ||
| 26252 | }); | ||
| 26253 | this.addEventListener('error', function () { | ||
| 26254 | console.log('XHR errored out', method, url); | ||
| 26246 | }); | 26255 | }); |
| 26256 | origOpen.apply(this, arguments); | ||
| 26257 | }; | ||
| 26258 | })(); | ||
| 26247 | }); | 26259 | }); |
| 26248 | document.addEventListener('wpcf7mailsent', function (event) { | 26260 | document.addEventListener('wpcf7mailsent', function (event) { |
| 26249 | jQuery('.appArea.responsive').hide(); | 26261 | jQuery('.appArea.responsive').hide(); | ... | ... |
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.
| ... | @@ -56,14 +56,30 @@ jQuery(document).ready(function($) { | ... | @@ -56,14 +56,30 @@ jQuery(document).ready(function($) { |
| 56 | }); | 56 | }); |
| 57 | 57 | ||
| 58 | 58 | ||
| 59 | $(document).on("click", ".page-item ", function(e){ | 59 | |
| 60 | |||
| 61 | (function() { | ||
| 62 | var origOpen = XMLHttpRequest.prototype.open; | ||
| 63 | XMLHttpRequest.prototype.open = function(method, url) { | ||
| 64 | this.addEventListener('load', function() { | ||
| 65 | console.log('XHR finished loading', method, url); | ||
| 66 | if(url.includes('search')){ | ||
| 60 | setTimeout(function(){ | 67 | setTimeout(function(){ |
| 61 | $('html, body, #page').animate({ | 68 | $('html, body, #page').animate({ |
| 62 | scrollTop: $("#search-wrapper").offset().top - 250 | 69 | scrollTop: $("#search-wrapper").offset().top - 250 |
| 63 | }, 100); | 70 | }, 100); |
| 64 | console.log('click'); | 71 | console.log('click'); |
| 65 | }, 2000); | 72 | }, 2000); |
| 73 | } | ||
| 74 | |||
| 75 | }); | ||
| 76 | |||
| 77 | this.addEventListener('error', function() { | ||
| 78 | console.log('XHR errored out', method, url); | ||
| 66 | }); | 79 | }); |
| 80 | origOpen.apply(this, arguments); | ||
| 81 | }; | ||
| 82 | })(); | ||
| 67 | 83 | ||
| 68 | }); | 84 | }); |
| 69 | 85 | ... | ... |
-
Please register or sign in to post a comment