You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
33 KiB

6 years ago
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"uc/H":[function(require,module,exports) {
module.exports={name:"tippin-badge",version:"1.0.0",description:"Readme badge generator for tippin.me",main:"index.html",repository:"lukechilds/tippin-badge",author:"Luke Childs <lukechilds123@gmail.com>",license:"MIT",private:!0,scripts:{dev:"parcel index.html",build:"parcel build index.html",predeploy:"yarn build",deploy:"gh-pages -d build"},devDependencies:{"gh-pages":"^2.0.1","parcel-bundler":"^1.11.0"},dependencies:{badgen:"^2.7.0","escape-html":"^1.0.3","modern-normalize":"^0.5.0"}};
},{}],"Sv4z":[function(require,module,exports) {
module.exports=function(t,e){"use strict";var n={};return function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}(655)}({593:function(t,e,n){const i=n(8).Verdana110,r=n(938);t.exports=(({status:t,color:e,style:n})=>{s("string"==typeof t,"<status> must be string"),e=r[e]||e||r.blue;const o=i(t),l=o+115;return t=(t=>t.replace(/\u0026/g,"&amp;").replace(/\u003C/g,"&lt;"))(t),"flat"===n?`<svg width="${l/10}" height="20" viewBox="0 0 ${l} 200" xmlns="http://www.w3.org/2000/svg">\n <g>\n <rect fill="#${e}" x="0" width="${l}" height="200"/>\n </g>\n <g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">\n <text x="65" y="148" textLength="${o}" fill="#000" opacity="0.1">${t}</text>\n <text x="55" y="138" textLength="${o}">${t}</text>\n </g>\n</svg>`:`<svg width="${l/10}" height="20" viewBox="0 0 ${l} 200" xmlns="http://www.w3.org/2000/svg">\n <linearGradient id="a" x2="0" y2="100%">\n <stop offset="0" stop-opacity=".1" stop-color="#EEE"/>\n <stop offset="1" stop-opacity=".1"/>\n </linearGradient>\n <mask id="m"><rect width="${l}" height="200" rx="30" fill="#FFF"/></mask>\n <g mask="url(#m)">\n <rect width="${l}" height="200" fill="#${e}" x="0"/>\n <rect width="${l}" height="200" fill="url(#a)"/>\n </g>\n <g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">\n <text x="65" y="148" textLength="${o}" fill="#000" opacity="0.25">${t}</text>\n <text x="55" y="138" textLength="${o}">${t}</text>\n </g>\n</svg>`});const s=(t,e)=>{if(!t)throw new TypeError(e)}},655:function(t,e,n){const i=n(8).Verdana110,r=n(938),s=t=>t.replace(/\u0026/g,"&amp;").replace(/\u003C/g,"&lt;"),o=n(593);t.exports=(({subject:t,status:e,color:n,style:a,icon:x,iconWidth:g=13})=>{if(l("string"==typeof e,"<status> must be string"),!t&&!x)return o({status:e,color:n,style:a});n=r[n]||n||r.blue,g*=10;const h=x?t.length?g+30:g-18:0,f=x?h+50:50,$=i(t),c=i(e),p=$+100+h,w=c+100,u=p+w,y=x?' xmlns:xlink="http://www.w3.org/1999/xlink"':"";return t=s(t),e=s(e),"flat"===a?`<svg width="${u/10}" height="20" viewBox="0 0 ${u} 200" xmlns="http://www.w3.org/2000/svg"${y}>\n <g>\n <rect fill="#555" width="${p}" height="200"/>\n <rect fill="#${n}" x="${p}" width="${w}" height="200"/>\n </g>\n <g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">\n <text x="${f+10}" y="148" textLength="${$}" fill="#000" opacity="0.1">${t}</text>\n <text x="${f}" y="138" textLength="${$}">${t}</text>\n <text x="${p+55}" y="148" textLength="${c}" fill="#000" opacity="0.1">${e}</text>\n <text x="${p+45}" y="138" textLength="${c}">${e}</text>\n </g>\n ${x?`<image x="40" y="35" width="${g}" height="132" xlink:href="${x}"/>`:""}\n</svg>`:`<svg width="${u/10}" height="20" viewBox="0 0 ${u} 200" xmlns="http://www.w3.org/2000/svg"${y}>\n <linearGradient id="a" x2="0" y2="100%">\n <stop offset="0" stop-opacity=".1" stop-color="#EEE"/>\n <stop offset="1" stop-opacity=".1"/>\n </linearGradient>\n <mask id="m"><rect width="${u}" height="200" rx="30" fill="#FFF"/></mask>\n <g mask="url(#m)">\n <rect width="${p}" height="200" fill="#555"/>\n <rect width="${w}" height="200" fill="#${n}" x="${p}"/>\n <rect width="${u}" height="200" fill="url(#a)"/>\n </g>\n <g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">\n <text x="${f+10}" y="148" textLength="${$}" fill="#000" opacity="0.25">${t}</text>\n <text x="${f}" y="138" textLength="${$}">${t}</text>\n <text x="${p+55}" y="148" textLength="${c}" fill="#000" opacity="0.25">${e}</text>\n <text x="${p+45}" y="138" textLength="${c}">${e}</text>\n </g>\n ${x?`<image x="40" y="35" width="${g}" height="130" xlink:href="${x}"/>`:""}\n</svg>`});const l=(t,e)=>{if(!t)throw new TypeError(e)}},689:function(t){t.exports=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,43,50,90,70,120,80,30,50,50,70,90,40,50,40,50,70,70,70,70,
},{}],"2wN2":[function(require,module,exports) {
"use strict";var e=/["'&<>]/;function r(r){var a,t=""+r,s=e.exec(t);if(!s)return t;var c="",n=0,u=0;for(n=s.index;n<t.length;n++){switch(t.charCodeAt(n)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 39:a="&#39;";break;case 60:a="&lt;";break;case 62:a="&gt;";break;default:continue}u!==n&&(c+=t.substring(u,n)),u=n+1,c+=a}return u!==n?c+t.substring(u,n):c}module.exports=r;
},{}],"mpVp":[function(require,module,exports) {
var e=require("./package"),n=e.version,t=require("badgen"),r=require("escape-html");document.querySelector(".version").innerText="v".concat(n);var c=function(e){return"https://tippin.me/@".concat(e)},o=function(e){return"https://badgen.net/badge/%E2%9A%A1%EF%B8%8Ftippin.me/@".concat(e,"/F0918E")},a=function(e){return t({subject:"⚡️tippin.me",status:"@".concat(e),color:"F0918E"})},u=function(e){return'<a href="'.concat(c(e),'" rel="noopener noreferrer" target="_blank">\n ').concat(a(e),"\n</a>")},i=function(e){return'<a href="'.concat(c(e),'" rel="noopener noreferrer" target="_blank">\n <img src="').concat(o(e),'" alt="@').concat(e,' on tippin.me"/>\n</a>')},p=function(e){return"[![tippin.me](".concat(o(e),")](").concat(c(e),")")},m=document.querySelector('input[name="username"]'),d=document.querySelector(".badge-preview"),l=document.querySelector(".badge-html"),s=document.querySelector(".badge-markdown"),g=document.querySelector(".badge-svg"),f=function(){var e=r(m.value)||"username";d.innerHTML=u(e),l.innerText=i(e),s.innerText=p(e),g.innerText=a(e)};f(),m.addEventListener("input",f);
},{"./package":"uc/H","badgen":"Sv4z","escape-html":"2wN2"}]},{},["mpVp"], null)
//# sourceMappingURL=/script.adb5872a.map