aboutsummaryrefslogtreecommitdiffstats
path: root/template/standard/rsrc/main.js
AgeCommit message (Collapse)AuthorFilesLines
2018-05-15Fix javascript problem that causes unintended behaviorThomas Lange1-1/+1
If you browse in a browser tab through some websites and want to go back to the previous page, post or user, you can either click the history back button, press the corresponding key on your mouse or even press <alt>+<arrow-left> on your keyboard. But if you only press <arrow-left> on a page, post or user, the callback function of the "keyup" event will change the location in the desired direction on the blog if there is a previous page, post or user, and if neither <ctrl> nor <shift> is pressed. This is a functionality of the javascript from the template and not a functionality of your browser. Pressing <alt>+<arrow-left> IS a functionality of the browser and should not conflict with the behavior when <arrow-left> is pressed alone. This commit fixes this problem by adding the condition that <alt> should not be pressed either.
2018-05-15Rename function parameter "event" to "e"Thomas Lange1-4/+4
2017-09-15All occurrences of "var" have been replaced by the new introduced keywords ↵Thomas Lange1-2/+2
"const" and "let" from ECMAScript 6 (2015), which scopes the variables to the nearest enclosing block instead of the nearest function block.
2017-03-20The "autofocus" attribute was added to the search input field.Thomas Lange1-1/+0
2017-03-20The javascript part was outsourced to a new file to reduce duplicate code.Thomas Lange1-0/+16