code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function styleParser(node) { var style = node.getAttribute("style"); var val = []; if (style) { val = style.split(";").reduce(function (acc, style) { var styles = style.split(":"); var prop = styles[0]; var value = styles.slice(1); if (prop && value.length > 0) { ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
styleParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function classParser(node) { var existingPrefix = node.getAttribute("data-prefix"); var existingIconName = node.getAttribute("data-icon"); var innerText = node.innerText !== undefined ? node.innerText.trim() : ""; var val = getCanonicalIcon(classArray(node)); if (existingPrefix && existingIconName)...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
classParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
parseTransformString = function parseTransformString(transformString) { var transform = { size: 16, x: 0, y: 0, flipX: false, flipY: false, rotate: 0, }; if (!transformString) { return transform; } else { return transformString .toLowerCase() ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
parseTransformString
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function transformParser(node) { return parseTransformString(node.getAttribute("data-fa-transform")); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
transformParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function symbolParser(node) { var symbol = node.getAttribute("data-fa-symbol"); return symbol === null ? false : symbol === "" ? true : symbol; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
symbolParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function attributesParser(node) { var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) { if (acc.name !== "class" && acc.name !== "style") { acc[attr.name] = attr.value; } return acc; }, {}); var title = node.getAttribute("title"); if (config.autoA11y) {...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
attributesParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function maskParser(node) { var mask = node.getAttribute("data-fa-mask"); if (!mask) { return emptyCanonicalIcon(); } else { return getCanonicalIcon( mask.split(" ").map(function (i) { return i.trim(); }) ); } }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
maskParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function blankMeta() { return { iconName: null, title: null, prefix: null, transform: meaninglessTransform, symbol: false, mask: null, extra: { classes: [], styles: {}, attributes: {}, }, }; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
blankMeta
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function parseMeta(node) { var _classParser = classParser(node), iconName = _classParser.iconName, prefix = _classParser.prefix, extraClasses = _classParser.rest; var extraStyles = styleParser(node); var transform = transformParser(node); var symbol = symbolParser(node); var extra...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
parseMeta
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function MissingIcon(error) { this.name = "MissingIcon"; this.message = error || "Icon unavailable"; this.stack = new Error().stack; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
MissingIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function asFoundIcon(icon) { var width = icon[0]; var height = icon[1]; var _icon$slice = icon.slice(4), _icon$slice2 = _slicedToArray(_icon$slice, 1), vectorData = _icon$slice2[0]; var element = null; if (Array.isArray(vectorData)) { element = { tag: "g", attrib...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
asFoundIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function findIcon(iconName, prefix) { return new picked(function (resolve, reject) { var val = { found: false, width: 512, height: 512, icon: missing, }; if ( iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName] ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
findIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function generateSvgReplacementMutation(node, nodeMeta) { var iconName = nodeMeta.iconName, title = nodeMeta.title, prefix = nodeMeta.prefix, transform = nodeMeta.transform, symbol = nodeMeta.symbol, mask = nodeMeta.mask, extra = nodeMeta.extra; return new picked(function (re...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
generateSvgReplacementMutation
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function generateLayersText(node, nodeMeta) { var title = nodeMeta.title, transform = nodeMeta.transform, extra = nodeMeta.extra; var width = null; var height = null; if (IS_IE) { var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10); var boundingClientRect = node...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
generateLayersText
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function generateMutation(node) { var nodeMeta = parseMeta(node); if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) { return generateLayersText(node, nodeMeta); } else { return generateSvgReplacementMutation(node, nodeMeta); } }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
generateMutation
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function onTree(root) { var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; if (!IS_DOM) return; var htmlClassList = DOCUMENT.documentElement.classList; var hclAdd = function hclAdd(suffix) { return htmlClassList.add( "".concat(HTML_CLASS_I2SVG_B...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
onTree
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
hclAdd = function hclAdd(suffix) { return htmlClassList.add( "".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix) ); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
hclAdd
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
hclRemove = function hclRemove(suffix) { return htmlClassList.remove( "".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix) ); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
hclRemove
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function onNode(node) { var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; generateMutation(node).then(function (mutation) { if (mutation) { perform([mutation], callback); } }); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
onNode
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function replaceForPosition(node, position) { var pendingAttribute = "" .concat(DATA_FA_PSEUDO_ELEMENT_PENDING) .concat(position.replace(":", "-")); return new picked(function (resolve, reject) { if (node.getAttribute(pendingAttribute) !== null) { // This node is already being processe...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
replaceForPosition
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function replace(node) { return picked.all([ replaceForPosition(node, ":before"), replaceForPosition(node, ":after"), ]); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
replace
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function processable(node) { return ( node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf( node.tagName.toUpperCase() ) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== "svg") ); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
processable
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function searchPseudoElements(root) { if (!IS_DOM) return; return new picked(function (resolve, reject) { var operations = toArray(root.querySelectorAll("*")) .filter(processable) .map(replace); var end = perf.begin("searchPseudoElements"); disableObservation(); picked ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
searchPseudoElements
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function css() { var dfp = DEFAULT_FAMILY_PREFIX; var drc = DEFAULT_REPLACEMENT_CLASS; var fp = config.familyPrefix; var rc = config.replacementClass; var s = baseStyles; if (fp !== dfp || rc !== drc) { var dPatt = new RegExp("\\.".concat(dfp, "\\-"), "g"); var customPropPatt = new ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
css
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function Library() { _classCallCheck(this, Library); this.definitions = {}; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
Library
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function ensureCss() { if (config.autoAddCss && !_cssInserted) { insertCss(css()); _cssInserted = true; } }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
ensureCss
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function apiObject(val, abstractCreator) { Object.defineProperty(val, "abstract", { get: abstractCreator, }); Object.defineProperty(val, "html", { get: function get() { return val.abstract.map(function (a) { return toHtml(a); }); }, }); Object.defineProper...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
apiObject
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function findIconDefinition(iconLookup) { var _iconLookup$prefix = iconLookup.prefix, prefix = _iconLookup$prefix === void 0 ? "fa" : _iconLookup$prefix, iconName = iconLookup.iconName; if (!iconName) return; return ( iconFromMapping(library.definitions, prefix, iconName) || iconFrom...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
findIconDefinition
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function resolveIcons(next) { return function (maybeIconDefinition) { var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {}); ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
resolveIcons
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
noAuto = function noAuto() { config.autoReplaceSvg = false; config.observeMutations = false; disconnect(); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
noAuto
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
text = function text(content) { var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var _params$transform2 = params.transform, transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2, _params$title2 = pa...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
text
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
counter = function counter(content) { var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var _params$title3 = params.title, title = _params$title3 === void 0 ? null : _params$title3, _params$classes3 = params.classes, classes = _params$classes3 === void ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
counter
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
layer = function layer(assembler) { var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var _params$classes4 = params.classes, classes = _params$classes4 === void 0 ? [] : _params$classes4; return apiObject( { type: "layer", }, function ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
layer
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
autoReplace = function autoReplace() { var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var _params$autoReplaceSv = params.autoReplaceSvgRoot, autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv; if ( (Object....
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
autoReplace
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function bootstrap() { if (IS_BROWSER) { if (!WINDOW.FontAwesome) { WINDOW.FontAwesome = api; } domready(function () { autoReplace(); observe({ treeCallback: onTree, nodeCallback: onNode, pseudoElementsCallback: searchPseudoElements, }...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
bootstrap
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/all.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/all.js
MIT
function safeAdd(x, y) { var lsw = (x & 0xffff) + (y & 0xffff); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xffff); }
Add integers, wrapping at 2^32. This uses 16-bit operations internally to work around bugs in interpreters. @param {number} x First integer @param {number} y Second integer @returns {number} Sum
safeAdd
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function bitRotateLeft(num, cnt) { return (num << cnt) | (num >>> (32 - cnt)); }
Bitwise rotate a 32-bit number to the left. @param {number} num 32-bit number @param {number} cnt Rotation count @returns {number} Rotated number
bitRotateLeft
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function md5cmn(q, a, b, x, s, t) { return safeAdd( bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b ); }
Basic operation the algorithm uses. @param {number} q q @param {number} a a @param {number} b b @param {number} x x @param {number} s s @param {number} t t @returns {number} Result
md5cmn
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function md5ff(a, b, c, d, x, s, t) { return md5cmn((b & c) | (~b & d), a, b, x, s, t); }
Basic operation the algorithm uses. @param {number} a a @param {number} b b @param {number} c c @param {number} d d @param {number} x x @param {number} s s @param {number} t t @returns {number} Result
md5ff
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function md5gg(a, b, c, d, x, s, t) { return md5cmn((b & d) | (c & ~d), a, b, x, s, t); }
Basic operation the algorithm uses. @param {number} a a @param {number} b b @param {number} c c @param {number} d d @param {number} x x @param {number} s s @param {number} t t @returns {number} Result
md5gg
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function md5hh(a, b, c, d, x, s, t) { return md5cmn(b ^ c ^ d, a, b, x, s, t); }
Basic operation the algorithm uses. @param {number} a a @param {number} b b @param {number} c c @param {number} d d @param {number} x x @param {number} s s @param {number} t t @returns {number} Result
md5hh
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function md5ii(a, b, c, d, x, s, t) { return md5cmn(c ^ (b | ~d), a, b, x, s, t); }
Basic operation the algorithm uses. @param {number} a a @param {number} b b @param {number} c c @param {number} d d @param {number} x x @param {number} s s @param {number} t t @returns {number} Result
md5ii
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function binlMD5(x, len) { /* append padding */ x[len >> 5] |= 0x80 << len % 32; x[(((len + 64) >>> 9) << 4) + 14] = len; var i; var olda; var oldb; var oldc; var oldd; var a = 1732584193; var b = -271733879; var c = -1732584194; ...
Calculate the MD5 of an array of little-endian words, and a bit length. @param {Array} x Array of little-endian words @param {number} len Bit length @returns {Array<number>} MD5 Array
binlMD5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function binl2rstr(input) { var i; var output = ""; var length32 = input.length * 32; for (i = 0; i < length32; i += 8) { output += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff); } return output; }
Convert an array of little-endian words to a string @param {Array<number>} input MD5 Array @returns {string} MD5 string
binl2rstr
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function rstr2binl(input) { var i; var output = []; output[(input.length >> 2) - 1] = undefined; for (i = 0; i < output.length; i += 1) { output[i] = 0; } var length8 = input.length * 8; for (i = 0; i < length8; i += 8) { output[i >> 5] |= (...
Convert a raw string to an array of little-endian words Characters >255 have their high-byte silently ignored. @param {string} input Raw input string @returns {Array<number>} Array of little-endian words
rstr2binl
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function rstrMD5(s) { return binl2rstr(binlMD5(rstr2binl(s), s.length * 8)); }
Calculate the MD5 of a raw string @param {string} s Input string @returns {string} Raw MD5 string
rstrMD5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function rstrHMACMD5(key, data) { var i; var bkey = rstr2binl(key); var ipad = []; var opad = []; var hash; ipad[15] = opad[15] = undefined; if (bkey.length > 16) { bkey = binlMD5(bkey, key.length * 8); } for (i = 0; i < 16; i += 1) { ...
Calculates the HMAC-MD5 of a key and some data (raw strings) @param {string} key HMAC key @param {string} data Raw input string @returns {string} Raw MD5 string
rstrHMACMD5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function rstr2hex(input) { var hexTab = "0123456789abcdef"; var output = ""; var x; var i; for (i = 0; i < input.length; i += 1) { x = input.charCodeAt(i); output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f); } return output; ...
Convert a raw string to a hex string @param {string} input Raw input string @returns {string} Hex encoded string
rstr2hex
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function str2rstrUTF8(input) { return unescape(encodeURIComponent(input)); }
Encode a string as UTF-8 @param {string} input Input string @returns {string} UTF8 string
str2rstrUTF8
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function rawMD5(s) { return rstrMD5(str2rstrUTF8(s)); }
Encodes input string as raw MD5 string @param {string} s Input string @returns {string} Raw MD5 string
rawMD5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function hexMD5(s) { return rstr2hex(rawMD5(s)); }
Encodes input string as Hex encoded string @param {string} s Input string @returns {string} Hex encoded string
hexMD5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function rawHMACMD5(k, d) { return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d)); }
Calculates the raw HMAC-MD5 for the given key and data @param {string} k HMAC key @param {string} d Input string @returns {string} Raw MD5 string
rawHMACMD5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function hexHMACMD5(k, d) { return rstr2hex(rawHMACMD5(k, d)); }
Calculates the Hex encoded HMAC-MD5 for the given key and data @param {string} k HMAC key @param {string} d Input string @returns {string} Raw MD5 string
hexHMACMD5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function md5(string, key, raw) { if (!key) { if (!raw) { return hexMD5(string); } return rawMD5(string); } if (!raw) { return hexHMACMD5(key, string); } return rawHMACMD5(key, string); }
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
md5
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function md5ForNode(node) { if (null === node || "object" !== _typeof(node)) return undefined; if (node.src) { return md5(node.src); } else if (node.href) { return md5(node.href); } else if (node.innerText && "" !== node.innerText) { // eslint-disable-line yoda return md5(node.i...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
md5ForNode
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function pollUntil(_ref) { var _ref$fn = _ref.fn, fn = _ref$fn === void 0 ? function () { return true; } : _ref$fn, _ref$initialDuration = _ref.initialDuration, initialDuration = _ref$initialDuration === void 0 ? 1 : _ref$initialDuratio...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
pollUntil
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function poll(duration, cumulativeDuration) { setTimeout(function () { var result = fn(); if (showProgress) { console.info(progressIndicator); } if (!!result) { // eslint-disable-line no-extra-boolean-cast resolve(result); }...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
poll
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function detectWebfontConflicts() { var linkTags = Array.from(DOCUMENT.getElementsByTagName("link")).filter( function (t) { return !t.hasAttribute(detectionIgnoreAttr); } ); var styleTags = Array.from(DOCUMENT.getElementsByTagName("style")).filter( function (t) { if (t.hasA...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
detectWebfontConflicts
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function runDiag(scriptOrLinkTag, md5) { var diagFrame = DOCUMENT.createElement("iframe"); // Using "visibility: hidden; position: absolute" instead of "display: none;" because // Firefox will not return the expected results for getComputedStyle if our iframe has display: none. diagFrame.setAttribute...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
runDiag
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
diagScriptFun = function diagScriptFun( nodeUnderTestId, testIconId, md5, parentOrigin ) { parent.FontAwesomeDetection.__pollUntil({ fn: function fn() { var iEl = document.getElementById(testIconId); var computedStyle = window.getComputedSt...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
diagScriptFun
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function detectSvgConflicts(currentScript) { var scripts = Array.from(DOCUMENT.scripts).filter(function (t) { return !t.hasAttribute(detectionIgnoreAttr) && t !== currentScript; }); var scriptsByMD5 = {}; var _loop = function _loop(scriptIdx) { var diagFrame = DOCUMENT.createElement("iframe...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
detectSvgConflicts
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
_loop = function _loop(scriptIdx) { var diagFrame = DOCUMENT.createElement("iframe"); diagFrame.setAttribute("style", "display:none;"); var scriptUnderTest = DOCUMENT.createElement("script"); scriptUnderTest.setAttribute("id", nodeUnderTestId); var md5ForScript = md5ForNode(scripts[scriptI...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
_loop
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
diagScriptFun = function diagScriptFun( nodeUnderTestId, md5, parentOrigin ) { parent.FontAwesomeDetection.__pollUntil({ fn: function fn() { return !!window.FontAwesomeConfig; }, }) .then(function () { var scriptNode = d...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
diagScriptFun
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function setDoneResults(_ref2) { var nodesTested = _ref2.nodesTested, nodesFound = _ref2.nodesFound; WINDOW.FontAwesomeDetection = WINDOW.FontAwesomeDetection || {}; WINDOW.FontAwesomeDetection.nodesTested = nodesTested; WINDOW.FontAwesomeDetection.nodesFound = nodesFound; WINDOW.FontAwesomeDe...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
setDoneResults
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function conflictDetection() { var report$$1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {}; var nodesTested = { conflict: {}, noConflict: {}, }; WINDOW.onmessage = function (e) { if ( WINDOW.location.origin === "file...
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
conflictDetection
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
function bunker(fn) { try { fn(); } catch (e) { if (!PRODUCTION) { throw e; } } }
Calculates MD5 value for a given string. If a key is provided, calculates the HMAC-MD5 value. Returns a Hex encoded string unless the raw argument is given. @param {string} string Input string @param {string} [key] HMAC key @param {boolean} raw Raw oytput switch @returns {string} MD5 output
bunker
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/conflict-detection.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/conflict-detection.js
MIT
bindInternal4 = function bindInternal4(func, thisContext) { return function (a, b, c, d) { return func.call(thisContext, a, b, c, d); }; }
Internal helper to bind a function known to have 4 arguments to a given context.
bindInternal4
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
reduce = function fastReduceObject( subject, fn, initialValue, thisContext ) { var keys = Object.keys(subject), length = keys.length, iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn, i, key, result; if (initialValue === undefine...
# Reduce A fast object `.reduce()` implementation. @param {Object} subject The object to reduce over. @param {Function} fn The reducer function. @param {mixed} initialValue The initial value for the reducer, defaults to subject[0]. @param {Object} thisContext The context for the reducer. @r...
reduce
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function toHex(unicode) { var result = ""; for (var i = 0; i < unicode.length; i++) { var hex = unicode.charCodeAt(i).toString(16); result += ("000" + hex).slice(-4); } return result; }
# Reduce A fast object `.reduce()` implementation. @param {Object} subject The object to reduce over. @param {Function} fn The reducer function. @param {mixed} initialValue The initial value for the reducer, defaults to subject[0]. @param {Object} thisContext The context for the reducer. @r...
toHex
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function defineIcons(prefix, icons) { var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var _params$skipHooks = params.skipHooks, skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks; var normalized = Object.keys(icons).reduce(function (acc, ico...
# Reduce A fast object `.reduce()` implementation. @param {Object} subject The object to reduce over. @param {Function} fn The reducer function. @param {mixed} initialValue The initial value for the reducer, defaults to subject[0]. @param {Object} thisContext The context for the reducer. @r...
defineIcons
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
build = function build() { var lookup = function lookup(reducer) { return reduce( styles, function (o, style, prefix) { o[prefix] = reduce(style, reducer, {}); return o; }, {} ); }; _byUnicode = lookup(function (acc, icon, iconName) { if...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
build
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
lookup = function lookup(reducer) { return reduce( styles, function (o, style, prefix) { o[prefix] = reduce(style, reducer, {}); return o; }, {} ); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
lookup
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function byUnicode(prefix, unicode) { return (_byUnicode[prefix] || {})[unicode]; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
byUnicode
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function byLigature(prefix, ligature) { return (_byLigature[prefix] || {})[ligature]; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
byLigature
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function byOldName(name) { return ( _byOldName[name] || { prefix: null, iconName: null, } ); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
byOldName
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
emptyCanonicalIcon = function emptyCanonicalIcon() { return { prefix: null, iconName: null, rest: [], }; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
emptyCanonicalIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function getCanonicalIcon(values) { return values.reduce(function (acc, cls) { var iconName = getIconName(config.familyPrefix, cls); if (styles$1[cls]) { acc.prefix = cls; } else if ( config.autoFetchSvg && ["fas", "far", "fal", "fad", "fab", "fa"].indexOf(cls) > -1 ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
getCanonicalIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function iconFromMapping(mapping, prefix, iconName) { if (mapping && mapping[prefix] && mapping[prefix][iconName]) { return { prefix: prefix, iconName: iconName, icon: mapping[prefix][iconName], }; } }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
iconFromMapping
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function toHtml(abstractNodes) { var tag = abstractNodes.tag, _abstractNodes$attrib = abstractNodes.attributes, attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib, _abstractNodes$childr = abstractNodes.children, children = _abstractNodes$childr === void 0 ? []...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
toHtml
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function isWatched(node) { var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null; return typeof i2svg === "string"; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
isWatched
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function getMutator() { if (config.autoReplaceSvg === true) { return mutators.replace; } var mutator = mutators[config.autoReplaceSvg]; return mutator || mutators.replace; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
getMutator
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function perform(mutations, callback) { var callbackFunction = typeof callback === "function" ? callback : noop$2; if (mutations.length === 0) { callbackFunction(); } else { var frame = performOperationSync; if (config.mutateApproach === MUTATION_APPROACH_ASYNC) { frame = WINDOW....
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
perform
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function disableObservation() { disabled = true; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
disableObservation
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function enableObservation() { disabled = false; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
enableObservation
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function observe(options) { if (!MUTATION_OBSERVER) { return; } if (!config.observeMutations) { return; } var treeCallback = options.treeCallback, nodeCallback = options.nodeCallback, pseudoElementsCallback = options.pseudoElementsCallback, _options$observeMutat = opt...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
observe
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function disconnect() { if (!mo) return; mo.disconnect(); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
disconnect
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function styleParser(node) { var style = node.getAttribute("style"); var val = []; if (style) { val = style.split(";").reduce(function (acc, style) { var styles = style.split(":"); var prop = styles[0]; var value = styles.slice(1); if (prop && value.length > 0) { ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
styleParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function classParser(node) { var existingPrefix = node.getAttribute("data-prefix"); var existingIconName = node.getAttribute("data-icon"); var innerText = node.innerText !== undefined ? node.innerText.trim() : ""; var val = getCanonicalIcon(classArray(node)); if (existingPrefix && existingIconName)...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
classParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
parseTransformString = function parseTransformString(transformString) { var transform = { size: 16, x: 0, y: 0, flipX: false, flipY: false, rotate: 0, }; if (!transformString) { return transform; } else { return transformString .toLowerCase() ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
parseTransformString
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function transformParser(node) { return parseTransformString(node.getAttribute("data-fa-transform")); }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
transformParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function symbolParser(node) { var symbol = node.getAttribute("data-fa-symbol"); return symbol === null ? false : symbol === "" ? true : symbol; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
symbolParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function attributesParser(node) { var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) { if (acc.name !== "class" && acc.name !== "style") { acc[attr.name] = attr.value; } return acc; }, {}); var title = node.getAttribute("title"); if (config.autoA11y) {...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
attributesParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function maskParser(node) { var mask = node.getAttribute("data-fa-mask"); if (!mask) { return emptyCanonicalIcon(); } else { return getCanonicalIcon( mask.split(" ").map(function (i) { return i.trim(); }) ); } }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
maskParser
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function blankMeta() { return { iconName: null, title: null, prefix: null, transform: meaninglessTransform, symbol: false, mask: null, extra: { classes: [], styles: {}, attributes: {}, }, }; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
blankMeta
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function parseMeta(node) { var _classParser = classParser(node), iconName = _classParser.iconName, prefix = _classParser.prefix, extraClasses = _classParser.rest; var extraStyles = styleParser(node); var transform = transformParser(node); var symbol = symbolParser(node); var extra...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
parseMeta
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function MissingIcon(error) { this.name = "MissingIcon"; this.message = error || "Icon unavailable"; this.stack = new Error().stack; }
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
MissingIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function asFoundIcon(icon) { var width = icon[0]; var height = icon[1]; var _icon$slice = icon.slice(4), _icon$slice2 = _slicedToArray(_icon$slice, 1), vectorData = _icon$slice2[0]; var element = null; if (Array.isArray(vectorData)) { element = { tag: "g", attrib...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
asFoundIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function findIcon(iconName, prefix) { return new picked(function (resolve, reject) { var val = { found: false, width: 512, height: 512, icon: missing, }; if ( iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName] ...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
findIcon
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function generateSvgReplacementMutation(node, nodeMeta) { var iconName = nodeMeta.iconName, title = nodeMeta.title, prefix = nodeMeta.prefix, transform = nodeMeta.transform, symbol = nodeMeta.symbol, mask = nodeMeta.mask, extra = nodeMeta.extra; return new picked(function (re...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
generateSvgReplacementMutation
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT
function generateLayersText(node, nodeMeta) { var title = nodeMeta.title, transform = nodeMeta.transform, extra = nodeMeta.extra; var width = null; var height = null; if (IS_IE) { var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10); var boundingClientRect = node...
Font Awesome 4 used the prefix of `fa` for all icons. With the introduction of new styles we needed to differentiate between them. Prefix `fa` is now an alias for `fas` so we'll easy the upgrade process for our users by automatically defining this as well.
generateLayersText
javascript
ashutosh1919/masterPortfolio
src/assets/font-awesome/js/fontawesome.js
https://github.com/ashutosh1919/masterPortfolio/blob/master/src/assets/font-awesome/js/fontawesome.js
MIT