vue-keyboards
Version:
A Vue keyboard component
1 lines • 3.05 kB
JavaScript
(function(window){var svgSprite='<svg><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M875.593995 186.122001l-484.791311 0c-13.570063 0-26.584472 5.390777-36.178991 14.986319L79.908958 475.821009c-9.595542 9.595542-14.986319 22.60995-14.986319 36.178991s5.390777 26.584472 14.986319 36.178991l274.713712 274.711665c9.595542 9.595542 22.608927 14.986319 36.178991 14.986319l484.791311 0c46.033429 0 83.48439-37.449937 83.48439-83.483366L959.077362 269.606391C959.078385 223.572962 921.627425 186.122001 875.593995 186.122001zM907.913075 754.395656c0 17.84953-14.471596 32.318056-32.31908 32.318056l-484.791311 0L116.088972 512.001023 390.802684 237.287311l484.791311 0c17.848507 0 32.31908 14.46955 32.31908 32.31908L907.913075 754.395656z" ></path><path d="M753.945401 360.214015 632.515794 481.642598 511.085164 360.214015c0 0-16.061814-8.224312-30.356378 6.072299-14.294564 14.294564-6.072299 30.356378-6.072299 30.356378l121.429607 121.428583L486.800062 627.357308c0 0-8.222265 16.061814 6.072299 30.356378 14.296611 14.296611 30.357402 6.072299 30.357402 6.072299l109.286032-109.285009 109.286032 109.285009c0 0 16.061814 8.224312 30.357402-6.072299 14.294564-14.294564 6.070252-30.356378 6.070252-30.356378L668.944472 518.072299 790.375102 396.642692c0 0 8.220219-16.061814-6.074346-30.356378C770.007215 351.989703 753.945401 360.214015 753.945401 360.214015z" ></path></symbol></svg>';var script=function(){var scripts=document.getElementsByTagName("script");return scripts[scripts.length-1]}();var shouldInjectCss=script.getAttribute("data-injectcss");var ready=function(fn){if(document.addEventListener){if(~["complete","loaded","interactive"].indexOf(document.readyState)){setTimeout(fn,0)}else{var loadFn=function(){document.removeEventListener("DOMContentLoaded",loadFn,false);fn()};document.addEventListener("DOMContentLoaded",loadFn,false)}}else if(document.attachEvent){IEContentLoaded(window,fn)}function IEContentLoaded(w,fn){var d=w.document,done=false,init=function(){if(!done){done=true;fn()}};var polling=function(){try{d.documentElement.doScroll("left")}catch(e){setTimeout(polling,50);return}init()};polling();d.onreadystatechange=function(){if(d.readyState=="complete"){d.onreadystatechange=null;init()}}}};var before=function(el,target){target.parentNode.insertBefore(el,target)};var prepend=function(el,target){if(target.firstChild){before(el,target.firstChild)}else{target.appendChild(el)}};function appendSvg(){var div,svg;div=document.createElement("div");div.innerHTML=svgSprite;svgSprite=null;svg=div.getElementsByTagName("svg")[0];if(svg){svg.setAttribute("aria-hidden","true");svg.style.position="absolute";svg.style.width=0;svg.style.height=0;svg.style.overflow="hidden";prepend(svg,document.body)}}if(shouldInjectCss&&!window.__iconfont__svg__cssinject__){window.__iconfont__svg__cssinject__=true;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}ready(appendSvg)})(window)