-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
24 lines (22 loc) · 1.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BigURL Bookmarklet</title>
</head>
<body>
<header>
<h1>BigURL Bookmarklet</h1>
</header>
<main>
<p>Click the link below to see this page's URL in big, audience-readable text (then click the box to make it go away).</p>
<p><a id="codeOut" href='javascript:(function(){var box=document.createElement("div"),bigAddr=document.createElement("p"),closeLink=document.createElement("button"),updateLink=document.createElement("a");addr=location.href;box.id="bigUrlBox";box.style.cssText="background:#fff; position:fixed; top: 0; z-index:5000; font-family:monospace; width:100%; text-align:center; margin:0; padding:1em; box-sizing:border-box";closeLink.style.float="right";closeLink.textContent="X";closeLink.addEventListener("click",function(){document.body.removeChild(box);});bigAddr.style.fontSize=(addr.length/20)+"vw";bigAddr.textContent=addr;updateLink.href="https://bigurl.netlify.com";updateLink.target="blank";updateLink.textContent="Check for updates to this bookmarklet :)";updateLink.style.float="left";box.appendChild(closeLink);box.appendChild(bigAddr);box.appendChild(updateLink);document.body.appendChild(box);})();'>BigURL</a></p>
<p>If you'd like to use this on other pages, drag the link to your bookmark bar, and you've got a fancy bookmarklet! I'm planning to add automated URL shortening soon, so check back later to update. :)</p>
</main>
<footer>
<p>Made with love under MIT License. Check out the source code on <a href="https://github.com/verythorough/bigurl">GitHub</a><p>
</footer>
</body>
</html>