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
| 'use strict'; | |
| (() => { | |
| class QuerySelector { | |
| constructor(origin) { | |
| /** | |
| * :nth-of-type is only ie9+ https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type |
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
| 'use strict'; | |
| function deepsearch_find_first_object(needle, haystack, parent) { | |
| let iterable; | |
| if (Object.prototype.toString.call(haystack) === '[object Array]') { | |
| iterable = haystack; | |
| } else if (Object.prototype.toString.call(haystack) === '[object Object]') { | |
| iterable = Object.keys(haystack); |
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 pathfinder(needle, haystack, child = haystack, parent, result = [], path = [], paths = [[[haystack]]], siblingIndex = 0, depthIndex = 0, rootIndex, onRoot) { | |
| let iterable = []; | |
| if (Object.prototype.toString.call(child) === '[object Array]') { | |
| iterable = child; | |
| } else if (Object.prototype.toString.call(child) === '[object Object]') { | |
| iterable = Object.keys(child); | |
| } |
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 deepsearch_find_first_make_path(needle, haystack, delimiter = '.', path = []) { | |
| let i = 0; | |
| let p; | |
| let found; | |
| if (Object.prototype.toString.call(haystack) === '[object Array]') { | |
| for (i; i < haystack.length; i++) { | |
| found = deepsearch_find_first_make_path(needle, haystack[i], delimiter, path.concat(i)); | |
| if (found && found !== path) { |
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 deepsearch_pull_matches(needle, haystack, parent, bucket = []) { | |
| let i = 0; | |
| let p; | |
| let found; | |
| if (Object.prototype.toString.call(haystack) === '[object Array]') { | |
| for (i; i < haystack.length; i++) { | |
| found = ds(needle, haystack[i], haystack, bucket); | |
| if (found !== undefined && found !== bucket) |
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 deepsearch_get_keys(haystack, bucket = []) { | |
| let i = 0; | |
| let p; | |
| if (Object.prototype.toString.call(haystack) === '[object Array]') { | |
| for (i; i < haystack.length; i++) | |
| ds(haystack[i], bucket); | |
| } | |
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
| 'use strict'; | |
| function deepsearch_find_first(needle, haystack, parent) { | |
| let iterable; | |
| if (Object.prototype.toString.call(haystack) === '[object Array]') { | |
| iterable = haystack; | |
| } else if (Object.prototype.toString.call(haystack) === '[object Object]') { | |
| iterable = Object.keys(haystack); |
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
| breakpoints: | |
| mobile: | |
| max: "600px" | |
| tablet: | |
| min: "601px" | |
| max: "1000px" | |
| desktop: | |
| min: "1001px" |
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(root, name, factory) { | |
| root[name] = factory(); | |
| })(this, 'Log', function() { | |
| 'use strict'; | |
| /** | |
| * @constructor Log | |
| * logs pretty, easy | |
| * | |
| * @param {string} - message to log |
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 path = require('path'), | |
| webpack = require('webpack'), | |
| packageJson = require('./package.json'); | |
| module.exports = { | |
| devtool: 'eval', | |
| context: __dirname, |