Construct a hamburger button with minimal markup and animate the interactions.
A Pen by Caley Jack on CodePen.
#!/bin/bash | |
echo -n "Enter target filename and press [ENTER]: " | |
read target | |
echo -n "Enter destination filename and press [ENTER]: " | |
read destination | |
touch $destination | |
echo -e "" > $destination |
Construct a hamburger button with minimal markup and animate the interactions.
A Pen by Caley Jack on CodePen.
RewriteEngine On | |
RewriteCond %{QUERY_STRING} !^desktop | |
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|#opera mobile|palmos|webos" [NC] | |
RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR] |
I'm having a problem with the spree checkout api, specifically the "payment" state. The "amount" property, equal to my order total, that's being passed into the API is cleared out so when the API creates a new payment for that order, the total isn't translated into the new payment.
I noticed some stuff in the Checkout.rb update_params_payment_source method but i can't track down why that "amount" property isn't being transfered when it rebuilds the payment. Here are screenshot references of my issue
Notice the "amount" property in the first payment object "0.0". It *should be the value of the order like "25.00"
createSVG(opts) { | |
let svg = document.createElementNS("http://www.w3.org/2000/svg", opts.type); | |
if(opts.type === "text") { | |
let anchor = "middle"; | |
if(opts.anchor) { | |
anchor = opts.anchor; | |
} | |
let alignment = "auto"; | |
if(opts.alignment) { | |
alignment = opts.alignment; |
let apples = document.querySelectorAll(".apple"); | |
let oranges = document.querySelectorAll(".orange"); | |
let fruit = { apples: apples, oranges:oranges }; | |
// same as | |
let fruit = { apples, oranges }; | |
console.log(fruit.apples) // NodeList | |
console.log(fruit.orange.length) // Number |
/** | |
* Set sticky | |
*/ | |
setSticky() { | |
if(!this.item) return; | |
const bounds = this.item.getBoundingClientRect(); | |
const boundsTop = bounds.top < 0 ? bounds.top : 0; | |
const boundsBottom = bounds.bottom < this.screen.height ? bounds.bottom : 0; |