Browse Source

Updates

gh-pages
Luke Childs 6 years ago
parent
commit
15d907a865
  1. BIN
      card.c469d702.png
  2. 2
      index.html
  3. 19
      script.75da7f30.js
  4. 2
      script.75da7f30.map
  5. 10
      script.f5fa44a7.js
  6. 1
      script.f5fa44a7.map
  7. 2
      style.e308ff8e.js

BIN
card.c469d702.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 22 KiB

2
index.html

@ -1 +1 @@
<html> <head> <title>tippin.me Badge Generator</title> <link rel="shortcut icon" href="https://lukechilds.github.io/tippin-badge/favicon.7ac7d8b2.png"> <meta name="description" content="Readme badge generator for tippin.me."> <link rel="stylesheet" type="text/css" href="https://lukechilds.github.io/tippin-badge/style.931fb4ed.css"> <meta name="twitter:card" value="summary"> <meta property="og:title" content="tippin.me Badge Generator"> <meta property="og:description" content="Readme badge generator for tippin.me."> <meta property="og:image" content="https://lukechilds.github.io/tippin-badge/card.1db9be32.png"> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-77178022-5"></script> <script>function a(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],a("js",new Date),a("config","UA-77178022-5");</script> </head> <body> <div class="container"> <h1>⚡️ tippin.me Badge Generator</h1> <h2 class="description">Enter your Twitter username</h2> <div class="input-container"> <input type="text" name="username" placeholder="username" autofocus autocomplete="off"> <span class="prefix">@</span> </div> <div class="badge-preview"></div> <h3 class="output-title">Markdown</h3> <pre class="badge-markdown"></pre> <h3 class="output-title">HTML</h3> <pre class="badge-html"></pre> <h3 class="output-title">SVG</h3> <pre class="badge-svg"></pre> <footer> <span class="version"></span> - <a rel="noopener noreferrer" target="_blank" href="//github.com/lukechilds/tippin-badge">Source code</a> - <a rel="noopener noreferrer" target="_blank" href="//github.com/lukechilds/tippin-badge/issues">Report a bug</a> <div class="me"> A thing by <a rel="noopener noreferrer" target="_blank" href="//lukechilds.co">@lukechilds</a> </div> </footer> </div> <script src="https://lukechilds.github.io/tippin-badge/script.4687e20a.js"></script> </body> </html>
<html> <head> <title>tippin.me Badge Generator</title> <link rel="shortcut icon" href="https://lukechilds.github.io/tippin-badge/favicon.7ac7d8b2.png"> <meta name="description" content="Readme badge generator for tippin.me."> <link rel="stylesheet" type="text/css" href="https://lukechilds.github.io/tippin-badge/style.931fb4ed.css"> <meta name="twitter:card" value="summary"> <meta property="og:title" content="tippin.me Badge Generator"> <meta property="og:description" content="Readme badge generator for tippin.me."> <meta property="og:image" content="https://lukechilds.github.io/tippin-badge/card.1db9be32.png"> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-77178022-5"></script> <script>function a(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],a("js",new Date),a("config","UA-77178022-5");</script> </head> <body> <div class="container"> <h1>⚡️ tippin.me Badge Generator</h1> <h2 class="description">Enter your Twitter username</h2> <div class="input-container"> <input type="text" name="username" placeholder="username" autofocus autocomplete="off"> <span class="prefix">@</span> </div> <div class="badge-preview"></div> <h3 class="output-title">Markdown</h3> <pre class="badge-markdown"></pre> <h3 class="output-title">HTML</h3> <pre class="badge-html"></pre> <h3 class="output-title">SVG</h3> <pre class="badge-svg"></pre> <footer> <span class="version"></span> - <a rel="noopener noreferrer" target="_blank" href="//github.com/lukechilds/tippin-badge">Source code</a> - <a rel="noopener noreferrer" target="_blank" href="//github.com/lukechilds/tippin-badge/issues">Report a bug</a> <div class="me"> A thing by <a rel="noopener noreferrer" target="_blank" href="//lukechilds.co">@lukechilds</a> </div> </footer> </div> <script src="https://lukechilds.github.io/tippin-badge/script.f5fa44a7.js"></script> </body> </html>

19
script.75da7f30.js

@ -214,14 +214,17 @@ function escapeHtml(string) {
}
},{}],"script.js":[function(require,module,exports) {
var _require = require('./package'),
version = _require.version;
"use strict";
var badgen = require('badgen');
var _package = require("./package");
var escape = require('escape-html');
var _badgen = _interopRequireDefault(require("badgen"));
document.querySelector('.version').innerText = "v".concat(version);
var _escapeHtml = _interopRequireDefault(require("escape-html"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
document.querySelector('.version').innerText = "v".concat(_package.version);
var badgeLinkUrl = function badgeLinkUrl(username) {
return "https://tippin.me/@".concat(username);
@ -232,7 +235,7 @@ var badgeImageUrl = function badgeImageUrl(username) {
};
var badgeSVG = function badgeSVG(username) {
return badgen({
return (0, _badgen.default)({
subject: '⚡️tippin.me',
status: "@".concat(username),
color: 'F0918E'
@ -258,7 +261,7 @@ var badgeMarkdownSource = document.querySelector('.badge-markdown');
var badgeSvgSource = document.querySelector('.badge-svg');
var generateBadge = function generateBadge() {
var username = escape(usernameInput.value) || 'username';
var username = (0, _escapeHtml.default)(usernameInput.value) || 'username';
badgePreview.innerHTML = badgeHtmlPreview(username);
badgeHtmlSource.innerText = badgeHtml(username);
badgeMarkdownSource.innerText = badgeMarkdown(username);
@ -294,7 +297,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "54647" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63921" + '/');
ws.onmessage = function (event) {
var data = JSON.parse(event.data);

2
script.75da7f30.map

File diff suppressed because one or more lines are too long

10
script.f5fa44a7.js

File diff suppressed because one or more lines are too long

1
script.f5fa44a7.map

File diff suppressed because one or more lines are too long

2
style.e308ff8e.js

@ -208,7 +208,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "54647" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "63921" + '/');
ws.onmessage = function (event) {
var data = JSON.parse(event.data);

Loading…
Cancel
Save