mirror of
https://github.com/jstrieb/urlpages.git
synced 2025-03-15 13:04:33 +01:00
Fix editor button text and add fork button
This commit is contained in:
parent
2a4778842a
commit
52780d6cfb
2 changed files with 14 additions and 4 deletions
editor
|
@ -13,19 +13,23 @@
|
|||
<textarea id="javascript" placeholder="JavaScript" rows="9"></textarea>
|
||||
</div>
|
||||
|
||||
<div id="buttons">
|
||||
<div id="bottomleft-buttons">
|
||||
<!-- 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 onclick="setCodeUrl()">Short Link to Editor</button>
|
||||
<button onclick="setViewUrl()">Short Link to Publish</button>
|
||||
<button onclick="setViewUrl()">Short Link to Page</button>
|
||||
</form>
|
||||
<button><a id="getLinkLink" href="" target="_blank">Long Link to Publish</a></button>
|
||||
<button><a id="getLinkLink" href="" target="_blank">Open Page</a></button>
|
||||
<button onclick="showCopyCodePrompt()">Copy Code</button>
|
||||
<button><a id="downloadLink" href="" target="_blank" download="export.html">Download Code</a></button>
|
||||
</div>
|
||||
|
||||
<div id="topright-buttons">
|
||||
<button><a href="http://github.com/jstrieb/urlpages" target="_blank">Fork on GitHub</a></button>
|
||||
</div>
|
||||
|
||||
<iframe></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -37,12 +37,18 @@ a, button {
|
|||
border: none;
|
||||
}
|
||||
|
||||
#buttons {
|
||||
#bottomleft-buttons {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
#topright-buttons {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
form {
|
||||
display: inline;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue