Temporary code that brings in some export support
This commit is contained in:
parent
b4c2f6eb11
commit
50c6b9de00
|
@ -958,6 +958,8 @@ position: relative;
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
padding-left:25px;
|
padding-left:25px;
|
||||||
background-image: url("/static/img/fileicons.gif");
|
background-image: url("/static/img/fileicons.gif");
|
||||||
|
color:#fff;
|
||||||
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#importexportline{
|
#importexportline{
|
||||||
|
|
|
@ -21,6 +21,13 @@ var socket;
|
||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
{
|
{
|
||||||
handshake();
|
handshake();
|
||||||
|
// temporary place holder for exports, peter to move wherever he wants to put
|
||||||
|
$("#exporthtmla").attr("href", document.location.href + "/export/html");
|
||||||
|
$("#exportplaina").attr("href", document.location.href + "/export/plain");
|
||||||
|
$("#exportworda").attr("href", document.location.href + "/export/word");
|
||||||
|
$("#exportpdfa").attr("href", document.location.href + "/export/pdf");
|
||||||
|
$("#exportopena").attr("href", document.location.href + "/export/open");
|
||||||
|
$("#exportwordlea").attr("href", document.location.href + "/export/wordle");
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).unload(function()
|
$(window).unload(function()
|
||||||
|
|
|
@ -214,12 +214,12 @@ We removed this feature cause its not worth the space it needs in the editbar
|
||||||
<div id="importexportline"></div>
|
<div id="importexportline"></div>
|
||||||
<div id="export">
|
<div id="export">
|
||||||
Export current pad as:
|
Export current pad as:
|
||||||
<div class="exporttype" id="exporthtml">HTML</div>
|
<a id="exporthtmla" class="exportlink"><div class="exporttype" id="exporthtml">HTML</div></a>
|
||||||
<div class="exporttype" id="exportplain">Plain text</div>
|
<a id="exportplaina" class="exportlink"><div class="exporttype" id="exportplain">Plain text</div></a>
|
||||||
<div class="exporttype" id="exportword">Microsoft Word</div>
|
<a id="exportworda" class="exportlink"><div class="exporttype" id="exportword">Microsoft Word</div></a>
|
||||||
<div class="exporttype" id="exportpdf">PDF</div>
|
<a id="exportpdfa" class="exportlink"><div class="exporttype" id="exportpdf">PDF</div></a>
|
||||||
<div class="exporttype" id="exportopen">OpenDocument</div>
|
<a id="exportopena" class="exportlink"><div class="exporttype" id="exportopen">OpenDocument</div></a>
|
||||||
<div class="exporttype" id="exportwordle">Wordle</div>
|
<a id="exportwordlea" class="exportlink"><div class="exporttype" id="exportwordle">Wordle</div></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue