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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
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
| /*ECI:START: POST ATC Click: Recipe C */ | |
| var mobileCheck = function () { | |
| var userAgent = false; | |
| var mobileWidth = false; | |
| if (navigator.userAgent.match(/Android/i) | |
| || navigator.userAgent.match(/webOS/i) | |
| || navigator.userAgent.match(/iPhone/i) | |
| || navigator.userAgent.match(/iPad/i) | |
| || navigator.userAgent.match(/iPod/i) | |
| || navigator.userAgent.match(/BlackBerry/i) |
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
| php -dmemory_limit=6G bin/magento setup:static-content:deploy |
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
| // Add this line to package.json | |
| // "uglifyjs-webpack-plugin": "^1.0.1" | |
| //Add codes below on webpack.config.js | |
| const Uglify = require('uglifyjs-webpack-plugin') | |
| new Uglify({ | |
| sourceMap: false, | |
| uglifyOptions: { | |
| output: { | |
| beautify: false | |
| }, |
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
| /** | |
| * hex2rgb - function for converting hex colors to rgb(a) | |
| * | |
| * Shout out to http://hex2rgba.devoth.com/ | |
| * | |
| * @hex (String) - The hex value. Can be prefixed with "#" or not. Can be | |
| * long format (6 chars) or short format (3 chars) | |
| * @opacity (number between 0 and 1) - This is an optional float value that | |
| * will be used for the opacity | |
| * |
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
| function format_phone_us($phone) { | |
| // note: making sure we have something | |
| if(!isset($phone{3})) { return ''; } | |
| // note: strip out everything but numbers | |
| $phone = preg_replace("/[^0-9]/", "", $phone); | |
| $length = strlen($phone); | |
| switch($length) { | |
| case 7: | |
| return preg_replace("/([0-9]{3})([0-9]{4})/", "$1-$2", $phone); | |
| break; |
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
| <?php | |
| /** | |
| * Crumina Theme Functions | |
| * | |
| */ |
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
| /*ECI 10 Standard R-pts (additional 4 cart-closer r-pts) : sportsfanfare.com*/ | |
| console.log('Hello'); | |
| $(document).ready(function() { | |
| var ecitests = []; | |
| for(i = 0; i < ABTasty.tests.length; i++) { | |
| ecitests.push(ecitests[i]); | |
| ecitests[i] = ABTasty.tests[i].datas.id; | |
| var ECIdebug = false; | |
| var ABeventTrack = function(elem, val, testID) { |
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 eci_jjp = { | |
| eci_swap_sections: function( ){ | |
| $('#bodycontent .container').first().insertAfter($('#bodycontent .container').last()); | |
| return $(this); | |
| }, | |
| eci_init: function(){ | |
| var obj = this; | |
| obj.eci_swap_sections(); | |
| } |
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
| jQuery(document).ready(function($) { | |
| 'use strict'; | |
| var mblPPSeparateQty = { | |
| addBtn: function() { | |
| var topclass = '<div class="eci-add-to-cart-203204"><h5>Quantity:</h5>'; | |
| var inputgroup = '<div class="input-group"><span class="input-group-btn"><button type="button" class="btn btn-default btn-number" disabled="disabled" data-type="minus" data-field="quant[1]"><span class="eci-icon eci-icon-minus"></span></button></span><input type="text" name="quant[1]" class="form-control input-number" value="1" min="1" max="100000000"><span class="input-group-btn"><button type="button" class="btn btn-default btn-number" data-type="plus"data-field="quant[1]"><span class="eci-icon eci-icon-plus"></span></button></span></div>'; | |
| var btn = '<input class="eci-add-to-cart-btn" value="Add to Cart" id="ysw-add-to-cart" type="submit">'; |