mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
change prettify code error in behavior
This commit is contained in:
parent
601aa5a16b
commit
a057e31e5d
@ -629,7 +629,8 @@ window.zerobin = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return total * 250 / size;
|
// return total * 250 / size;
|
||||||
|
return total * 1000 / size;
|
||||||
},
|
},
|
||||||
|
|
||||||
// prevent defaults
|
// prevent defaults
|
||||||
@ -756,7 +757,7 @@ if (content && key) {
|
|||||||
function (content) {
|
function (content) {
|
||||||
|
|
||||||
/* Decrypted content goes back to initial container*/
|
/* Decrypted content goes back to initial container*/
|
||||||
document.querySelector('#paste-content').innerHTML = content;
|
document.querySelector('#paste-content').innerText = content;
|
||||||
|
|
||||||
if (content.indexOf('data:image') == 0) {
|
if (content.indexOf('data:image') == 0) {
|
||||||
// Display Image
|
// Display Image
|
||||||
|
@ -79,9 +79,9 @@
|
|||||||
%else:
|
%else:
|
||||||
<script src="/static/js/lzw.js"></script>
|
<script src="/static/js/lzw.js"></script>
|
||||||
<script src="/static/js/prettify.min.js"></script>
|
<script src="/static/js/prettify.min.js"></script>
|
||||||
<script src="/static/js/ZeroClipboard.js"></script>
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
|
||||||
<p id="alert-template" class="alert-primary">
|
<p id="alert-template" class="alert-primary">
|
||||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||||
<strong class="title"></strong>
|
<strong class="title"></strong>
|
||||||
|
Loading…
Reference in New Issue
Block a user