413. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:09:24 +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.

413.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto_rtl/Smartwave_Megamenu/web/jssw_megamenu.js2018-09-04 11:25:08 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto_rtl/Smartwave_Megamenu/web/jssw_megamenu.js2021-01-11 01:28:28 +0000

413.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged8156
Changed49
Inserted00
Removed33

413.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

413.4 Active regular expressions

No regular expressions were active.

413.5 Comparison detail

1 (function (factory) { 1 (function (factory) {
2     'use strict'; 2     'use strict';
3  3 
4     if (typeof define === 'function' && define.amd) { 4     if (typeof define === 'function' && define.amd) {
5         define([ 5         define([
6             'jquery' 6             'jquery'
7         ], factory); 7         ], factory);
8     } else { 8     } else {
9         factory(window.jQuery); 9         factory(window.jQuery);
10     } 10     }
11 }(function ($) { 11 }(function ($) {
12     'use strict'; 12     'use strict';
13      13 
14     $.fn.swMegamenu = function() { 14     $.fn.swMegamenu = function() {
15         $(".navigation.sw-megamenu li.classic .submenu, .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){ 15         $(".navigation.sw-megamenu li.classic .submenu, .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){
16             $(this).css("right","-9999px"); 16             $(this).css("right","-9999px");
17             $(this).css("left","auto"); 17             $(this).css("left","auto");
18         }); 18         });
19         $(this).find("li.classic .subchildmenu > li.parent").mouseover(function(){ 19         $(this).find("li.classic .subchildmenu > li.parent").mouseover(function(){
20             var popup = $(this).children("ul.subchildmenu"); 20             var popup = $(this).children("ul.subchildmenu");
21             var w_width = $(window).innerWidth(); 21             var w_width = $(window).innerWidth();
22              22 
23             if(popup) { 23             if(popup) {
24                 var pos = $(this).offset(); 24                 var pos = $(this).offset();
25                 var c_width = $(popup).outerWidth(); 25                 var c_width = $(popup).outerWidth();
26                 if(w_width <= pos.left + $(this).outerWidth() + c_width) { 26                 if(w_width <= pos.left + $(this).outerWidth() + c_width) {
27                     $(popup).css("left","auto"); 27                     $(popup).css("left","auto");
28                     $(popup).css("right","100%"); 28                     $(popup).css("right","100%");
29                     $(popup).css("border-radius","0 6px 6px 6px");    
30                 } else { 29                 } else {
31                     $(popup).css("right","100%"); 30                     $(popup).css("right","100%");
32                     $(popup).css("left","auto"); 31                     $(popup).css("left","auto");
33                     $(popup).css("border-radius","6px 0 6px 6px");    
34                 } 32                 }
35             } 33             }
36         }); 34         });
37         $(this).find("li.staticwidth.parent,li.classic.parent").mouseover(function(){ 35         $(this).find("li.staticwidth.parent,li.classic.parent").mouseover(function(){
38             var popup = $(this).children(".submenu"); 36             var popup = $(this).children(".submenu");
39             var w_width = $(window).innerWidth(); 37             var w_width = $(window).innerWidth();
40              38 
41             if(popup) { 39             if(popup) {
42                 var pos = $(this).offset(); 40                 var pos = $(this).offset();
43                 var c_width = $(popup).outerWidth(); 41                 var c_width = $(popup).outerWidth();
44                 if(0 > pos.right - $(this).outerWidth() - c_width) { 42                 if(0 > pos.right - $(this).outerWidth() - c_width) {
45                     $(popup).css("left","0"); 43                     $(popup).css("left","0");
46                     $(popup).css("right","auto"); 44                     $(popup).css("right","auto");
47                     $(popup).css("border-radius","0 6px 6px 6px");    
48                 } else { 45                 } else {
49                     $(popup).css("left","auto"); 46                     $(popup).css("left","auto");
50                     $(popup).css("right","0");
 47                     $(popup).css("right","0"); 
51                     $(popup).css("border-radius","6px 0 6px 6px");    
52                 } 48                 }
53             } 49             }
54         }); 50         });
55         $(window).resize(function(){ 51         $(window).resize(function(){
56             $(".navigation.sw-megamenu li.classic .submenu, .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){ 52             $(".navigation.sw-megamenu li.classic .submenu, .navigation.sw-megamenu li.staticwidth .submenu, .navigation.sw-megamenu li.classic .subchildmenu .subchildmenu").each(function(){
57                 $(this).css("right","-9999px"); 53                 $(this).css("right","-9999px");
58                 $(this).css("left","auto"); 54                 $(this).css("left","auto");
59             }); 55             });
60         }); 56         });
61         $(".nav-toggle").off('click').on('click',function(e){ 57         $(".nav-toggle").off('click').on('click',function(e){
62             if(!$("html").hasClass("nav-open")) { 58             if(!$("html").hasClass("nav-open")) {
63                 $("html").addClass("nav-before-open"); 59                 $("html").addClass("nav-before-open");
64                 setTimeout(function(){ 60                 setTimeout(function(){
65                     $("html").addClass("nav-open"); 61                     $("html").addClass("nav-open");
66                 }, 300); 62                 }, 300);
67             } 63             }
68             else { 64             else {
69                 $("html").removeClass("nav-open"); 65                 $("html").removeClass("nav-open");
70                 setTimeout(function(){ 66                 setTimeout(function(){
71                     $("html").removeClass("nav-before-open"); 67                     $("html").removeClass("nav-before-open");
72                 }, 300); 68                 }, 300);
73             } 69             }
74         }); 70         });
75         $("li.ui-menu-item > .open-children-toggle").off("click").on("click", function(){ 71         $("li.ui-menu-item > .open-children-toggle").off("click").on("click", function(){
76             if(!$(this).parent().children(".submenu").hasClass("opened")) { 72             if(!$(this).parent().children(".submenu").hasClass("opened")) {
77                 $(this).parent().children(".submenu").addClass("opened"); 73                 $(this).parent().children(".submenu").addClass("opened");
78                 $(this).parent().children("a").addClass("ui-state-active"); 74                 $(this).parent().children("a").addClass("ui-state-active");
79             } 75             }
80             else { 76             else {
81                 $(this).parent().children(".submenu").removeClass("opened"); 77                 $(this).parent().children(".submenu").removeClass("opened");
82                 $(this).parent().children("a").removeClass("ui-state-active"); 78                 $(this).parent().children("a").removeClass("ui-state-active");
83             } 79             }
84         }); 80         });
85     }; 81     };
86 })); 82 }));