trunk
HeNine 3 years ago
parent 0c43bcb714
commit 8f6fc2b722

File diff suppressed because one or more lines are too long

@ -12,6 +12,8 @@
<script src="jquery-ui-1.13.0.custom/external/jquery/jquery.js"></script> <script src="jquery-ui-1.13.0.custom/external/jquery/jquery.js"></script>
<script src="jquery-ui-1.13.0.custom/jquery-ui.js"></script> <script src="jquery-ui-1.13.0.custom/jquery-ui.js"></script>
<script src="hotkeys.min.js"></script>
<script src="script.js"></script> <script src="script.js"></script>
</head> </head>

@ -41,6 +41,13 @@ function pageReady() {
handleLoginState(); handleLoginState();
} }
hotkeys('ctrl+enter', function (event, handler){
console.log(event);
document.getElementById("submit_button").click();
});
function handleLoginState() { function handleLoginState() {
if (document.cookie.split('; ').find(row => row.startsWith('credentials='))) { if (document.cookie.split('; ').find(row => row.startsWith('credentials='))) {
document.getElementById("logout").style.display = ""; document.getElementById("logout").style.display = "";

Loading…
Cancel
Save