A Pen by Caleb OLeary on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //If a Product Carousel looks all messed up inside of Smart Tabs, this can fix it. Basically what you need to do is find your tab that contains the carousel and don't initialize the carousel until half a second after that tab is clicked. A lot of this code can be removed pertaining to your implementation. | |
| $.ajax({ | |
| cache: true, | |
| crossDomain: true, | |
| dataType: 'script', | |
| url: '../js/jquery.smartTabs.min.js' | |
| }).done(function () { | |
| $('#js-smart-tabs').smartTabs(864, null, 'auto'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| myPinchZoom = document.documentElement.clientWidth / window.innerWidth | |
| //this will give you 1 if they are zoomed out all the way (mobile) and will give you an increasing number the more that they zoom in. Must put it somewhere where it checks continuously rather than on page load if you want it to do something actively |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var working = $( '#js-main-image' ).attr('src'); | |
| var workingSplit = working.split('_'); | |
| var fileExt = (workingSplit[workingSplit.length-1].split('.')); | |
| workingSplit.pop(); | |
| var workingJoined = workingSplit.join('_'); | |
| workingJoined = workingJoined + '.' + fileExt[fileExt.length-1]; | |
| $( '.output' ).text(workingJoined); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| function regenPrices() { | |
| $(".multiAddTableRow").each(function() { | |
| var row = $(this); | |
| var rowPrice = []; | |
| (row).find('select').each(function(){ | |
| var select = $(this); | |
| $(select).find('option:selected').each(function(){ | |
| var option = $(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mvt:assign name="g.redirect" value="miva_output_header( 'Location', g.domain:mm_url $ 'Screen=CTGY&Category_Code=' $ g.category_code $ '&multiAdd=true&Per_Page=0')"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mvt:item name="ry_toolbelt" param="assign|g.select_sql|'INSERT INTO custcomments (category, custname, email, country, comment, commentdate, status) VALUES (`test`, `test`, `test`, `test`, `test`, NOW(), `active`)'" /> | |
| <mvt:item name="ry_toolbelt" param="query|g.select_sql|MyOrders" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mvt:eval expr="glosub(miva_array_serialize(l.settings:quote), ',', '<br />')" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var interval = null; | |
| $('#js-main-image').on('mouseenter', function() { | |
| $('#zoom-hold').show(); | |
| interval = setInterval(function(){ | |
| $('#js-main-image').trigger('mouseleave'); | |
| $('#js-main-image').trigger('mouseenter'); | |
| }, 1000); | |
| }).on('mouseleave', function(){ | |
| $('#zoom-hold').hide(); | |
| window.clearInterval(interval); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -Sign up and register your site at https://www.google.com/recaptcha/intro/index.html | |
| -Add this line to your head tag content: | |
| <script src='https://www.google.com/recaptcha/api.js'></script> | |
| -Add this line inside the form tag where you want the recaptcha to appear | |
| <div class="g-recaptcha" data-sitekey="YOURSITEKEY"></div> | |
| -Create a new page with the code RECAP and put this code in (don’t forget to add in your real key): | |
| <mvt:assign name="g.secretKey" value="'YOURSITEKEY'" /> |
OlderNewer