add fancy js fuck

integration-tests
Josha von Gizycki 6 years ago
parent e593eb7a2a
commit 48fca413ef

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -42,3 +42,17 @@ document.addEventListener('DOMContentLoaded', function() {
btn.addEventListener('click', countdownDeleteButton) btn.addEventListener('click', countdownDeleteButton)
}) })
}) })
$(document).ready(function() {
$('table').DataTable({
stateSave: true,
fixedHeader: true,
lengthMenu: [[25, 50, 100, -1], [25, 50, 100, "All"]],
stateSaveCallback: function(settings,data) {
localStorage.setItem('DataTables', JSON.stringify(data))
},
stateLoadCallback: function(settings) {
return JSON.parse(localStorage.getItem('DataTables'))
}
})
})

@ -45,9 +45,12 @@
[:meta {:name "viewport" [:meta {:name "viewport"
:content "width=device-width,initial-scale=1,shrink-to-fit=no"}] :content "width=device-width,initial-scale=1,shrink-to-fit=no"}]
[:title (str "wan ijo" (when title (str " - " title)))] [:title (str "wan ijo" (when title (str " - " title)))]
(include-css "/css/app.css") (include-css "/css/datatables.min.css"
"/css/app.css")
(when devmode? (include-css "/css/devmode.css")) (when devmode? (include-css "/css/devmode.css"))
(include-js "/js/scripts.js") (include-js "/js/jquery-3.3.1.slim.min.js"
"/js/datatables.min.js"
"/js/scripts.js")
head] head]
[:body [:body
[:section.grid [:section.grid

Loading…
Cancel
Save