Import CSS and open export in new window

pull/35/head
John McLear 2011-07-20 16:01:10 +01:00
parent 77dc7ede14
commit 1849adf9b8
4 changed files with 45 additions and 9 deletions

View File

@ -1000,3 +1000,24 @@ position: relative;
background-position: 2px -49px; background-position: 2px -49px;
} }
#importstatusball{
display:none;
}
#importarrow{
display:none;
}
#importmessagesuccess{
display:none;
}
#importsubmitinput{
height:25px;
width:85px;
margin-top:12px;
}
#importstatusball{
height:50px;
}

BIN
static/img/leftarrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

BIN
static/img/loading.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

View File

@ -205,21 +205,36 @@ We removed this feature cause its not worth the space it needs in the editbar
<!-- import export code --> <!-- import export code -->
<div id="importexport"> <div id="importexport">
<div id="import"> <div id="import">
Import from text file, HTML, Word, or RTF:<br/><br/> Import from text file, HTML, Word, or RTF:<br/><br/>
<input id="choosefile" name="choosefile" type="file"> <form id="importform" method="post" action="import" target="imporiframe" enctype="multipart/form-data">
<!-- <div id="fileselected">No file Chosen</div><br/> --> <div class="importformdiv" id="importformfilediv">
<input type="submit" class="impexpbutton" id="importit" value="Import now"> <input type="file" name="file" size="20" id="importfileinput" />
<div class="importmessage" id="importmessagefail"></div>
</div>
<div class="importmessage" id="importmessagesuccess">Successful!</div>
<div class="importformdiv" id="importformsubmitdiv">
<input type="hidden" name="padId" value="blpmaXT35R" />
<span class="nowrap">
<input type="submit" name="submit" value="Import Now" disabled="disabled" id="importsubmitinput" />
<img alt="" id="importstatusball" src="/static/img/loading.gif" align="top" />
<img alt="" id="importarrow" src="/static/img/leftarrow.png" align="top" />
</span>
</div>
</form>
</div> </div>
<div id="importexportline"></div> <div id="importexportline"></div>
<div id="export"> <div id="export">
Export current pad as: Export current pad as:
<a id="exporthtmla" class="exportlink"><div class="exporttype" id="exporthtml">HTML</div></a> <a id="exporthtmla" target="_blank" class="exportlink"><div class="exporttype" id="exporthtml">HTML</div></a>
<a id="exportplaina" class="exportlink"><div class="exporttype" id="exportplain">Plain text</div></a> <a id="exportplaina" target="_blank" class="exportlink"><div class="exporttype" id="exportplain">Plain text</div></a>
<a id="exportworda" class="exportlink"><div class="exporttype" id="exportword">Microsoft Word</div></a> <a id="exportworda" target="_blank" class="exportlink"><div class="exporttype" id="exportword">Microsoft Word</div></a>
<a id="exportpdfa" class="exportlink"><div class="exporttype" id="exportpdf">PDF</div></a> <a id="exportpdfa" target="_blank" class="exportlink"><div class="exporttype" id="exportpdf">PDF</div></a>
<a id="exportopena" class="exportlink"><div class="exporttype" id="exportopen">OpenDocument</div></a> <a id="exportopena" target="_blank" class="exportlink"><div class="exporttype" id="exportopen">OpenDocument</div></a>
<a id="exportwordlea" class="exportlink"><div class="exporttype" id="exportwordle">Wordle</div></a> <a id="exportwordlea" target="_blank" class="exportlink"><div class="exporttype" id="exportwordle">Wordle</div></a>
</div> </div>
</div> </div>