36 lines
12 KiB
JavaScript
36 lines
12 KiB
JavaScript
var myIcons = {
|
|
blank: '<svg class="status-icon status-icon-blank status-icon status-icon--small" viewBox="0 0 24 24" role="img" aria-labelledby="blank-title" version="1.1"><title data-id="blank-title"><span>Blank</span></title></svg>',
|
|
camera: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-camera control-icon--responsive" aria-label="camera"><path fill="none" stroke="#000" stroke-width="2" d="M1,21 L1,7 L6,7 L8,3 L16,3 L18,7 L23,7 L23,21 L1,21 Z M12,18 C14.7614237,18 17,15.7614237 17,13 C17,10.2385763 14.7614237,8 12,8 C9.23857625,8 7,10.2385763 7,13 C7,15.7614237 9.23857625,18 12,18 Z"></path></svg>',
|
|
checkmark: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon-checkmark control-icon--responsive" aria-label="checkmark"><polyline fill="none" stroke="#000" stroke-width="2" points="2 14 9 20 22 4"></polyline></svg>',
|
|
circleQuestion: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-circle-question control-icon--medium control-icon--responsive" aria-label="circle question"><path fill="none" stroke="#000" stroke-width="2" d="M12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 Z M12,15 L12,14 C12,13 12,12.5 13,12 C14,11.5 15,11 15,9.5 C15,8.5 14,7 12,7 C10,7 9,8.26413718 9,10 M12,16 L12,18"></path></svg>',
|
|
close: '<svg version="1.1" viewBox="0 0 24 24" class="control-icon control-icon-close" aria-labelledby="close-title"><g data-id="close"><rect data-id="_x2E_svg" x="0" y="0" fill="none" width="24" height="24"/><path fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" d="M3,21L21,3 M3,3l18,18"/></g></svg>',
|
|
contract: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-contract control-icon--responsive" aria-label="contract"><path fill="none" stroke="#000" stroke-width="2" d="M2,14 L10,14 L10,22 M1,23 L10,14 M23,1 L14,10 M22,10 L14,10 L14,2"></path></svg>',
|
|
critical: '<svg class="status-icon status-icon-critical status-icon notification__status" viewBox="0 0 24 24" aria-labelledby="critical-title" role="img" version="1.1"><g class="status-icon__base" stroke-width="0"><path role="presentation" d="M12,0 L24,12 L12,24 L0,12 Z"></path></g><g class="status-icon__detail" fill="none"><path role="presentation" d="M8,8 L16,16" stroke-width="2"></path><path role="presentation" d="M8,16 L16,8" stroke-width="2"></path></g></svg>',
|
|
desktop: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-desktop control-icon--responsive" aria-label="desktop"><path fill="none" stroke="#000000" stroke-width="2" d="M1,1 L23,1 L23,19 L1,19 L1,1 Z M5,23 L19,23 L5,23 Z M10,19 L10,23 L10,19 Z M14,19 L14,23 L14,19 Z"></path></svg>',
|
|
expand: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-expand control-icon--responsive" aria-label="expand"><path fill="none" stroke="#000" stroke-width="2" d="M10,14 L2,22 M1,15 L1,23 L9,23 M22,2 L14,10 M15,1 L23,1 L23,9"></path></svg>',
|
|
form_checkmark: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-form-checkmark control-icon--responsive" aria-label="form-checkmark"><polyline fill="none" stroke="#000" stroke-width="2" points="6 13 10.2 16.6 18 7"></polyline></svg>',
|
|
form_close: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-form-close control-icon--responsive" aria-label="form-close"><path fill="none" stroke="#000" stroke-width="2" d="M7,7 L17,17 M7,17 L17,7"></path></svg>',
|
|
help: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-help control-icon--responsive" aria-label="help"><path fill="none" stroke="#000000" stroke-width="2" d="M12,23 C12.5522847,23 13,22.5522847 13,22 C13,21.4477153 12.5522847,21 12,21 C11.4477153,21 11,21.4477153 11,22 C11,22.5522847 11.4477153,23 12,23 Z M12,18 L12,15 C12,13 13,13 15,12 C17,11 18,9.15767339 18,7 C18,3.6862915 15.3137085,1 12,1 C8.6862915,1 6,3.6862915 6,7"></path></svg>',
|
|
indicator: '<svg version="1.1" viewBox="0 0 24 24" role="img" class="control-icon control-icon-indicator" aria-labelledby="indicator-title" role="img" preserveAspectRatio="xMidYMid meet"><g data-id="indicator"><rect fill="transparent" stroke-width="0" height="24" width="24" y="0" x="0"/></g><g><ellipse stroke-width="3" ry="9.468322" rx="9.468322" cy="11.031609" cx="11.892366" stroke="#02A8D4" fill="none"/><ellipse ry="2.759484" rx="2.759484" cy="11.107557" cx="11.816416" fill="#02A8D4"/><line y2="23.993586" x2="11.841731" y1="21.158154" x1="11.841731" stroke-width="3" stroke="#02A8D4" fill="none"/></g></svg>',
|
|
inform: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-circle-information control-icon--responsive" aria-label="circle information"><path fill="none" stroke="#000" stroke-width="2" d="M12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 Z M12,10 L12,18 M12,6 L12,8"></path></svg>',
|
|
lock: '<svg aria-label="lock" class="control-icon control-icon-lock control-icon--small control-icon--responsive" role="img" height="24px" width="24px" viewBox="0 0 24 24" version="1.1"><path d="M19,23 L19,11 L5,11 L5,23 L19,23 Z M12,15 L12,19 M17,11 L17,7 C17,4 17,1 12,1 C7,1 7,4 7,7 L7,11" stroke-width="2" stroke="#000000" fill="none"></path></svg>',
|
|
maximize: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-maximize control-icon--responsive" aria-label="maximize"><path fill="none" stroke="#ccc" stroke-width="5" d="M0,3 L24,3"></path><path fill="none" stroke="#ccc" stroke-width="2" d="M1,5 L1,21 L23,21 L23,5"></path></svg>',
|
|
ok: '<svg class="status-icon status-icon-ok status-icon notification__status" viewBox="0 0 24 24" role="img" aria-labelledby="ok-title" version="1.1"><g class="status-icon__base"><circle role="presentation" cx="12" cy="12" r="12" stroke-width="0"></circle></g><g class="status-icon__detail"><path role="presentation" d="M10,17.4 L5.3,12.7 L6.7,11.3 L10,14.6 L17.3,7.3 L18.7,8.7 L10,17.4 Z" stroke-width="0"></path></g></svg>',
|
|
pin: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-pin control-icon--responsive" aria-label="pin"><path fill="none" stroke="#000" stroke-width="2" d="M16,3 L10,9 C10,9 6,8 3,11 C3,11 13,21 13,21 C16,18 15,14 15,14 L21,8 L16,3 Z M1,23 L8,16 M14,1 L23,10"></path></svg>',
|
|
power: '<svg viewBox="0 0 24 24" role="img" class="control-icon control-icon-power" aria-labelledby="power-title" version="1.1"><g><rect x="0" fill="none" width="24" height="24"></rect><path stroke="#000000" stroke-width="2" stroke-miterlimit="10" d="M15.6235,3.75 c3.7141,1.4494,6.3412,5.0548,6.3412,9.2853C21.9647,18.5431,17.5078,23,12,23s-9.9647-4.4569-9.9647-9.9647 c0-4.2305,2.6271-7.8359,6.3412-9.2853 M12,0v10"></path></g></svg>',
|
|
radial: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-radial control-icon--responsive" aria-label="radial"><circle cx="12" cy="12" r="11" fill="none" stroke="#000" stroke-width="2"></circle></svg>',
|
|
restore: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-restore control-icon--responsive" aria-label="restore"><rect class="large" fill="none" stroke="#ccc" stroke-width="2" x="5" y="1" width="18" height="16"></rect><rect class="small" fill="none" stroke="#ccc" stroke-width="2" x="1" y="12" width="14" height="10"></rect></svg>',
|
|
spacerStatus: '<svg version="1.1" class="status-icon status-icon-critical status-icon notification__status" viewBox="0 0 48 48" role="img"><clipPath><rect width="48" height="48"></clipPath></svg>',
|
|
template: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-template control-icon--responsive" aria-label="template"><path fill="none" stroke="#000" stroke-width="2" d="M1,3 L23,3 L23,21 L1,21 L1,3 Z M1,8 L23,8 M7,8 L7,21"></path></svg>',
|
|
unknown: '<svg class="status-icon status-icon-unknown status-icon notification__status" viewBox="0 0 24 24" role="img" aria-labelledby="unknown-title" version="1.1"><g class="status-icon__base"><path role="presentation" d="M12,2 C17.5,2 22,6.5 22,12 C22,17.5 17.5,22 12,22 C6.5,22 2,17.5 2,12 C2,6.5 6.5,2 12,2 L12,2 Z M12,0 C5.4,0 0,5.4 0,12 C0,18.6 5.4,24 12,24 C18.6,24 24,18.6 24,12 C24,5.4 18.6,0 12,0 L12,0 L12,0 Z" stroke-width="0"></path></g><g class="status-icon__detail"><path role="presentation" d="M9,10.4 C9,8.8 10.4,7.6 12,7.6 C13.6,7.6 14.9,9 15,10.4 C15,11.7 14.1,12.7 12.9,13.1 C12.4,13.2 12,13.7 12,14.2 L12,15.5" fill="none" stroke-width="2"></path><circle role="presentation" stroke-width="0" cx="12" cy="17.6" r="1"></circle></g></svg>',
|
|
warning: '<svg class="status-icon status-icon-warning status-icon notification__status" viewBox="0 0 24 24" role="img" aria-labelledby="warning-title" version="1.1"><g class="status-icon__base"><path role="presentation" d="M12,0 L0,22 L24,22 L12,0 L12,0 Z" stroke-width="0"></path></g><g class="status-icon__detail" stroke-width="2" transform="translate(11.000000, 8.000000)"><path role="presentation" d="M1,0 L1,6" fill="none"></path><path role="presentation" d="M1,8 L1,10" fill="none"></path></g></svg>',
|
|
eject: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="#000" stroke-width="2" d = "M21,14 L12,2 L3,14 L21,14 Z M2,22 L22,22 L22,18 L2,18 L2,22 Z" /></svg>',
|
|
keyboard: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 2 24 24" role="img" class="control-icon control-icon-keyboard control-icon--responsive"><path fill="none" stroke="#000" stroke-width="2" d = "M2,6 L22,6 C22.5522847,6 23,6.44771525 23,7 L23,18 C23,18.5522847 22.5522847,19 22,19 L2,19 C1.44771525,19 1,18.5522847 1,18 L1,7 C1,6.44771525 1.44771525,6 2,6 Z M6,16 L18,16 M8,13 L10,13 M3,10 L5,10 M6,10 L8,10 M9,10 L11,10 M12,10 L14,10 M15,10 L17,10 M18,10 L21,10 M3,13 L7,13 M3,16 L5,16 M11,13 L13,13 M14,13 L16,13 M17,13 L21,13 M19,16 L21,16" /></svg>',
|
|
cd: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="control-icon control-icon-cd control-icon--responsive" stroke-width="0"><path fill="none" stroke="#000" stroke-width="2" d = "M12,21 C16.9705627,21 21,16.9705627 21,12 C21,7.02943725 16.9705627,3 12,3 C7.02943725,3 3,7.02943725 3,12 C3,16.9705627 7.02943725,21 12,21 Z M12,14 C13.1045695,14 14,13.1045695 14,12 C14,10.8954305 13.1045695,10 12,10 C10.8954305,10 10,10.8954305 10,12 C10,13.1045695 10.8954305,14 12,14 Z" /></svg>',
|
|
logoSmall: '<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128" class="control-icon control-icon-logo control-icon--responsive"><g fill="none" fill-rule="evenodd" stroke="#000" stroke-width="4" transform="translate(22 15)"><path stroke-linecap="round" stroke-linejoin="round" d="M0,24.5 L0,73.5 L42,98 L84,73.5 L84,24.5 L42,0 L0,24.5 Z M0,24.5 L21,36.75 L0,24.5 Z M84,24.5 L63,36.75 L84,24.5 Z M42,73.5 L42,98 L42,73.5 Z M42,24.5 L42,49 L42,24.5 Z M42,24.5 L21,36.75 L21,61.25 L42,73.5 L63,61.25 L63,36.75 L42,24.5 Z M42,49 L63,61.25 M21,61.25 L42,49" /></g></svg>',
|
|
menu: '<svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" class="control-icon control-icon-menu control-icon--responsive" aria-label="menu"><path fill="none" stroke="#000" stroke-width="2" d="M2,19 L22,19 M2,5 L22,5 M2,12 L22,12"></path></svg>'
|
|
}, oemIconpath = window.top === window.self ? "js/extendedIcons.js" : "../js/extendedIcons.js";
|
|
|
|
$.getScript(oemIconpath).done(function() {
|
|
$.extend(myIcons, extendedIcons);
|
|
}); |