Produced by Araxis Merge on 2023-03-13 03:01:04 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v4.0.4/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/category | config.phtml | 2022-04-30 08:32:39 +0000 |
| 2 | Porto v4.0.5/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/category | config.phtml | 2022-04-30 08:32:39 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 162 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <script type="text/javascript"> | 1 | <script type="text/javascript"> | |||
| 2 | require([ | 2 | require([ | |||
| 3 | 'jquery' | 3 | 'jquery' | |||
| 4 | ], function ($) { | 4 | ], function ($) { | |||
| 5 | // sticky filter on mobile | 5 | // sticky filter on mobile | |||
| 6 | $(window).on('load',function(){ | 6 | $(window).on('load',function(){ | |||
| 7 | if ($('.toolbar').length > 0) { | 7 | if ($('.toolbar').length > 0) { | |||
| 8 | var init_filter_sticky = function() { | 8 | var init_filter_sticky = function() { | |||
| 9 | var $obj = $('#layer-product-list > .toolbar.toolbar-products,#layer-product-list .search.results > .toolbar.toolbar-products'); | 9 | var $obj = $('#layer-product-list > .toolbar.toolbar-products,#layer-product-list .search.results > .toolbar.toolbar-products'); | |||
| 10 | 10 | |||||
| 11 | if (!$obj.prev('.filter-placeholder').length) { | 11 | if (!$obj.prev('.filter-placeholder').length) { | |||
| 12 | $('<div class="filter-placeholder m-0"></div>').insertBefore($obj); | 12 | $('<div class="filter-placeholder m-0"></div>').insertBefore($obj); | |||
| 13 | } | 13 | } | |||
| 14 | var sticky_height = 0; | 14 | var sticky_height = 0; | |||
| 15 | if($('.page-header.sticky-header').length > 0){ | 15 | if($('.page-header.sticky-header').length > 0){ | |||
| 16 | sticky_height = $('.page-header.sticky-header .header-main').outerHeight(); | 16 | sticky_height = $('.page-header.sticky-header .header-main').outerHeight(); | |||
| 17 | } | 17 | } | |||
| 18 | var $ph = $obj.prev('.filter-placeholder'), | 18 | var $ph = $obj.prev('.filter-placeholder'), | |||
| 19 | scrollTop = $(window).scrollTop(), | 19 | scrollTop = $(window).scrollTop(), | |||
| 20 | offset = sticky_height; | 20 | offset = sticky_height; | |||
| 21 | if ($ph.offset().top <= scrollTop + offset) { | 21 | if ($ph.offset().top <= scrollTop + offset) { | |||
| 22 | $ph.css('height', $obj.outerHeight() + parseInt($obj.css('margin-bottom'))); | 22 | $ph.css('height', $obj.outerHeight() + parseInt($obj.css('margin-bottom'))); | |||
| 23 | $obj.addClass('sticky').css('top', offset); | 23 | $obj.addClass('sticky').css('top', offset); | |||
| 24 | } else { | 24 | } else { | |||
| 25 | $ph.css('height', ''); | 25 | $ph.css('height', ''); | |||
| 26 | $obj.removeClass('sticky'); | 26 | $obj.removeClass('sticky'); | |||
| 27 | } | 27 | } | |||
| 28 | }; | 28 | }; | |||
| 29 | if (window.innerWidth < 992) { | 29 | if (window.innerWidth < 992) { | |||
| 30 | window.removeEventListener('scroll', init_filter_sticky); | 30 | window.removeEventListener('scroll', init_filter_sticky); | |||
| 31 | window.addEventListener('scroll', init_filter_sticky, {passive: true}); | 31 | window.addEventListener('scroll', init_filter_sticky, {passive: true}); | |||
| 32 | init_filter_sticky(); | 32 | init_filter_sticky(); | |||
| 33 | } | 33 | } | |||
| 34 | $(window).on('resize', function() { | 34 | $(window).on('resize', function() { | |||
| 35 | if (window.innerWidth < 992) { | 35 | if (window.innerWidth < 992) { | |||
| 36 | window.removeEventListener('scroll', init_filter_sticky); | 36 | window.removeEventListener('scroll', init_filter_sticky); | |||
| 37 | window.addEventListener('scroll', init_filter_sticky, {passive: true}); | 37 | window.addEventListener('scroll', init_filter_sticky, {passive: true}); | |||
| 38 | }else{ | 38 | }else{ | |||
| 39 | window.removeEventListener('scroll', init_filter_sticky); | 39 | window.removeEventListener('scroll', init_filter_sticky); | |||
| 40 | $('#layer-product-list > .toolbar.toolbar-products').removeClass('sticky').css('top', '').prev('.filter-placeholder').css('height', ''); | 40 | $('#layer-product-list > .toolbar.toolbar-products').removeClass('sticky').css('top', '').prev('.filter-placeholder').css('height', ''); | |||
| 41 | } | 41 | } | |||
| 42 | }); | 42 | }); | |||
| 43 | } | 43 | } | |||
| 44 | }); | 44 | }); | |||
| 45 | // filter popup events | 45 | // filter popup events | |||
| 46 | » » $(document).on('click', '.sidebar-toggle', function(e) { | 46 | » » $(document).on('click', '.sidebar-toggle', function(e) { | |||
| 47 | » » » e.preventDefault(); | 47 | » » » e.preventDefault(); | |||
| 48 | » » » var $html = $('html'); | 48 | » » » var $html = $('html'); | |||
| 49 | var $obj = $('.columns .mobile-sidebar'); | 49 | var $obj = $('.columns .mobile-sidebar'); | |||
| 50 | if (!$obj.parents().find('.sidebar-overlay').length) { | 50 | if (!$obj.parents().find('.sidebar-overlay').length) { | |||
| 51 | 51 | |||||
| 52 | $('<div class="sidebar-overlay"></div>').insertBefore($obj); | 52 | $('<div class="sidebar-overlay"></div>').insertBefore($obj); | |||
| 53 | } | 53 | } | |||
| 54 | if($('#ln_overlay').length) { | 54 | if($('#ln_overlay').length) { | |||
| 55 | var Isloader = $('#ln_overlay').detach(); | 55 | var Isloader = $('#ln_overlay').detach(); | |||
| 56 | if (!$obj.prev('#ln_overlay').length) { | 56 | if (!$obj.prev('#ln_overlay').length) { | |||
| 57 | Isloader.insertBefore($obj); | 57 | Isloader.insertBefore($obj); | |||
| 58 | } | 58 | } | |||
| 59 | } | 59 | } | |||
| 60 | » » » if ($html.hasClass('sidebar-opened')) { | 60 | » » » if ($html.hasClass('sidebar-opened')) { | |||
| 61 | » » » » $html.removeClass('sidebar-opened'); | 61 | » » » » $html.removeClass('sidebar-opened'); | |||
| 62 | » » » » $('.sidebar-overlay').removeClass('active'); | 62 | » » » » $('.sidebar-overlay').removeClass('active'); | |||
| 63 | » » » } else { | 63 | » » » } else { | |||
| 64 | » » » » $html.addClass('sidebar-opened'); | 64 | » » » » $html.addClass('sidebar-opened'); | |||
| 65 | » » » » $('.sidebar-overlay').addClass('active'); | 65 | » » » » $('.sidebar-overlay').addClass('active'); | |||
| 66 | » » » } | 66 | » » » } | |||
| 67 | » » }); | 67 | » » }); | |||
| 68 | 68 | |||||
| 69 | » » $(document.body).on('click', '.sidebar-overlay', function() { | 69 | » » $(document.body).on('click', '.sidebar-overlay', function() { | |||
| 70 | » » » $('html').removeClass('sidebar-opened'); | 70 | » » » $('html').removeClass('sidebar-opened'); | |||
| 71 | » » » $('html').removeClass('filter-sidebar-opened'); | 71 | » » » $('html').removeClass('filter-sidebar-opened'); | |||
| 72 | » » » $(this).removeClass('active'); | 72 | » » » $(this).removeClass('active'); | |||
| 73 | » » }); | 73 | » » }); | |||
| 74 | 74 | |||||
| 75 | » » $(window).on('resize', function() { | 75 | » » $(window).on('resize', function() { | |||
| 76 | » » » if (window.innerWidth > 991) { | 76 | » » » if (window.innerWidth > 991) { | |||
| 77 | » » » » $('.sidebar-overlay').click(); | 77 | » » » » $('.sidebar-overlay').click(); | |||
| 78 | » » » } | 78 | » » » } | |||
| 79 | » » }); | 79 | » » }); | |||
| 80 | }); | 80 | }); | |||
| 81 | </script> | 81 | </script> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.