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
/* Requires jQuery | |
** Include this file or copy/paste into your document. | |
** Call the function, passing the selector as a jQuery-style string. | |
** Offset is a number used to keep the text just short of the width of the parent to avoid rounding errors that will wrap the text. | |
** You can use the offset to adjust how close you want the width to be. Offset is optional and defaults to 10. | |
** Step defines the increase in font size. If you find one or more of your elements pushes out further than the others, adjust this | |
** number. | |
** For this to work, the element containing the text must be set to display:inline or inline-block, and the parent should be anything | |
** other than inline. So, if you have an h1 inside a header, you will need to make sure the h1 is inline or inline-block and the header | |
** isn't inline. |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
dist:{ | |
options: { | |
style: 'expanded', | |
compass: 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
{"lastUpload":"2018-10-31T18:05:50.635Z","extensionVersion":"v3.2.0"} |
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
// This test takes an array, loops through each top level index | |
// and logs an error if the index contains an array. | |
// Passes are tallied, and passes/fails are output at the end of the test. | |
const flattenTest = arr => { | |
// Define error message and initialize pass counter | |
const errorMessage = ind => `Index ${ind} contains an array`; | |
let passCount = 0; | |
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 XML2JSON = (xml, selector) => { | |
let entries = xml.querySelectorAll(selector); | |
let outData = []; | |
Array.from(entries).forEach((entry, i) => { | |
outData[i] = {}; | |
Array.from(entry.children).forEach(node => { | |
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
let nav_buttons = document.querySelectorAll('.nav'); | |
function addNavButtonListeners() { | |
Array.from(nav_buttons).forEach(button => { | |
button.addEventListener('click', e => { | |
console.log(button); | |
e.preventDefault(); | |
if(button.classList.contains('next')){ | |
switchPanel(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Delivery/Event Dates | Flower Moxie</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.6/flatpickr.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.17.1/axios.min.js"></script> | |
<script type="text/javascript" src="supplies.js"></script> | |
<link rel="stylesheet" href="supply.css" type="text/css" /> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.6/flatpickr.min.css"> | |
<style> |
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
rootdir=`pwd` | |
echo $rootdir | |
for dir in */; do | |
cd "$rootdir/$dir" | |
echo "Installing $dir at $PWD" | |
npm i | |
done |
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
/** | |
* Recursive function to walk down into the config object and return the requested data | |
* | |
* @param {string[]} pathArray Array containing the paths to the requested key | |
* @param {Object} inputObj The object being traversed. | |
* @param {number} [idx=0] Current index. Used internally to determine where in the pathArray we are | |
* | |
* @returns {any|null} Requested config setting(s) | |
*/ | |
const recurseConfigPath = (pathArray, inputObj, idx = 0) => { |
OlderNewer