/*
Setup icons
Line icons drawn for the wizard on a 24 x 24 grid, in currentColor.
WizardIcon(name) returns the markup, and any element with a data-icon
attribute gets its icon when the page starts.
*/
(function () {
var paths = {
desktop: '',
drive: '',
disk: '',
usb: '',
folder: '',
network: '',
cloud: '',
user: '',
users: '',
shield: '',
crown: '',
share: '',
windows: '',
globe: '',
terminal: '',
check: '',
chevron: '',
plus: '',
trash: '',
refresh: '',
warning: '',
info: '',
arrowRight: '',
arrowLeft: '',
sparkle: '',
flag: '',
eraser: '',
lock: '',
sun: '',
moon: '',
server: ''
};
window.WizardIcon = function (name, extraClass) {
var body = paths[name] || paths.info;
return '";
};
window.WizardFillIcons = function (root) {
var nodes = (root || document).querySelectorAll("[data-icon]");
Array.prototype.forEach.call(nodes, function (node) {
if (!node.firstChild) {
node.innerHTML = window.WizardIcon(node.getAttribute("data-icon"));
}
});
};
})();