Files
fnx_web/res/template/paste.html

78 lines
1.6 KiB
HTML
Raw Normal View History

2017-11-10 12:39:55 +01:00
{{define "paste"}}
<!DOCTYPE html>
2020-01-17 20:32:21 +01:00
<html lang="en">
2017-11-10 12:39:55 +01:00
<head>
2018-07-09 21:41:17 +02:00
{{template "meta_tags" "Text Upload"}}
{{template "user_style" .}}
2019-08-10 14:15:54 +02:00
2018-07-09 21:41:17 +02:00
<style>
2019-07-30 12:24:37 +02:00
#toolbar {
position: absolute;
width: 8em;
height: 100%;
2019-09-17 23:38:40 +02:00
background-color: var(--layer_2_color);
text-align: center;
2019-07-30 12:24:37 +02:00
}
2019-08-10 14:15:54 +02:00
.textarea_container {
2018-07-09 21:41:17 +02:00
position: absolute;
2019-07-30 12:24:37 +02:00
left: 8em;
2019-08-10 14:15:54 +02:00
top: 0;
right: 0;
bottom: 0;
display: inline-block;
2020-04-14 16:00:24 +02:00
line-height: 0;
2019-08-10 14:15:54 +02:00
}
.textarea{
position: relative;
2018-07-09 21:41:17 +02:00
height: 100%;
width: 100%;
2019-09-16 23:50:57 +02:00
background: var(--layer_1_color);
2020-01-20 12:43:43 +01:00
color: var(--text_color);
2020-04-14 16:00:24 +02:00
margin: 0;
border-radius: 0;
2018-07-09 21:41:17 +02:00
}
2019-07-30 12:24:37 +02:00
.toolbar_button{
text-align: left;
}
2020-04-14 16:00:24 +02:00
.toolbar_button > img,
.toolbar_button > svg {
2019-07-30 12:24:37 +02:00
width: 24px;
height: 24px;
}
.toolbar_button > span {
vertical-align: 6px;
}
2018-07-09 21:41:17 +02:00
</style>
2017-11-10 12:39:55 +01:00
</head>
<body>
<div id="toolbar">
2020-01-28 12:51:21 +01:00
<button class="toolbar_button button_full_width button_highlight" onclick="uploadText();">
2020-04-14 16:00:24 +02:00
<i class="icon">save</i>
2019-07-30 12:24:37 +02:00
<span>Upload</span>
</button>
<a href="/" class="button toolbar_button button_full_width">
2020-04-14 16:00:24 +02:00
{{template `pixeldrain.svg` .}}
2019-07-30 12:24:37 +02:00
<span>Home</span>
</a>
<br/><br/>
2019-08-10 14:15:54 +02:00
Tip: Save your file with extension '.md' to use markdown formatting<br/>
2019-07-30 12:24:37 +02:00
{{template "advertisement" .}}
2017-11-10 12:39:55 +01:00
</div>
2019-08-10 14:15:54 +02:00
<div class="textarea_container">
<textarea id="textarea" class="textarea" placeholder="Your text here..." autofocus="autofocus"></textarea>
</div>
2019-12-23 23:56:57 +01:00
2020-01-20 12:43:43 +01:00
<script>
let apiEndpoint = '{{.APIEndpoint}}';
{{template "UploadManager.js"}}
{{template "util.js"}}
{{template "textupload.js"}}
</script>
2019-12-23 23:56:57 +01:00
{{template "analytics"}}
2017-11-10 12:39:55 +01:00
</body>
</html>
2018-07-09 21:41:17 +02:00
{{end}}