aboutsummaryrefslogtreecommitdiffstats
path: root/template/standard
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-09-15 01:55:42 +0200
committerThomas Lange <code@nerdmind.de>2017-09-15 01:55:42 +0200
commit2c430be8d1cc3e65fdef443f0ab70861103db3eb (patch)
tree9e798501db0cb986b1a3ee9139e5fad2576e0c9b /template/standard
parentbd5f13aa6c79cb67cf0537db01ab85a7d3141759 (diff)
downloadblog-2c430be8d1cc3e65fdef443f0ab70861103db3eb.tar.gz
blog-2c430be8d1cc3e65fdef443f0ab70861103db3eb.tar.xz
blog-2c430be8d1cc3e65fdef443f0ab70861103db3eb.zip
All occurrences of "var" have been replaced by the new introduced keywords "const" and "let" from ECMAScript 6 (2015), which scopes the variables to the nearest enclosing block instead of the nearest function block.
Diffstat (limited to 'template/standard')
-rw-r--r--template/standard/rsrc/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/standard/rsrc/main.js b/template/standard/rsrc/main.js
index b5d1530..a7a424c 100644
--- a/template/standard/rsrc/main.js
+++ b/template/standard/rsrc/main.js
@@ -1,8 +1,8 @@
//==============================================================================
// Elements which contains the location of the previous and next site
//==============================================================================
-var prev = document.getElementById("prev-site");
-var next = document.getElementById("next-site");
+const prev = document.getElementById("prev-site");
+const next = document.getElementById("next-site");
//==============================================================================
// Handle arrow keys and change the location to the desired direction