1
0
Fork 0
mirror of https://github.com/jstrieb/urlpages.git synced 2025-03-16 13:28:26 +01:00
urlpages/editor/index.html

31 lines
1.2 KiB
HTML
Raw Normal View History

2019-06-29 21:53:15 -07:00
<!DOCTYPE html>
<html>
<head>
<title>Create and edit URL pages</title>
<link rel="stylesheet" type="text/css" href="main.css">
<script src="editor.js" type="text/javascript"></script>
2019-06-29 21:53:15 -07:00
</head>
2019-06-30 00:19:52 -07:00
<body onload="initialize()">
2019-06-29 22:47:33 -07:00
<div id="textboxes" onkeyup="update()">
<!-- Unfortunately having these <textarea>s on one line is actually necessary
to remove a tiny amount of horizontal space between them -->
2019-06-29 21:53:15 -07:00
<textarea id="html" placeholder="HTML" rows="9"></textarea><textarea id="css" placeholder="CSS" rows="9"></textarea><textarea id="javascript" placeholder="JavaScript" rows="9"></textarea>
2019-06-29 22:47:33 -07:00
</div>
2019-06-29 21:53:15 -07:00
<div id="buttons">
2019-06-30 01:34:31 -07:00
<!-- Seemingly random attributes necessary for TinyUrl to accept the request -->
<form action="http://tinyurl.com/create.php" method="get" target="_blank">
<input type="hidden" id="source" name="source" value="indexpage">
<input type="hidden" name="url" id="url" />
<button>Get Short Link</button>
</form>
<button><a id="getLinkLink" href="" target="_blank">Get Link</a></button>
2019-06-30 01:14:07 -07:00
<button onclick="showCopyCodePrompt()">Copy Code</button>
2019-06-30 01:25:38 -07:00
<button><a id="downloadLink" href="" target="_blank" download="export.html">Download Code</a></button>
</div>
2019-06-30 00:19:52 -07:00
<iframe></iframe>
2019-06-29 21:53:15 -07:00
</body>
</html>