This file contains 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
.wrapper { | |
width: 960px; | |
max-width: 100%; | |
margin: 0 auto; | |
} | |
.wrapper::after { | |
clear: both; | |
content: ""; | |
display: block; |
This file contains 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
.wrapper | |
+grid-container | |
width: 960px | |
max-width: 100% | |
margin: 0 auto | |
.form-top | |
+grid-column | |
text-align: center |
This file contains 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
current.product.variants = [{option1: 'Normal'}, {option1: 'Foil'}]; // Original Code | |
// Lets make some white space to make this easier ;) - then we're going to add our missing parameters. | |
current.product.variants = [ | |
{ | |
option1: 'Normal', | |
inventory_quantity: 0, | |
inventory_management: 'shopify' | |
}, |
This file contains 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 express = require('express'); | |
var config = require('./modules/config'); | |
var routes = require('./modules/routes'); // Using all routes as an exported function. See routes.js. | |
var db = require('./modules/db.js'); | |
var app = express(); | |
app.set('view engine', 'pug'); | |
app.use('/form', express.static(`${__dirname}/static`)); | |
app.use('/form/form', express.static(`${__dirname}/static`)); |
This file contains 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
/* | |
Styles only apply to 1224px wide, if we go below that, these styles stop applying. | |
If we fall below 1224px wide, suddenly all of our header styles disappear, which is bad news bears for us. | |
*/ | |
@media only screen and (min-width : 1224px) { | |
h3 { margin: 50px auto; } | |
h3:first-child { margin-top: 0; } | |
header{ | |
background-color:#f3f2f5; |
This file contains 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 | |
// $mailer = new Mailer(Obj). Obj is expected to be a parsed JSON object from the front end | |
// Example {"email": "person@mailing.com", "name": "Person Mailing", "message": "Hello"} | |
// you decode_json(Obj, true); first before instantiating the mail object with it. | |
// Mailer will echo a JSON string of either a success message or an array of errors after attempting | |
// to sanitize, validate and send mail. use $mailer->send(); to run the module after instantiating it. | |
class Mailer { | |
function __construct($envelope) { |
This file contains 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
const mailer = require('nodemailer'); | |
const validator = require('validator'); | |
class Email { | |
constructor() { | |
this.config = { | |
host: 'host', | |
port: 465, | |
secure: true, |
This file contains 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
const { task, src, dest, series, watch } = require('gulp') | |
const sass = require('gulp-sass') | |
const autoprefixer = require('gulp-autoprefixer') | |
const rename = require('gulp-rename') | |
sass.compiler = require('node-sass') | |
function scss() { | |
return src('./src/sass/main.scss') | |
.pipe(sass({ outputStyle: 'compressed' }) |
This file contains 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
Show hidden characters
{ | |
"presets": [ | |
"@babel/env", | |
"@vue/babel-preset-jsx", | |
[ | |
"babel-preset-minify", { | |
"mangle": true | |
} | |
] | |
], |
This file contains 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
class SuggestionsData { | |
constructor() { | |
this.$CF = document.querySelector('form[data-cf-form]') | |
this.liquid_data = JSON.parse( | |
document.getElementById('dog_customer_details').innerText | |
) | |
this.storage = null | |
this.init_data() | |
} |
OlderNewer