From 601aa5a16b7b2ea916b693e595cc63ee5963a140 Mon Sep 17 00:00:00 2001 From: ksamuel Date: Wed, 12 Aug 2020 10:19:31 +0200 Subject: [PATCH] Post merge fixes --- zerobin/static/js/behavior.js | 18 +++--- zerobin/views/paste.tpl | 105 +++++++++++++++++----------------- 2 files changed, 62 insertions(+), 61 deletions(-) diff --git a/zerobin/static/js/behavior.js b/zerobin/static/js/behavior.js index 8a1dd48..ae70b08 100644 --- a/zerobin/static/js/behavior.js +++ b/zerobin/static/js/behavior.js @@ -336,13 +336,13 @@ window.zerobin = { if (doneCallback) { doneCallback(content); } - }, 50); + }, 250); - }, 50); + }, 250); - }, 50); + }, 250); - }, 50); + }, 250); }, /** Base64 decoding + uncompress + decrypt, with callbacks before each operation, @@ -391,25 +391,25 @@ window.zerobin = { errorCallback(err); } - }, 50); /* "End of from bits to string" */ + }, 250); /* "End of from bits to string" */ } catch (err) { errorCallback(err); } - }, 50); /* End of "from base 64 to bits" */ + }, 250); /* End of "from base 64 to bits" */ } catch (err) { errorCallback(err); } - }, 50); /* End of "decompress" */ + }, 250); /* End of "decompress" */ } catch (err) { errorCallback(err); } - }, 50); /* End of "decrypt" */ + }, 250); /* End of "decrypt" */ }, /** Create a random base64-like string long enought to be suitable as @@ -629,7 +629,7 @@ window.zerobin = { } } - return total * 1000 / size; + return total * 250 / size; }, // prevent defaults diff --git a/zerobin/views/paste.tpl b/zerobin/views/paste.tpl index f8ff098..cf66ad5 100644 --- a/zerobin/views/paste.tpl +++ b/zerobin/views/paste.tpl @@ -23,35 +23,37 @@
- -
- - +
-
+
- - - + - + + + -
- -
- +
+ + +
-
+
%expiration = paste.humanized_expiration %if expiration: - Expire {{ expiration }} + Expire {{ expiration }} %end
@@ -61,20 +63,20 @@
     
-
- -
-
+
+ +
+
- - - + - + + + -
+
@@ -85,68 +87,67 @@
- +
-
- +
+
-
+
- -
+ +
-
+
- -
-
-
+
+ +
+
-
- +
+
> - +
-
- +
+
-
+
- -
+ +
-
+
- -
+ +