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
// Code from this stackoverflow question | |
// https://stackoverflow.com/questions/175739/is-there-a-built-in-way-in-javascript-to-check-if-a-string-is-a-valid-number | |
function isNumeric(num){ | |
return !isNaN(num) | |
} |
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
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
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
const $nav = $('nav'); | |
// The following JS modified from | |
// JS found at this per: http://codepen.io/laviperchik/pen/dlcBt | |
$.fn.accessibleDropDown = function () { | |
var el = $(this); | |
/* Make dropdown menus keyboard accessible */ |
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
/* This code from this CSS-Tricks article: | |
https://css-tricks.com/full-width-containers-limited-width-parents/ | |
*/ | |
.full-width { | |
width: 100vw; | |
position: relative; | |
left: 50%; | |
right: 50%; |
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
{ | |
"emmet.triggerExpansionOnTab": true, | |
"path-autocomplete.extensionOnImport": true, | |
"editor.fontSize": 36 | |
} |
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
/* | |
This code modified from: | |
https://css-tricks.com/shipping-system-fonts-github-com/ | |
*/ | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
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
{ | |
"emmet.triggerExpansionOnTab": true, | |
"path-autocomplete.extensionOnImport":true, | |
"editor.fontSize": 36, | |
"workbench.colorTheme": "Default Light+", | |
"terminal.integrated.fontSize": 24, | |
"git.ignoreMissingGitWarning": true, | |
"workbench.editor.enablePreview": false, | |
"editor.formatOnSave": true, | |
"html.format.enable": true, |
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.suggest.basic": false, | |
"php.validate.enable": 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
{ | |
"php.validate.executablePath": "C:/MAMP/bin/php/php7.1.5/php.exe" | |
} |
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
// Get Sibling Elements with Filter | |
// The getSiblings() and getChildren() code has been customized by @michaelwhyte | |
// from code found on this Stackoverflow question: | |
// https://stackoverflow.com/questions/842336/is-there-a-way-to-select-sibling-nodes | |
// | |
// The code from the stackoverflow question is based on | |
// jQuery's siblings() code | |
function getSiblings(n, filter) { | |
return getChildren(n.parentNode.firstChild, n, filter); | |
} |