Produced by Araxis Merge on 2021-07-21 10:22:12 +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 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/web/js | responsive.js | 2016-08-30 23:55:12 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.1/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/web/js | responsive.js | 2016-08-30 23:55:12 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 166 |
| 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 | /** | 1 | /** | |||
| 2 | * Copyright © 2015 Magento. All rights reserved. | 2 | * Copyright © 2015 Magento. All rights reserved. | |||
| 3 | * See COPYING.txt for license details. | 3 | * See COPYING.txt for license details. | |||
| 4 | */ | 4 | */ | |||
| 5 | 5 | |||||
| 6 | define([ | 6 | define([ | |||
| 7 | 'jquery', | 7 | 'jquery', | |||
| 8 | 'matchMedia', | 8 | 'matchMedia', | |||
| 9 | 'mage/tabs', | 9 | 'mage/tabs', | |||
| 10 | 'domReady!' | 10 | 'domReady!' | |||
| 11 | ], function ($, mediaCheck) { | 11 | ], function ($, mediaCheck) { | |||
| 12 | 'use strict'; | 12 | 'use strict'; | |||
| 13 | 13 | |||||
| 14 | mediaCheck({ | 14 | mediaCheck({ | |||
| 15 | media: '(min-width: 768px)', | 15 | media: '(min-width: 768px)', | |||
| 16 | // Switch to Desktop Version | 16 | // Switch to Desktop Version | |||
| 17 | entry: function () { | 17 | entry: function () { | |||
| 18 | (function () { | 18 | (function () { | |||
| 19 | 19 | |||||
| 20 | var productInfoMain = $('.product-info-main'), | 20 | var productInfoMain = $('.product-info-main'), | |||
| 21 | productInfoAdditional = $('#product-info-additional'); | 21 | productInfoAdditional = $('#product-info-additional'); | |||
| 22 | 22 | |||||
| 23 | if (productInfoAdditional.length) { | 23 | if (productInfoAdditional.length) { | |||
| 24 | productInfoAdditional.addClass('hidden'); | 24 | productInfoAdditional.addClass('hidden'); | |||
| 25 | productInfoMain.removeClass('responsive'); | 25 | productInfoMain.removeClass('responsive'); | |||
| 26 | } | 26 | } | |||
| 27 | 27 | |||||
| 28 | })(); | 28 | })(); | |||
| 29 | 29 | |||||
| 30 | var galleryElement = $('[data-role=media-gallery]'); | 30 | var galleryElement = $('[data-role=media-gallery]'); | |||
| 31 | 31 | |||||
| 32 | if (galleryElement.length && galleryElement.data('mageZoom')) { | 32 | if (galleryElement.length && galleryElement.data('mageZoom')) { | |||
| 33 | galleryElement.zoom('enable'); | 33 | galleryElement.zoom('enable'); | |||
| 34 | } | 34 | } | |||
| 35 | 35 | |||||
| 36 | if (galleryElement.length && galleryElement.data('mageGallery')) { | 36 | if (galleryElement.length && galleryElement.data('mageGallery')) { | |||
| 37 | galleryElement.gallery('option', 'disableLinks', true); | 37 | galleryElement.gallery('option', 'disableLinks', true); | |||
| 38 | galleryElement.gallery('option', 'showNav', false); | 38 | galleryElement.gallery('option', 'showNav', false); | |||
| 39 | galleryElement.gallery('option', 'showThumbs', true); | 39 | galleryElement.gallery('option', 'showThumbs', true); | |||
| 40 | } | 40 | } | |||
| 41 | 41 | |||||
| 42 | setTimeout(function () { | 42 | setTimeout(function () { | |||
| 43 | » » » » if(!$('.product.info.detailed').hasClass("sticky")) | 43 | » » » » if(!$('.product.info.detailed').hasClass("sticky")) | |||
| 44 | » $('.product.data.items').tabs('option', 'openOnFocus', true); | 44 | » $('.product.data.items').tabs('option', 'openOnFocus', true); | |||
| 45 | }, 500); | 45 | }, 500); | |||
| 46 | }, | 46 | }, | |||
| 47 | // Switch to Mobile Version | 47 | // Switch to Mobile Version | |||
| 48 | exit: function () { | 48 | exit: function () { | |||
| 49 | $('.action.toggle.checkout.progress') | 49 | $('.action.toggle.checkout.progress') | |||
| 50 | .on('click.gotoCheckoutProgress', function () { | 50 | .on('click.gotoCheckoutProgress', function () { | |||
| 51 | var myWrapper = '#checkout-progress-wrapper'; | 51 | var myWrapper = '#checkout-progress-wrapper'; | |||
| 52 | scrollTo(myWrapper + ' .title'); | 52 | scrollTo(myWrapper + ' .title'); | |||
| 53 | $(myWrapper + ' .title').addClass('active'); | 53 | $(myWrapper + ' .title').addClass('active'); | |||
| 54 | $(myWrapper + ' .content').show(); | 54 | $(myWrapper + ' .content').show(); | |||
| 55 | }); | 55 | }); | |||
| 56 | 56 | |||||
| 57 | $('body') | 57 | $('body') | |||
| 58 | .on('click.checkoutProgress', '#checkout-progress-wrapper .title', function () { | 58 | .on('click.checkoutProgress', '#checkout-progress-wrapper .title', function () { | |||
| 59 | $(this).toggleClass('active'); | 59 | $(this).toggleClass('active'); | |||
| 60 | $('#checkout-progress-wrapper .content').toggle(); | 60 | $('#checkout-progress-wrapper .content').toggle(); | |||
| 61 | }); | 61 | }); | |||
| 62 | 62 | |||||
| 63 | var galleryElement = $('[data-role=media-gallery]'); | 63 | var galleryElement = $('[data-role=media-gallery]'); | |||
| 64 | 64 | |||||
| 65 | setTimeout(function () { | 65 | setTimeout(function () { | |||
| 66 | if (galleryElement.length && galleryElement.data('mageZoom')) { | 66 | if (galleryElement.length && galleryElement.data('mageZoom')) { | |||
| 67 | galleryElement.zoom('disable'); | 67 | galleryElement.zoom('disable'); | |||
| 68 | } | 68 | } | |||
| 69 | 69 | |||||
| 70 | if (galleryElement.length && galleryElement.data('mageGallery')) { | 70 | if (galleryElement.length && galleryElement.data('mageGallery')) { | |||
| 71 | galleryElement.gallery('option', 'disableLinks', false); | 71 | galleryElement.gallery('option', 'disableLinks', false); | |||
| 72 | galleryElement.gallery('option', 'showNav', true); | 72 | galleryElement.gallery('option', 'showNav', true); | |||
| 73 | galleryElement.gallery('option', 'showThumbs', false); | 73 | galleryElement.gallery('option', 'showThumbs', false); | |||
| 74 | } | 74 | } | |||
| 75 | }, 2000); | 75 | }, 2000); | |||
| 76 | 76 | |||||
| 77 | setTimeout(function () { | 77 | setTimeout(function () { | |||
| 78 | » » » » if(!$('.product.info.detailed').hasClass("sticky")) | 78 | » » » » if(!$('.product.info.detailed').hasClass("sticky")) | |||
| 79 | » » » » » $('.product.data.items').tabs('option', 'openOnFocus', false); | 79 | » » » » » $('.product.data.items').tabs('option', 'openOnFocus', false); | |||
| 80 | }, 500); | 80 | }, 500); | |||
| 81 | } | 81 | } | |||
| 82 | }); | 82 | }); | |||
| 83 | }); | 83 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.