refactored JS:

- moved from global namespace into anonymous function
- as onclick has no direct access to the zerobin methods, the events are
now bound in the init() method via bindEvents()
- to simplify maintenance, the functions were wrapped into 3 objects:
zerobin (display logic, event handling), filter (compression,
encryption) and helper (stateless utilities)
- some CSS and template adjustements were also done
This commit is contained in:
El RIDO 2015-09-05 17:12:11 +02:00
parent a2af88a36e
commit 3099e10dfa
5 changed files with 905 additions and 645 deletions

View file

@ -21,12 +21,20 @@ body {
margin: 5px 0;
}
#comments, #comments button {
margin-bottom: 10px;
}
.comment {
border-left: 1px solid #ccc;
padding: 5px 0 5px 5px;
padding: 5px 0 5px 10px;
white-space: pre-wrap;
}
h4 {
footer h4 {
margin-top: 0;
}
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
list-style-type: decimal !important;
}