2019-06-29 21:53:15 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2019-06-30 03:07:52 -07:00
|
|
|
<title>URL Pages Editor</title>
|
2019-06-30 01:09:18 -07:00
|
|
|
<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()">
|
2019-06-30 01:09:18 -07:00
|
|
|
<!-- 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
|
|
|
|
2019-06-30 00:57:20 -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" />
|
2019-06-30 03:07:52 -07:00
|
|
|
<button onclick="setCodeUrl()">Get Short Link to Editor</button>
|
|
|
|
<button onclick="setViewUrl()">Get Short Link to Publish</button>
|
2019-06-30 01:34:31 -07:00
|
|
|
</form>
|
2019-06-30 03:07:52 -07:00
|
|
|
<button><a id="getLinkLink" href="" target="_blank">Get Link to Publish</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>
|
2019-06-30 00:57:20 -07:00
|
|
|
</div>
|
|
|
|
|
2019-06-30 00:19:52 -07:00
|
|
|
<iframe></iframe>
|
2019-06-29 21:53:15 -07:00
|
|
|
</body>
|
|
|
|
</html>
|