Produced by Araxis Merge on Fri Dec 13 16:40:56 2019 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. 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 v.3.2.1\Theme Files\Magento 1.x\Porto Theme\skin\frontend\smartwave\porto\js | porto.js | Mon Jun 25 17:34:16 2018 UTC |
| 2 | Porto v.3.2.2\Theme Files\Magento 1.x\Porto Theme\skin\frontend\smartwave\porto\js | porto.js | Mon Nov 25 15:42:01 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 8 | 544 |
| Changed | 4 | 14 |
| Inserted | 1 | 9 |
| Removed | 2 | 4 |
| Whitespace | All differences in whitespace within lines are ignored |
|---|---|
| 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 |
No regular expressions were active.
| 1 | function s etNewslett erCookie() { | 1 | function s etNewslett erCookie() { | |||
| 2 | jQ uery.cooki e('newslet ter_popup' ,'dontshow itagain'); | 2 | jQ uery.cooki e('newslet ter_popup' ,'dontshow itagain'); | |||
| 3 | } | 3 | } | |||
| 4 | jQuery.fn. extend({ | 4 | jQuery.fn. extend({ | |||
| 5 | scroll ToMe: func tion(){ | 5 | scroll ToMe: func tion(){ | |||
| 6 | if (jQuery(th is).length ){ | 6 | if (jQuery(th is).length ){ | |||
| 7 | var top = jQuery(t his).offse t().top - 100; | 7 | var top = jQuery(t his).offse t().top - 100; | |||
| 8 | jQuery(' html,body' ).animate( {scrollTop : top}, 30 0); | 8 | jQuery(' html,body' ).animate( {scrollTop : top}, 30 0); | |||
| 9 | } | 9 | } | |||
| 10 | }, | 10 | }, | |||
| 11 | scroll ToJustMe: function() { | 11 | scroll ToJustMe: function() { | |||
| 12 | if (jQuery(th is).length ){ | 12 | if (jQuery(th is).length ){ | |||
| 13 | var top = jQuery(t his).offse t().top; | 13 | var top = jQuery(t his).offse t().top; | |||
| 14 | jQuery(' html,body' ).animate( {scrollTop : top}, 30 0); | 14 | jQuery(' html,body' ).animate( {scrollTop : top}, 30 0); | |||
| 15 | } | 15 | } | |||
| 16 | } | 16 | } | |||
| 17 | }); | 17 | }); | |||
| 18 | function p ortoAlert( msg){ | 18 | function p ortoAlert( msg){ | |||
| 19 | jQ uery('<div class="no te-msg con tainer ale rt" style= "display:n one;positi on:fixed;t op:30px;ma rgin-left: -30px;z-in dex:9999;" >'+msg+'</ div>').app endTo("div .main"); | 19 | jQ uery('<div class="no te-msg con tainer ale rt" style= "display:n one;positi on:fixed;t op:30px;ma rgin-left: -30px;z-in dex:9999;" >'+msg+'</ div>').app endTo("div .main"); | |||
| 20 | jQ uery(".ale rt").fadeI n(500); | 20 | jQ uery(".ale rt").fadeI n(500); | |||
| 21 | se tTimeout(f unction(){ jQuery(" .alert").f adeOut(500 );setTimeo ut(functio n(){jQuery (".alert") .remove(); },500);},3 000); | 21 | se tTimeout(f unction(){ jQuery(" .alert").f adeOut(500 );setTimeo ut(functio n(){jQuery (".alert") .remove(); },500);},3 000); | |||
| 22 | } | 22 | } | |||
| 23 | jQuery(fun ction($){ | 23 | jQuery(fun ction($){ | |||
| 24 | $('div .product-v iew p.no-r ating a, d iv.product -view .rat ing-links a').click( function() { | 24 | $('div .product-v iew p.no-r ating a, d iv.product -view .rat ing-links a').click( function() { | |||
| 25 | if ($('#tab_r eview_tabb ed').hasCl ass("panel -collapse" )){ | 25 | if ($('#tab_r eview_tabb ed').hasCl ass("panel -collapse" )){ | |||
| 26 | if(!$('# tab_review _tabbed'). hasClass(" in")) | 26 | if(!$('# tab_review _tabbed'). hasClass(" in")) | |||
| 27 | $('# tab_review _tabbed'). prev().fin d("a").tri gger("clic k"); | 27 | $('# tab_review _tabbed'). prev().fin d("a").tri gger("clic k"); | |||
| 28 | setTimeo ut(functio n(){ | 28 | setTimeo ut(functio n(){ | |||
| 29 | $('# product_ta b_accordio n').scroll ToJustMe() ; | 29 | $('# product_ta b_accordio n').scroll ToJustMe() ; | |||
| 30 | },200); | 30 | },200); | |||
| 31 | } else { | 31 | } else { | |||
| 32 | $('.prod uct-tabs u l li').rem oveClass(' active'); | 32 | $('.prod uct-tabs u l li').rem oveClass(' active'); | |||
| 33 | $('#tab_ review_tab bed').addC lass('acti ve'); | 33 | $('#tab_ review_tab bed').addC lass('acti ve'); | |||
| 34 | $('.prod uct-tabs . tab-conten t').hide() ; | 34 | $('.prod uct-tabs . tab-conten t').hide() ; | |||
| 35 | $('#tab_ review_tab bed_conten ts').show( ); | 35 | $('#tab_ review_tab bed_conten ts').show( ); | |||
| 36 | $('#tab_ review_tab bed').scro llToMe(); | 36 | $('#tab_ review_tab bed').scro llToMe(); | |||
| 37 | } | 37 | } | |||
| 38 | re turn false ; | 38 | re turn false ; | |||
| 39 | }); | 39 | }); | |||
| 40 | 40 | |||||
| 41 | $(".wo rd-rotate" ).each(fun ction() { | 41 | $(".wo rd-rotate" ).each(fun ction() { | |||
| 42 | 42 | |||||
| 43 | va r $this = $(this), | 43 | va r $this = $(this), | |||
| 44 | itemsWra pper = $(t his).find( ".word-rot ate-items" ), | 44 | itemsWra pper = $(t his).find( ".word-rot ate-items" ), | |||
| 45 | items = itemsWrapp er.find("> span"), | 45 | items = itemsWrapp er.find("> span"), | |||
| 46 | firstIte m = items. eq(0), | 46 | firstIte m = items. eq(0), | |||
| 47 | firstIte mClone = f irstItem.c lone(), | 47 | firstIte mClone = f irstItem.c lone(), | |||
| 48 | itemHeig ht = 0, | 48 | itemHeig ht = 0, | |||
| 49 | currentI tem = 1, | 49 | currentI tem = 1, | |||
| 50 | currentT op = 0; | 50 | currentT op = 0; | |||
| 51 | 51 | |||||
| 52 | it emHeight = firstItem .height(); | 52 | it emHeight = firstItem .height(); | |||
| 53 | 53 | |||||
| 54 | it emsWrapper .append(fi rstItemClo ne); | 54 | it emsWrapper .append(fi rstItemClo ne); | |||
| 55 | 55 | |||||
| 56 | $t his | 56 | $t his | |||
| 57 | .height( itemHeight ) | 57 | .height( itemHeight ) | |||
| 58 | .addClas s("active" ); | 58 | .addClas s("active" ); | |||
| 59 | 59 | |||||
| 60 | se tInterval( function() { | 60 | se tInterval( function() { | |||
| 61 | currentT op = (curr entItem * itemHeight ); | 61 | currentT op = (curr entItem * itemHeight ); | |||
| 62 | 62 | |||||
| 63 | itemsWra pper.anima te({ | 63 | itemsWra pper.anima te({ | |||
| 64 | top: -(current Top) + "px " | 64 | top: -(current Top) + "px " | |||
| 65 | }, 300, function() { | 65 | }, 300, function() { | |||
| 66 | curr entItem++; | 66 | curr entItem++; | |||
| 67 | if(c urrentItem > items.l ength) { | 67 | if(c urrentItem > items.l ength) { | |||
| 68 | itemsWrapp er.css("to p", 0); | 68 | itemsWrapp er.css("to p", 0); | |||
| 69 | currentIte m = 1; | 69 | currentIte m = 1; | |||
| 70 | } | 70 | } | |||
| 71 | }); | 71 | }); | |||
| 72 | 72 | |||||
| 73 | }, 2000); | 73 | }, 2000); | |||
| 74 | 74 | |||||
| 75 | }); | 75 | }); | |||
| 76 | $(wind ow).stella r({ | 76 | $(wind ow).stella r({ | |||
| 77 | re sponsive: true, | 77 | re sponsive: true, | |||
| 78 | sc rollProper ty: 'scrol l', | 78 | sc rollProper ty: 'scrol l', | |||
| 79 | pa rallaxElem ents: fals e, | 79 | pa rallaxElem ents: fals e, | |||
| 80 | ho rizontalSc rolling: f alse, | 80 | ho rizontalSc rolling: f alse, | |||
| 81 | ho rizontalOf fset: 0, | 81 | ho rizontalOf fset: 0, | |||
| 82 | ve rticalOffs et: 0 | 82 | ve rticalOffs et: 0 | |||
| 83 | }); | 83 | }); | |||
| 84 | /********* * Fullscre en Slider ********** **/ | 84 | /********* * Fullscre en Slider ********** **/ | |||
| 85 | var s_ width = $( window).in nerWidth() ; | 85 | var s_ width = $( window).in nerWidth() ; | |||
| 86 | var s_ height = $ (window).i nnerHeight (); | 86 | var s_ height = $ (window).i nnerHeight (); | |||
| 87 | var s_ ratio = s_ width/s_he ight; | 87 | var s_ ratio = s_ width/s_he ight; | |||
| 88 | var v_ width=320; | 88 | var v_ width=320; | |||
| 89 | var v_ height=240 ; | 89 | var v_ height=240 ; | |||
| 90 | var v_ ratio = v_ width/v_he ight; | 90 | var v_ ratio = v_ width/v_he ight; | |||
| 91 | $(".fu ll-screen- slider div .item").cs s("positio n","relati ve"); | 91 | $(".fu ll-screen- slider div .item").cs s("positio n","relati ve"); | |||
| 92 | $(".fu ll-screen- slider div .item").cs s("overflo w","hidden "); | 92 | $(".fu ll-screen- slider div .item").cs s("overflo w","hidden "); | |||
| 93 | $(".fu ll-screen- slider div .item").wi dth(s_widt h); | 93 | $(".fu ll-screen- slider div .item").wi dth(s_widt h); | |||
| 94 | $(".fu ll-screen- slider div .item").he ight(s_hei ght); | 94 | $(".fu ll-screen- slider div .item").he ight(s_hei ght); | |||
| 95 | $(".fu ll-screen- slider div .item > vi deo").css( "position" ,"absolute "); | 95 | $(".fu ll-screen- slider div .item > vi deo").css( "position" ,"absolute "); | |||
| 96 | $(".fu ll-screen- slider div .item > vi deo").bind ("loadedme tadata",fu nction(){ | 96 | $(".fu ll-screen- slider div .item > vi deo").bind ("loadedme tadata",fu nction(){ | |||
| 97 | v_ width = th is.videoWi dth; | 97 | v_ width = th is.videoWi dth; | |||
| 98 | v_ height = t his.videoH eight; | 98 | v_ height = t his.videoH eight; | |||
| 99 | v_ ratio = v_ width/v_he ight; | 99 | v_ ratio = v_ width/v_he ight; | |||
| 100 | if (s_ratio>= v_ratio){ | 100 | if (s_ratio>= v_ratio){ | |||
| 101 | $(this). width(s_wi dth); | 101 | $(this). width(s_wi dth); | |||
| 102 | $(this). height("") ; | 102 | $(this). height("") ; | |||
| 103 | $(this). css("left" ,"0px"); | 103 | $(this). css("left" ,"0px"); | |||
| 104 | $(this). css("top", (s_height- s_width/v_ width*v_he ight)/2+"p x"); | 104 | $(this). css("top", (s_height- s_width/v_ width*v_he ight)/2+"p x"); | |||
| 105 | }e lse{ | 105 | }e lse{ | |||
| 106 | $(this). width(""); | 106 | $(this). width(""); | |||
| 107 | $(this). height(s_h eight); | 107 | $(this). height(s_h eight); | |||
| 108 | $(this). css("left" ,(s_width- s_height/v _height*v_ width)/2+" px"); | 108 | $(this). css("left" ,(s_width- s_height/v _height*v_ width)/2+" px"); | |||
| 109 | $(this). css("top", "0px"); | 109 | $(this). css("top", "0px"); | |||
| 110 | } | 110 | } | |||
| 111 | $( this).get( 0).play(); | 111 | $( this).get( 0).play(); | |||
| 112 | }); | 112 | }); | |||
| 113 | $(".header -container .type10 .dropdown- menu .menu-cont ainer>a , .header-co ntainer.ty pe28 .dropdown- menu .menu-cont ainer>a ").click(f unction(){ | 113 |
$(".header
-container
.type10
.dropdown-
menu
.menu-cont
ainer>a
|
|||
| 114 | if(!$("bod y").hasCla ss("cms-in dex-index" ) || $(".header -container .type10"). hasClass(" sticky-hea der") || $(".header -container .type28"). hasClass(" sticky-hea der") ) { | 114 |
if(!$("bod
y").hasCla
ss("cms-in
dex-index"
)
||
$(".header
-container
.type10").
hasClass("
sticky-hea
der")
|
|||
| 115 | if ($(this). next().has Class("sho w")) { | 115 | if ($(this ).next().h asClass("s how")) { | |||
| 116 | $(th is).next() .removeCla ss("show") ; | 116 | $( this).next ().removeC lass("show "); | |||
| 117 | } else { | 117 | } else { | |||
| 118 | $(th is).next() .addClass( "show"); | 118 | $( this).next ().addClas s("show"); | |||
| 119 | } | 119 | } | |||
| 120 | } | 120 | } | |||
| 121 | if($(windo w).width() <=991){ | 121 | if($(win dow).width ()<=991){ | |||
| 122 | if ($(".mobi le-nav.sid e-block"). hasClass(" show")) { | 122 | if ($(".mo bile-nav.s ide-block" ).hasClass ("show")) { | |||
| 123 | $(". mobile-nav .side-bloc k").remove Class("sho w"); | 123 | $( ".mobile-n av.side-bl ock").remo veClass("s how"); | |||
| 124 | $(". mobile-nav .side-bloc k").slideU p(); | 124 | $( ".mobile-n av.side-bl ock").slid eUp(); | |||
| 125 | } else { | 125 | } else { | |||
| 126 | $(". mobile-nav .side-bloc k").addCla ss("show") ; | 126 | $( ".mobile-n av.side-bl ock").addC lass("show "); | |||
| 127 | $(". mobile-nav .side-bloc k").slideD own(); | 127 | $( ".mobile-n av.side-bl ock").slid eDown(); | |||
| 128 | } | 128 | } | |||
| 129 | } | 129 | } | |||
| 130 | }) ; | 130 | }) ; | |||
| 131 | $(".he ader-conta iner.type2 6 .dropdow n-menu .me nu-contain er>a").off ("click"). on("click" , function (){ | |||||
| 132 | if ($(this). next().has Class("act ive")) { | |||||
| 133 | $(this). removeClas s("active" ); | |||||
| 134 | $(this). next().rem oveClass(" active"); | |||||
| 135 | } else { | |||||
| 136 | $(this). next().add Class("act ive"); | |||||
| 137 | $(this). addClass(" active"); | |||||
| 138 | } | |||||
| 139 | }); | |||||
| 131 | if ($(window) .width()>= 992) | 140 | if ($(window) .width()>= 992) | |||
| 132 | $(". cms-index- index .hea der-contai ner.type10 +.top-cont ainer .sli der-wrappe r").css("m in-height" ,$(".heade r-containe r.type10 . menu.side- menu").hei ght()+20+" px"); | 141 | $(". cms-index- index .hea der-contai ner.type10 +.top-cont ainer .sli der-wrappe r").css("m in-height" ,$(".heade r-containe r.type10 . menu.side- menu").hei ght()+20+" px"); | |||
| 133 | $(". cms-index- index .hea der-contai ner.type28 +.top-cont ainer .sli der-wrappe r").css("m in-height" ,$(".heade r-containe r.type28 . menu.side- menu").hei ght()+20+" px"); | |||||
| 134 | $(wind ow).resize (function( ){ | 142 | $(wind ow).resize (function( ){ | |||
| 135 | if($ (window).w idth()>=99 2) { | 143 | if($ (window).w idth()>=99 2) { | |||
| 136 | $(".cms- index-inde x .header- container. type10+.to p-containe r .slider- wrapper"). css("min-h eight", $( ".header-c ontainer.t ype10 .men u.side-men u").height () + 20 + "px"); | 144 | $(".cms- index-inde x .header- container. type10+.to p-containe r .slider- wrapper"). css("min-h eight", $( ".header-c ontainer.t ype10 .men u.side-men u").height () + 20 + "px"); | |||
| 137 | $(".cms- index-inde x .header- container. type28+.to p-containe r .slider- wrapper"). css("min-h eight", $( ".header-c ontainer.t ype28 .men u.side-men u").height () + 20 + "px"); | |||||
| 138 | }e lse { | |||||
| 139 | $(".cms- index-inde x .header- container. type28+.to p-containe r .slider- wrapper"). css("min-h eight", "" ); | |||||
| 140 | } | 145 | } | |||
| 141 | s_ width = $( window).in nerWidth() ; | 146 | s_ width = $( window).in nerWidth() ; | |||
| 142 | s_ height = $ (window).i nnerHeight (); | 147 | s_ height = $ (window).i nnerHeight (); | |||
| 143 | s_ ratio = s_ width/s_he ight; | 148 | s_ ratio = s_ width/s_he ight; | |||
| 144 | $( ".full-scr een-slider div.item" ).width(s_ width); | 149 | $( ".full-scr een-slider div.item" ).width(s_ width); | |||
| 145 | $( ".full-scr een-slider div.item" ).height(s _height); | 150 | $( ".full-scr een-slider div.item" ).height(s _height); | |||
| 146 | $( ".full-scr een-slider div.item > video"). each(funct ion(){ | 151 | $( ".full-scr een-slider div.item > video"). each(funct ion(){ | |||
| 147 | if(s_rat io>=v_rati o){ | 152 | if(s_rat io>=v_rati o){ | |||
| 148 | $(th is).width( s_width); | 153 | $(th is).width( s_width); | |||
| 149 | $(th is).height (""); | 154 | $(th is).height (""); | |||
| 150 | $(th is).css("l eft","0px" ); | 155 | $(th is).css("l eft","0px" ); | |||
| 151 | $(th is).css("t op",(s_hei ght-s_widt h/v_width* v_height)/ 2+"px"); | 156 | $(th is).css("t op",(s_hei ght-s_widt h/v_width* v_height)/ 2+"px"); | |||
| 152 | }else{ | 157 | }else{ | |||
| 153 | $(th is).width( ""); | 158 | $(th is).width( ""); | |||
| 154 | $(th is).height (s_height) ; | 159 | $(th is).height (s_height) ; | |||
| 155 | $(th is).css("l eft",(s_wi dth-s_heig ht/v_heigh t*v_width) /2+"px"); | 160 | $(th is).css("l eft",(s_wi dth-s_heig ht/v_heigh t*v_width) /2+"px"); | |||
| 156 | $(th is).css("t op","0px") ; | 161 | $(th is).css("t op","0px") ; | |||
| 157 | } | 162 | } | |||
| 158 | }) ; | 163 | }) ; | |||
| 159 | }); | 164 | }); | |||
| 160 | 165 | |||||
| 161 | /********* ***** Head er - Searc h icon, Li nks icon c lick event ********* ******/ | 166 | /********* ***** Head er - Searc h icon, Li nks icon c lick event ********* ******/ | |||
| 162 | $(".to p-links-ic on").click (function( e){ | 167 | $(".to p-links-ic on").click (function( e){ | |||
| 163 | $( "a.search- icon").par ent().chil dren("#sea rch_mini_f orm").remo veClass("s how"); | 168 | $( "a.search- icon").par ent().chil dren("#sea rch_mini_f orm").remo veClass("s how"); | |||
| 164 | if ($(this).p arent().ch ildren("ul .links").h asClass("s how")){ | 169 | if ($(this).p arent().ch ildren("ul .links").h asClass("s how")){ | |||
| 165 | $(this). parent().c hildren("u l.links"). removeClas s("show"); | 170 | $(this). parent().c hildren("u l.links"). removeClas s("show"); | |||
| 166 | } | 171 | } | |||
| 167 | el se | 172 | el se | |||
| 168 | $(this). parent().c hildren("u l.links"). addClass(" show"); | 173 | $(this). parent().c hildren("u l.links"). addClass(" show"); | |||
| 169 | e. stopPropag ation(); | 174 | e. stopPropag ation(); | |||
| 170 | }); | 175 | }); | |||
| 171 | $("a.s earch-icon ").click(f unction(e) { | 176 | $("a.s earch-icon ").click(f unction(e) { | |||
| 172 | $( ".top-link s-icon").p arent().ch ildren("ul .links").r emoveClass ("show"); | 177 | $( ".top-link s-icon").p arent().ch ildren("ul .links").r emoveClass ("show"); | |||
| 173 | if ($(this).p arent().ch ildren("#s earch_mini _form").ha sClass("sh ow")){ | 178 | if ($(this).p arent().ch ildren("#s earch_mini _form").ha sClass("sh ow")){ | |||
| 174 | $(this). parent().c hildren("# search_min i_form").r emoveClass ("show"); | 179 | $(this). parent().c hildren("# search_min i_form").r emoveClass ("show"); | |||
| 175 | } | 180 | } | |||
| 176 | el se | 181 | el se | |||
| 177 | $(this). parent().c hildren("# search_min i_form").a ddClass("s how"); | 182 | $(this). parent().c hildren("# search_min i_form").a ddClass("s how"); | |||
| 178 | e. stopPropag ation(); | 183 | e. stopPropag ation(); | |||
| 179 | }); | 184 | }); | |||
| 180 | $("a.s earch-icon ").parent( ).click(fu nction(e){ | 185 | $("a.s earch-icon ").parent( ).click(fu nction(e){ | |||
| 181 | e. stopPropag ation(); | 186 | e. stopPropag ation(); | |||
| 182 | }) | 187 | }) | |||
| 183 | $("htm l,body").c lick(funct ion(){ | 188 | $("htm l,body").c lick(funct ion(){ | |||
| 184 | $( ".top-link s-icon").p arent().ch ildren("ul .links").r emoveClass ("show"); | 189 | $( ".top-link s-icon").p arent().ch ildren("ul .links").r emoveClass ("show"); | |||
| 185 | $( "a.search- icon").par ent().chil dren("#sea rch_mini_f orm").remo veClass("s how"); | 190 | $( "a.search- icon").par ent().chil dren("#sea rch_mini_f orm").remo veClass("s how"); | |||
| 186 | }); | 191 | }); | |||
| 187 | 192 | |||||
| 188 | /***** ********** ****** Pro duct Image s ******** ********** *****/ | 193 | /***** ********** ****** Pro duct Image s ******** ********** *****/ | |||
| 189 | 194 | |||||
| 190 | $("a.p roduct-ima ge img.def aultImage" ).each(fun ction(){ | 195 | $("a.p roduct-ima ge img.def aultImage" ).each(fun ction(){ | |||
| 191 | va r default_ img = $(th is).attr(" src"); | 196 | va r default_ img = $(th is).attr(" src"); | |||
| 192 | if (!default_ img) | 197 | if (!default_ img) | |||
| 193 | default_ img = $(th is).attr(" data-src") ; | 198 | default_ img = $(th is).attr(" data-src") ; | |||
| 194 | va r thumbnai l_img = $( this).pare nt().child ren("img.h overImage" ).attr("sr c"); | 199 | va r thumbnai l_img = $( this).pare nt().child ren("img.h overImage" ).attr("sr c"); | |||
| 195 | if (!thumbnai l_img) | 200 | if (!thumbnai l_img) | |||
| 196 | thumbnai l_img = $( this).pare nt().child ren("img.h overImage" ).attr("da ta-src"); | 201 | thumbnai l_img = $( this).pare nt().child ren("img.h overImage" ).attr("da ta-src"); | |||
| 197 | if (default_i mg){ | 202 | if (default_i mg){ | |||
| 198 | if(defau lt_img.rep lace("/sma ll_image/" ,"/thumbna il/")==thu mbnail_img ){ | 203 | if(defau lt_img.rep lace("/sma ll_image/" ,"/thumbna il/")==thu mbnail_img ){ | |||
| 199 | $(th is).parent ().childre n("img.hov erImage"). remove(); | 204 | $(th is).parent ().childre n("img.hov erImage"). remove(); | |||
| 200 | $(th is).remove Class("def aultImage" ); | 205 | $(th is).remove Class("def aultImage" ); | |||
| 201 | } | 206 | } | |||
| 202 | } | 207 | } | |||
| 203 | }); | 208 | }); | |||
| 204 | 209 | |||||
| 205 | /***** ********** ****** Qty Holder ** ********** ********** ****/ | 210 | /***** ********** ****** Qty Holder ** ********** ********** ****/ | |||
| 206 | $(".ta ble_qty_in c").unbind ('click'). click(func tion(){ | 211 | $(".ta ble_qty_in c").unbind ('click'). click(func tion(){ | |||
| 207 | if($ (this).par ent().chil dren(".qty ").is(':en abled')) | 212 | if($ (this).par ent().chil dren(".qty ").is(':en abled')) | |||
| 208 | $(th is).parent ().childre n(".qty"). val((+$(th is).parent ().childre n(".qty"). val()+1) | | 0); | 213 | $(th is).parent ().childre n(".qty"). val((+$(th is).parent ().childre n(".qty"). val()+1) | | 0); | |||
| 209 | }); | 214 | }); | |||
| 210 | $(".ta ble_qty_de c").unbind ('click'). click(func tion(){ | 215 | $(".ta ble_qty_de c").unbind ('click'). click(func tion(){ | |||
| 211 | if($ (this).par ent().chil dren(".qty ").is(':en abled')) | 216 | if($ (this).par ent().chil dren(".qty ").is(':en abled')) | |||
| 212 | $(th is).parent ().childre n(".qty"). val(($(thi s).parent( ).children (".qty").v al()-1 > 0 )?($(this) .parent(). children(" .qty").val () - 1) : 0); | 217 | $(th is).parent ().childre n(".qty"). val(($(thi s).parent( ).children (".qty").v al()-1 > 0 )?($(this) .parent(). children(" .qty").val () - 1) : 0); | |||
| 213 | }); | 218 | }); | |||
| 214 | 219 | |||||
| 215 | $(".qt y_inc").un bind('clic k').click( function() { | 220 | $(".qt y_inc").un bind('clic k').click( function() { | |||
| 216 | if($ (this).par ent().pare nt().child ren("input .qty").is( ':enabled' )){ | 221 | if($ (this).par ent().pare nt().child ren("input .qty").is( ':enabled' )){ | |||
| 217 | $(this ).parent() .parent(). children(" input.qty" ).val((+$( this).pare nt().paren t().childr en("input. qty").val( ) + 1) || 0); | 222 | $(this ).parent() .parent(). children(" input.qty" ).val((+$( this).pare nt().paren t().childr en("input. qty").val( ) + 1) || 0); | |||
| 218 | $(this ).parent() .parent(). children(" input.qty" ).focus(); | 223 | $(this ).parent() .parent(). children(" input.qty" ).focus(); | |||
| 219 | $(this ).focus(); | 224 | $(this ).focus(); | |||
| 220 | } | 225 | } | |||
| 221 | }); | 226 | }); | |||
| 222 | $(".qt y_dec").un bind('clic k').click( function() { | 227 | $(".qt y_dec").un bind('clic k').click( function() { | |||
| 223 | if($ (this).par ent().pare nt().child ren("input .qty").is( ':enabled' )){ | 228 | if($ (this).par ent().pare nt().child ren("input .qty").is( ':enabled' )){ | |||
| 224 | $(this ).parent() .parent(). children(" input.qty" ).val(($(t his).paren t().parent ().childre n("input.q ty").val() - 1 > 0) ? ($(this) .parent(). parent().c hildren("i nput.qty") .val() - 1 ) : 0); | 229 | $(this ).parent() .parent(). children(" input.qty" ).val(($(t his).paren t().parent ().childre n("input.q ty").val() - 1 > 0) ? ($(this) .parent(). parent().c hildren("i nput.qty") .val() - 1 ) : 0); | |||
| 225 | $(this ).parent() .parent(). children(" input.qty" ).focus(); | 230 | $(this ).parent() .parent(). children(" input.qty" ).focus(); | |||
| 226 | $(this ).focus(); | 231 | $(this ).focus(); | |||
| 227 | } | 232 | } | |||
| 228 | }); | 233 | }); | |||
| 229 | 234 | |||||
| 230 | /* mov ing action links int o product image area */ | 235 | /* mov ing action links int o product image area */ | |||
| 231 | $(".mo ve-action .item .det ails-area .actions") .each(func tion(){ | 236 | $(".mo ve-action .item .det ails-area .actions") .each(func tion(){ | |||
| 232 | $( this).pare nt().paren t().childr en(".produ ct-image-a rea").appe nd($(this) ); | 237 | $( this).pare nt().paren t().childr en(".produ ct-image-a rea").appe nd($(this) ); | |||
| 233 | }); | 238 | }); | |||
| 234 | }); | 239 | }); | |||
| 235 | jQuery(fun ction($){ | 240 | jQuery(fun ction($){ | |||
| 236 | var br eadcrumb_p os_top = 0 ; | 241 | var br eadcrumb_p os_top = 0 ; | |||
| 237 | $(wind ow).scroll (function( ){ | 242 | $(wind ow).scroll (function( ){ | |||
| 238 | if (!$("body" ).hasClass ("cms-inde x-index")) { | 243 | if (!$("body" ).hasClass ("cms-inde x-index")) { | |||
| 239 | var side_heade r_height = $(".header -container .type12 ,.header-c ontainer.t ype25 ").innerHe ight(); | 244 |
var
side_heade
r_height
=
$(".header
-container
.type12
|
|||
| 240 | var wind ow_height = $(window ).height() ; | 245 | var wind ow_height = $(window ).height() ; | |||
| 241 | if(side_ header_hei ght-window _height<$( window).sc rollTop()) { | 246 | if(side_ header_hei ght-window _height<$( window).sc rollTop()) { | |||
| 242 | if(!$(".he ader-conta iner.type1 2 ,.header-c ontainer.t ype25 ").hasClas s("fixed-b ottom")) | 247 |
if(!$(".he
ader-conta
iner.type1
2
|
|||
| 243 | $(".header -container .type12 ,.header-c ontainer.t ype25 ").addClas s("fixed-b ottom"); | 248 |
$(".header
-container
.type12
|
|||
| 244 | } | 249 | } | |||
| 245 | if(side_ header_hei ght-window _height>=$ (window).s crollTop() ){ | 250 | if(side_ header_hei ght-window _height>=$ (window).s crollTop() ){ | |||
| 246 | if($(".hea der-contai ner.type12 ,.header-c ontainer.t ype25 ").hasClas s("fixed-b ottom")) | 251 |
if($(".hea
der-contai
ner.type12
|
|||
| 247 | $(".header -container .type12 ,.header-c ontainer.t ype25 ").removeC lass("fixe d-bottom") ; | 252 |
$(".header
-container
.type12
|
|||
| 248 | } | 253 | } | |||
| 249 | } | 254 | } | |||
| 250 | if ($("body.s ide-header .top-cont ainer > .b readcrumbs ").length) { | 255 | if ($("body.s ide-header .top-cont ainer > .b readcrumbs ").length) { | |||
| 251 | if(!$("b ody.side-h eader .top -container > .breadc rumbs").ha sClass("fi xed-positi on")){ | 256 | if(!$("b ody.side-h eader .top -container > .breadc rumbs").ha sClass("fi xed-positi on")){ | |||
| 252 | brea dcrumb_pos _top = $(" body.side- header .to p-containe r > .bread crumbs").o ffset().to p; | 257 | brea dcrumb_pos _top = $(" body.side- header .to p-containe r > .bread crumbs").o ffset().to p; | |||
| 253 | if($ ("body.sid e-header . top-contai ner > .bre adcrumbs") .offset(). top<$(wind ow).scroll Top()){ | 258 | if($ ("body.sid e-header . top-contai ner > .bre adcrumbs") .offset(). top<$(wind ow).scroll Top()){ | |||
| 254 | $("body.si de-header .top-conta iner > .br eadcrumbs" ).addClass ("fixed-po sition"); | 259 | $("body.si de-header .top-conta iner > .br eadcrumbs" ).addClass ("fixed-po sition"); | |||
| 255 | } | 260 | } | |||
| 256 | }else{ | 261 | }else{ | |||
| 257 | if($ (window).s crollTop() <=1){ | 262 | if($ (window).s crollTop() <=1){ | |||
| 258 | $("body.si de-header .top-conta iner > .br eadcrumbs" ).removeCl ass("fixed -position" ); | 263 | $("body.si de-header .top-conta iner > .br eadcrumbs" ).removeCl ass("fixed -position" ); | |||
| 259 | } | 264 | } | |||
| 260 | } | 265 | } | |||
| 261 | } | 266 | } | |||
| 262 | }); | 267 | }); | |||
| 263 | 268 | |||||
| 264 | $(docu ment).read y(function (){ | 269 | $(docu ment).read y(function (){ | |||
| 265 | $( "body.cata log-produc t-view .co l2-right-l ayout .col -right.sid ebar").aft er('<div c lass="mobi le-layer-o verlay"></ div><a hre f="javascr ipt:void(0 );" class= "right-sid e-open"><i class="ic on-reply"> </i></a>') ; | 270 | $( "body.cata log-produc t-view .co l2-right-l ayout .col -right.sid ebar").aft er('<div c lass="mobi le-layer-o verlay"></ div><a hre f="javascr ipt:void(0 );" class= "right-sid e-open"><i class="ic on-reply"> </i></a>') ; | |||
| 266 | $( ".right-si de-open"). off("click ").on("cli ck",functi on(){ | 271 | $( ".right-si de-open"). off("click ").on("cli ck",functi on(){ | |||
| 267 | $("body. catalog-pr oduct-view .col2-rig ht-layout .col-right .sidebar") .addClass( "open"); | 272 | $("body. catalog-pr oduct-view .col2-rig ht-layout .col-right .sidebar") .addClass( "open"); | |||
| 268 | }) ; | 273 | }) ; | |||
| 269 | $( ".catalog- product-vi ew .col2-r ight-layou t .col-rig ht.sidebar +.mobile-l ayer-overl ay").off(" click").on ("click",f unction(){ | 274 | $( ".catalog- product-vi ew .col2-r ight-layou t .col-rig ht.sidebar +.mobile-l ayer-overl ay").off(" click").on ("click",f unction(){ | |||
| 270 | $("body. catalog-pr oduct-view .col2-rig ht-layout .col-right .sidebar") .removeCla ss("open") ; | 275 | $("body. catalog-pr oduct-view .col2-rig ht-layout .col-right .sidebar") .removeCla ss("open") ; | |||
| 271 | }) ; | 276 | }) ; | |||
| 272 | }); | 277 | }); | |||
| 273 | }); | 278 | }); | |||
| 274 | jQuery(fun ction($){ | 279 | jQuery(fun ction($){ | |||
| 275 | $(docu ment).read y(function (){ | 280 | $(docu ment).read y(function (){ | |||
| 276 | $( "img.porto -lazyload" ).lazyload ({effect:" fadeIn"}); | 281 | $( "img.porto -lazyload" ).lazyload ({effect:" fadeIn"}); | |||
| 277 | if ($('.port o-lazyload :not(.port o-lazyload -loaded)') .closest(' .owl-carou sel').leng th) { | 282 | if ($('.port o-lazyload :not(.port o-lazyload -loaded)') .closest(' .owl-carou sel').leng th) { | |||
| 278 | $('.port o-lazyload :not(.port o-lazyload -loaded)') .closest(' .owl-carou sel').each (function( ) { | 283 | $('.port o-lazyload :not(.port o-lazyload -loaded)') .closest(' .owl-carou sel').each (function( ) { | |||
| 279 | $(th is).find(' .porto-laz yload:not( .porto-laz yload-load ed)').trig ger('appea r'); | 284 | $(th is).find(' .porto-laz yload:not( .porto-laz yload-load ed)').trig ger('appea r'); | |||
| 280 | }); | 285 | }); | |||
| 281 | } | 286 | } | |||
| 282 | }); | 287 | }); | |||
| 283 | }); | 288 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2010 Araxis Ltd (www.araxis.com). All rights reserved.