| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- ;(function(window) {
- var svgSprite = '<svg>' +
- ''+
- '<symbol id="icon-appreciate" viewBox="0 0 1024 1024">'+
- ''+
- '<path d="M96 896c-17.664 0-32-14.304-32-32L64 416c0-17.664 14.336-32 32-32s32 14.336 32 32l0 448C128 881.696 113.664 896 96 896z" ></path>'+
- ''+
- '<path d="M864.32 384l-189.376 0c13.792-32 29.6-114.72 20.352-189.952-7.328-60.032-42.368-106.08-93.728-123.456-38.08-12.896-78.208-6.624-99.84 15.456-25.792 26.304-37.888 75.904-50.688 128.352-8.384 34.336-17.056 69.888-27.84 88.16-31.104 52.896-96.256 77.024-109.376 81.44L224 384c-17.664 0-32 14.336-32 32l0 448c0 17.696 14.336 32 32 32l86.592 0c26.752 14.496 126.4 64 241.76 64l215.936 0c35.552 0 96.8-13.76 119.712-51.712 23.136-38.464 71.936-388.672 71.936-427.488C959.936 427.328 907.616 384 864.32 384zM833.152 875.296c-4.8 8-36.48 20.704-64.864 20.704l-215.936 0c-114.336 0-215.168-64-216.16-64 0 0-0.032 0-0.032 0-4.8 0-10.112 0-16.128 0L256 832 256 448l64 0c2.624 0 4.96-0.896 7.392-1.504 0.512-0.128 0.992 0.032 1.504-0.128 0.224-0.064 0.864-0.256 1.696-0.512 0.832-0.288 1.728-0.448 2.528-0.832 19.456-6.432 102.528-37.344 145.216-110.016 15.52-26.4 24.928-64.8 34.848-105.408 9.248-37.856 20.736-84.928 34.112-98.592 3.072-2.624 18.016-5.952 36.8 1.44 15.328 6.048 41.952 23.136 47.648 69.664 12.608 102.496-31.392 200.096-31.84 201.088-4.576 9.92-3.744 21.152 2.144 30.336 5.888 9.152 16 14.432 26.912 14.432l235.328 0c8.672 0 31.616 15.04 31.616 32.768C895.936 523.424 846.528 844.992 833.152 875.296z" ></path>'+
- ''+
- '</symbol>'+
- ''+
- '<symbol id="icon-check" viewBox="0 0 1024 1024">'+
- ''+
- '<path d="M887.904 298.208c-12.864-12.064-33.152-11.488-45.216 1.408L415.936 753.984l-233.12-229.696C170.208 511.872 149.952 512 137.536 524.608c-12.416 12.576-12.256 32.864 0.352 45.248l256.48 252.672c0.096 0.096 0.224 0.128 0.32 0.224 0.096 0.096 0.128 0.224 0.224 0.32 2.016 1.92 4.448 3.008 6.784 4.288 1.152 0.672 2.144 1.664 3.36 2.144 3.776 1.472 7.776 2.24 11.744 2.24 4.192 0 8.384-0.832 12.288-2.496 1.312-0.544 2.336-1.664 3.552-2.368 2.4-1.408 4.896-2.592 6.944-4.672 0.096-0.096 0.128-0.256 0.224-0.352 0.064-0.096 0.192-0.128 0.288-0.224l449.184-478.208C901.44 330.592 900.768 310.336 887.904 298.208z" ></path>'+
- ''+
- '</symbol>'+
- ''+
- '<symbol id="icon-close" viewBox="0 0 1024 1024">'+
- ''+
- '<path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128l-265.344 263.936-263.04-263.84C236.64 191.584 216.384 191.52 203.84 204 191.328 216.48 191.296 236.736 203.776 249.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248 6.24 6.272 14.464 9.44 22.688 9.44 8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408 8.192 0 16.352-3.136 22.592-9.344 12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" ></path>'+
- ''+
- '</symbol>'+
- ''+
- '<symbol id="icon-warn" viewBox="0 0 1024 1024">'+
- ''+
- '<path d="M849.12 928.704 174.88 928.704c-45.216 0-81.536-17.728-99.68-48.64-18.144-30.912-15.936-71.296 6.08-110.752L421.472 159.648c22.144-39.744 55.072-62.528 90.304-62.528s68.128 22.752 90.336 62.464l340.544 609.792c22.016 39.456 24.288 79.808 6.112 110.72C930.656 911.008 894.304 928.704 849.12 928.704zM511.808 161.12c-11.2 0-24.032 11.104-34.432 29.696L137.184 800.544c-10.656 19.136-13.152 36.32-6.784 47.168 6.368 10.816 22.592 17.024 44.48 17.024l674.24 0c21.92 0 38.112-6.176 44.48-17.024 6.336-10.816 3.872-28-6.816-47.136L546.24 190.816C535.872 172.224 522.976 161.12 511.808 161.12z" ></path>'+
- ''+
- '<path d="M512 640c-17.664 0-32-14.304-32-32l0-288c0-17.664 14.336-32 32-32s32 14.336 32 32l0 288C544 625.696 529.664 640 512 640z" ></path>'+
- ''+
- '<path d="M512 752.128m-48 0a1.5 1.5 0 1 0 96 0 1.5 1.5 0 1 0-96 0Z" ></path>'+
- ''+
- '</symbol>'+
- ''+
- '<symbol id="icon-delete" viewBox="0 0 1024 1024">'+
- ''+
- '<path d="M608 768c-17.696 0-32-14.304-32-32L576 384c0-17.696 14.304-32 32-32s32 14.304 32 32l0 352C640 753.696 625.696 768 608 768z" ></path>'+
- ''+
- '<path d="M416 768c-17.696 0-32-14.304-32-32L384 384c0-17.696 14.304-32 32-32s32 14.304 32 32l0 352C448 753.696 433.696 768 416 768z" ></path>'+
- ''+
- '<path d="M928 224l-160 0L768 160c0-52.928-42.72-96-95.264-96L352 64C299.072 64 256 107.072 256 160l0 64L96 224C78.304 224 64 238.304 64 256s14.304 32 32 32l832 0c17.696 0 32-14.304 32-32S945.696 224 928 224zM320 160c0-17.632 14.368-32 32-32l320.736 0C690.272 128 704 142.048 704 160l0 64L320 224 320 160z" ></path>'+
- ''+
- '<path d="M736.128 960 288.064 960c-52.928 0-96-43.072-96-96L192.064 383.52c0-17.664 14.336-32 32-32s32 14.336 32 32L256.064 864c0 17.664 14.368 32 32 32l448.064 0c17.664 0 32-14.336 32-32L768.128 384.832c0-17.664 14.304-32 32-32s32 14.336 32 32L832.128 864C832.128 916.928 789.056 960 736.128 960z" ></path>'+
- ''+
- '</symbol>'+
- ''+
- '<symbol id="icon-notice" viewBox="0 0 1024 1024">'+
- ''+
- '<path d="M889.92 749.728c-1.184-1.632-119.232-166.144-119.232-287.392 0-168.448-76.16-254.784-162.688-287.008L608 160c0-52.928-43.072-96-96-96s-96 43.072-96 96l0 16.576c-10.784 7.904-16.096 21.792-11.808 35.232 5.376 16.832 23.424 26.048 40.224 20.736C462.176 226.88 481.344 224 501.312 224l21.376 0c115.232 0 184 89.088 184 238.304 0 108.032 72.896 235.392 110.176 293.504C759.488 781.984 633.824 832 512 832c-121.504 0-247.424-50.368-304.832-76.64 37.312-57.984 110.144-185.024 110.144-293.056 0-62.432 11.616-114.208 34.528-153.92 8.832-15.328 3.584-34.88-11.712-43.712-15.392-8.864-34.88-3.584-43.712 11.712-28.608 49.536-43.104 112.096-43.104 185.92 0 121.216-118.016 285.248-119.2 286.88-5.408 7.456-7.36 16.928-5.312 25.952 2.048 8.96 7.872 16.672 16 21.024 5.664 3.072 107.392 57.28 233.536 84.512C399.744 947.072 452.16 992 512 992s112.256-44.928 133.632-111.296c126.112-27.104 227.84-80.992 233.504-84.032 8.128-4.352 14.016-12.032 16.064-21.024S895.328 757.216 889.92 749.728zM501.312 160C494.048 160 487.104 160.992 480 161.568L480 160c0-17.632 14.368-32 32-32s32 14.368 32 32l0 0.928C536.832 160.32 529.728 160 522.688 160L501.312 160zM512 928c-22.336 0-43.136-13.408-57.984-35.296C473.216 894.72 492.608 896 512 896s38.784-1.28 57.984-3.296C555.136 914.624 534.304 928 512 928z" ></path>'+
- ''+
- '</symbol>'+
- ''+
- '<symbol id="icon-github" viewBox="0 0 1024 1024">'+
- ''+
- '<path d="M64 524C64 719.602 189.356 885.926 364.113 947.017 387.65799 953 384 936.115 384 924.767L384 847.107C248.118 863.007 242.674 773.052 233.5 758.001 215 726.501 171.5 718.501 184.5 703.501 215.5 687.501 247 707.501 283.5 761.501 309.956 800.642 361.366 794.075 387.658 787.497 393.403 763.997 405.637 743.042 422.353 726.638 281.774 701.609 223 615.67 223 513.5 223 464.053 239.322 418.406 271.465 381.627 251.142 320.928 273.421 269.19 276.337 261.415 334.458 256.131 394.888 302.993 399.549 306.685 432.663 297.835 470.341 293 512.5 293 554.924 293 592.81 297.896 626.075 306.853 637.426 298.219 693.46 258.054 747.5 262.966 750.382 270.652 772.185 321.292 753.058 381.083 785.516 417.956 802 463.809 802 513.5 802 615.874 742.99 701.953 601.803 726.786 625.381 750.003 640 782.295 640 818.008L640 930.653C640.752 939.626 640 948.664978 655.086 948.665 832.344 888.962 960 721.389 960 524 960 276.576 759.424 76 512 76 264.577 76 64 276.576 64 524Z" ></path>'+
- ''+
- '</symbol>'+
- ''+
- '</svg>'
- var script = function() {
- var scripts = document.getElementsByTagName('script')
- return scripts[scripts.length - 1]
- }()
- var shouldInjectCss = script.getAttribute("data-injectcss")
- /**
- * document ready
- */
- var ready = function(fn){
- if(document.addEventListener){
- document.addEventListener("DOMContentLoaded",function(){
- document.removeEventListener("DOMContentLoaded",arguments.callee,false)
- fn()
- },false)
- }else if(document.attachEvent){
- IEContentLoaded (window, fn)
- }
- function IEContentLoaded (w, fn) {
- var d = w.document, done = false,
- // only fire once
- init = function () {
- if (!done) {
- done = true
- fn()
- }
- }
- // polling for no errors
- ;(function () {
- try {
- // throws errors until after ondocumentready
- d.documentElement.doScroll('left')
- } catch (e) {
- setTimeout(arguments.callee, 50)
- return
- }
- // no errors, fire
- init()
- })()
- // trying to always fire before onload
- d.onreadystatechange = function() {
- if (d.readyState == 'complete') {
- d.onreadystatechange = null
- init()
- }
- }
- }
- }
- /**
- * Insert el before target
- *
- * @param {Element} el
- * @param {Element} target
- */
- var before = function (el, target) {
- target.parentNode.insertBefore(el, target)
- }
- /**
- * Prepend el to target
- *
- * @param {Element} el
- * @param {Element} 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
- 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)
|