diff --git a/static/css/linx.css b/static/css/linx.css index cf83032..e365826 100644 --- a/static/css/linx.css +++ b/static/css/linx.css @@ -80,6 +80,16 @@ body { padding: 5px 5px 5px 5px; } +#info #filename, +#editform #filename { + width: 232px; +} + +#info #extension, +#editform #extension { + width: 40px; +} + #info .float-left { margin-top: 2px; margin-right: 20px; @@ -181,7 +191,7 @@ body { } .clear { - clear:both; + clear: both; } #upload_header { @@ -248,6 +258,65 @@ body { padding-top: 1px; } +.oopscontent { + width: 400px; +} + +.oopscontent img { + width: 400px; + border: 0; +} + +.editor { + width: 705px; + height: 450px; + border-color: #cccccc; +} + +/* Content display {{{ */ +.display-audio, +.display-file { + width: 500px; +} + +.display-image { + margin-bottom: -6px; + max-width: 800px; +} + +.display-pdf { + width: 910px; + height: 800px; +} + +.display-video { + width: 800px; +} + +.scrollable { + overflow: auto; +} + +.storycontent { + background-color: #f0e0d6; +} + +#editform, +#editform .editor { + display: none; +} + +#codeb { + white-space: pre-wrap; +} + +#editor { + display: none; + height: 800px; + font-size: 11px; +} +/* }}} */ + /* cat.js */ .qq-uploader { position:relative; width: 100%;} @@ -694,4 +763,4 @@ THE SOFTWARE. .hint--bounce:before, .hint--bounce:after { -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); -moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); - transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); } \ No newline at end of file + transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); } diff --git a/static/js/bin.js b/static/js/bin.js index 4e86edf..0fd6990 100644 --- a/static/js/bin.js +++ b/static/js/bin.js @@ -8,7 +8,7 @@ function init() { editA.setAttribute("href", "#"); editA.addEventListener('click', function(ev) { - edit(); + edit(ev); return false; }); editA.innerHTML = "edit"; @@ -22,14 +22,16 @@ function init() { editor.getSession().setMode("ace/mode/" + lang); editor.setTheme("ace/theme/tomorrow"); + document.getElementById('save').addEventListener('click', paste); + document.getElementById('wordwrap').addEventListener('click', wrap); } -function edit() { +function edit(ev) { navlist.remove(); document.getElementById("filename").remove(); - document.getElementById("foarm").style.display = "block"; + document.getElementById("editform").style.display = "block"; var normalcontent = document.getElementById("normal-content"); normalcontent.removeChild(document.getElementById("normal-code")); @@ -44,14 +46,12 @@ function edit() { } -function paste() { - +function paste(ev) { document.getElementById("newcontent").value = editor.getSession().getValue(); document.forms["reply"].submit(); - } -function wrap() { +function wrap(ev) { if (document.getElementById("wordwrap").checked) { document.getElementById("codeb").style.wordWrap = "break-word"; document.getElementById("codeb").style.whiteSpace = "pre-wrap"; diff --git a/templates/404.html b/templates/404.html index 0999393..e792bf3 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,5 +1,5 @@ {% extends "base.html" %} {% block content %} - + {% endblock %} diff --git a/templates/display/audio.html b/templates/display/audio.html index 66b36fa..a88319f 100644 --- a/templates/display/audio.html +++ b/templates/display/audio.html @@ -1,9 +1,9 @@ {% extends "base.html" %} {% block main %} - - - Download it instead + + + Download it instead {% endblock %} diff --git a/templates/display/bin.html b/templates/display/bin.html index 9c77584..3f12a7f 100644 --- a/templates/display/bin.html +++ b/templates/display/bin.html @@ -2,20 +2,20 @@ {% block head %} {% if extra.extension == "story" %} - + {% else %} - + {% endif %} {% endblock %} -{% block innercontentmore %} style="overflow: auto;" {% endblock %} -{% block mainmore %} {% if extra.extension == "story" %} style="background-color: #f0e0d6;"{% endif %} {% endblock %} +{% block innercontentmore %} class="scrollable"{% endblock %} +{% block mainmore %} {% if extra.extension == "story" %} class="storycontent"{% endif %} {% endblock %} {% block infoleft %} - + - + Expires: never a minute @@ -25,29 +25,27 @@ a week a month a year - + - save - + save + - . + . - + + - - - {% endblock %} {%block infomore %} -wrap | +wrap | {% endblock %} {% block main %} - {{ extra.contents }} - {{ extra.contents }} + {{ extra.contents }} + {{ extra.contents }} diff --git a/templates/display/file.html b/templates/display/file.html index 9872298..d4f6187 100644 --- a/templates/display/file.html +++ b/templates/display/file.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block main %} - - You are requesting {{ filename }}, click here to download. + + You are requesting {{ filename }}, click here to download. {% endblock %} diff --git a/templates/display/image.html b/templates/display/image.html index 20b57ef..4b265b3 100644 --- a/templates/display/image.html +++ b/templates/display/image.html @@ -2,6 +2,6 @@ {% block main %} - + {% endblock %} diff --git a/templates/display/pdf.html b/templates/display/pdf.html index a98d040..6726ce2 100644 --- a/templates/display/pdf.html +++ b/templates/display/pdf.html @@ -1,10 +1,7 @@ {% extends "base.html" %} {% block main %} - + It appears your Web browser is not configured to display PDF files. No worries, just click here to download the PDF file. diff --git a/templates/display/video.html b/templates/display/video.html index 0bf5486..77c2a60 100644 --- a/templates/display/video.html +++ b/templates/display/video.html @@ -1,10 +1,8 @@ {% extends "base.html" %} {% block main %} - - - - - - + + + Download it instead + {% endblock %} diff --git a/templates/index.html b/templates/index.html index 36bbc99..4528ae8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -36,7 +36,7 @@ - + diff --git a/templates/oops.html b/templates/oops.html index 9627bba..ce3ac49 100644 --- a/templates/oops.html +++ b/templates/oops.html @@ -2,7 +2,7 @@ {% block content %} - + {{ error_message|default:"Oops! Something went wrong." }} diff --git a/templates/paste.html b/templates/paste.html index b1b86a4..6e7876e 100644 --- a/templates/paste.html +++ b/templates/paste.html @@ -4,7 +4,7 @@ - . + . @@ -27,7 +27,7 @@ - + @@ -37,4 +37,4 @@ -{% endblock %} \ No newline at end of file +{% endblock %}
{{ extra.contents }}
You are requesting {{ filename }}, click here to download.
It appears your Web browser is not configured to display PDF files. No worries, just click here to download the PDF file.
{{ error_message|default:"Oops! Something went wrong." }}