Skip to content

Commit 02e48d5

Browse files
committed
Merge branch 'master' of github.com:sametmax/0bin
2 parents 4b969ac + b65ba44 commit 02e48d5

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

zerobin/static/css/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,12 @@ canvas {
339339
border: 1px solid white;
340340
}
341341

342+
#wrap-content {
343+
display: none;
344+
}
345+
346+
.noscript {
347+
text-align: center;
348+
color: red;
349+
font-weight: bold;
350+
}

zerobin/static/js/behavior.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,11 @@ $('.email-link').each(function(i, elem){
674674

675675
});
676676

677+
$('#wrap-content').each(function(i, elem){
678+
$(elem).show();
679+
});
677680

678681

679682
}); /* End of "document ready" jquery callback */
680683

681-
})(); /* End of self executing function */
684+
})(); /* End of self executing function */

zerobin/views/base.tpl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@
8181
</div>
8282
</div>
8383

84-
<div class="container">
84+
<noscript class="container noscript">
85+
<p>This pastebin uses client-side encryption. Therefore, it needs JavaScript enabled.</p>
86+
<p>It seems like your browser doesn't have JavaScript enable.</p>
87+
<p>Please enable JavaScript for this website or use a JavaScript-capable web browser.</p>
88+
</noscript>
89+
90+
<div class="container" id="wrap-content">
8591
<div class="row">
8692
<div class="span2">
8793
<div class="well sidebar-nav">
@@ -116,7 +122,7 @@
116122

117123
<footer>
118124
<blockquote>
119-
<p>«Few persons can be made to believe that it is not quite an easy thing to invent a method of secret writing which shall baffle investigation. Yet it may be roundly asserted that human ingenuity cannot concoct a cipher which human ingenuity cannot resolve...»</p>
125+
<p>Few persons can be made to believe that it is not quite an easy thing to invent a method of secret writing which shall baffle investigation. Yet it may be roundly asserted that human ingenuity cannot concoct a cipher which human ingenuity cannot resolve...</p>
120126
<small>Edgar Allan Poe</small>
121127
</blockquote>
122128

0 commit comments

Comments
 (0)