Fix text upload

This commit is contained in:
Wim Brand
2019-07-30 12:24:37 +02:00
parent 524338d84f
commit a2b3b265a6

View File

@@ -4,41 +4,53 @@
<head> <head>
{{template "meta_tags" "Text Upload"}} {{template "meta_tags" "Text Upload"}}
{{template "user_style" .}} {{template "user_style" .}}
<link rel="stylesheet" href="/res/style/viewer.css"/>
<script src="/res/script/jquery-2.1.4.min.js"></script> <script src="/res/script/jquery-2.1.4.min.js"></script>
<style> <style>
#toolbar {
position: absolute;
width: 8em;
height: 100%;
background-color: var(--accent_color_medium)
}
.textarea{ .textarea{
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 8em;
height: 100%; height: 100%;
width: 100%; width: 100%;
border: none !important; border: none !important;
background: var(--accent_color_dark); background: var(--accent_color_dark);
} }
.toolbar_button{
text-align: left;
}
.toolbar_button > img {
width: 24px;
height: 24px;
}
.toolbar_button > span {
vertical-align: 6px;
}
</style> </style>
</head> </head>
<body> <body>
<div id="filepreview">
<textarea id="textarea" class="textarea" placeholder="Your text here..." autofocus="autofocus"></textarea>
</div>
<div id="toolbar"> <div id="toolbar">
<!-- Ugly workaround to get rid of the scrollbar in non-webkit browsers --> <button class="toolbar_button button_full_width" onClick="uploadText();">
<div> <img src="/res/img/upload_small.png" alt="Start Upload"/>
<div> <span>Upload</span>
<button class="toolbar_button button_full_width" onClick="uploadText();"> </button>
<img src="/res/img/upload_small.png" alt="Start Upload"/> <a href="/" class="button toolbar_button button_full_width">
<span>Upload</span> <img src="/res/img/pixeldrain_small.png" alt="Visit the home page" style="width:22px; height: 22px;"/>
</button> <span>Home</span>
<a href="/" class="button toolbar_button button_full_width"> </a>
<img src="/res/img/pixeldrain_small.png" alt="Visit the home page" style="width:22px; height: 22px;"/> <br/><br/>
<span>Home</span> Tip: Save your file with extension '.md' to use markdown<br/>
</a> {{template "advertisement" .}}
{{template "advertisement" .}}
</div>
</div>
</div> </div>
<textarea id="textarea" class="textarea" placeholder="Your text here..." autofocus="autofocus"></textarea>
<script src="/res/script/compiled/textupload.js"></script> <script src="/res/script/compiled/textupload.js"></script>
{{template "analytics"}} {{template "analytics"}}
</body> </body>