summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/common.js (renamed from public/js/common.js.example)10
-rw-r--r--public/js/config.js.example10
-rw-r--r--public/views/foot.ejs1
-rw-r--r--public/views/index.ejs7
-rw-r--r--public/views/pretty.ejs1
-rw-r--r--public/views/slide.ejs1
6 files changed, 20 insertions, 10 deletions
diff --git a/public/js/common.js.example b/public/js/common.js
index 11c32acc..a14e6fc9 100644
--- a/public/js/common.js.example
+++ b/public/js/common.js
@@ -1,14 +1,4 @@
//common
-var domain = ''; // domain name
-var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
-//settings
-var debug = false;
-
-var GOOGLE_API_KEY = '';
-var GOOGLE_CLIENT_ID = '';
-
-var DROPBOX_APP_KEY = '';
-
var port = window.location.port;
var serverurl = window.location.protocol + '//' + (domain ? domain : window.location.hostname) + (port ? ':' + port : '') + (urlpath ? '/' + urlpath : '');
var noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1];
diff --git a/public/js/config.js.example b/public/js/config.js.example
new file mode 100644
index 00000000..197d18f2
--- /dev/null
+++ b/public/js/config.js.example
@@ -0,0 +1,10 @@
+//config
+var domain = ''; // domain name
+var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
+//settings
+var debug = false;
+
+var GOOGLE_API_KEY = '';
+var GOOGLE_CLIENT_ID = '';
+
+var DROPBOX_APP_KEY = ''; \ No newline at end of file
diff --git a/public/views/foot.ejs b/public/views/foot.ejs
index 9328ac9c..0397317d 100644
--- a/public/views/foot.ejs
+++ b/public/views/foot.ejs
@@ -75,6 +75,7 @@
<script src="<%- url %>/vendor/keymaster/keymaster.js" defer></script>
<script src="<%- url %>/js/google-drive-upload.js" defer></script>
<script src="<%- url %>/js/google-drive-picker.js" defer></script>
+<script src="<%- url %>/js/config.js" defer></script>
<script src="<%- url %>/js/common.js" defer></script>
<script src="<%- url %>/js/extra.js" defer></script>
<script src="<%- url %>/js/render.js" defer></script>
diff --git a/public/views/index.ejs b/public/views/index.ejs
index f5f848e6..561a5987 100644
--- a/public/views/index.ejs
+++ b/public/views/index.ejs
@@ -154,6 +154,12 @@
<option value="es">Español</option>
<option value="el">Ελληνικά</option>
<option value="pt">Português</option>
+ <option value="it">italiano</option>
+ <option value="tr">Türkçe</option>
+ <option value="ru">Русский</option>
+ <option value="nl">Nederlands</option>
+ <option value="hr">hrvatski jezik</option>
+ <option value="pl">język polski</option>
</select>
</div>
</div>
@@ -205,6 +211,7 @@
<script src="<%- url %>/vendor/file-saver/FileSaver.min.js" defer></script>
<script src="<%- url %>/vendor/store-js/store.min.js" defer></script>
<script src="<%- url %>/vendor/lz-string/libs/lz-string.min.js" defer></script>
+ <script src="<%- url %>/js/config.js" defer></script>
<script src="<%- url %>/js/common.js" defer></script>
<script src="<%- url %>/js/history.js" defer></script>
<script src="<%- url %>/js/cover.js" defer></script>
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 2546b1ac..7af474a6 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -127,6 +127,7 @@
<script src="<%- url %>/vendor/viz.js/viz.js" defer></script>
<script src="<%- url %>/vendor/pdfobject/pdfobject.min.js" defer></script>
<script src="<%- url %>/vendor/md-toc.js" defer></script>
+<script src="<%- url %>/js/config.js" defer></script>
<script src="<%- url %>/js/common.js" defer></script>
<script src="<%- url %>/js/extra.js" defer></script>
<script src="<%- url %>/js/render.js" defer></script>
diff --git a/public/views/slide.ejs b/public/views/slide.ejs
index 3c5498c6..a0016375 100644
--- a/public/views/slide.ejs
+++ b/public/views/slide.ejs
@@ -122,6 +122,7 @@
<script src="<%- url %>/vendor/viz.js/viz.js" defer></script>
<script src="<%- url %>/vendor/pdfobject/pdfobject.min.js" defer></script>
<script src="<%- url %>/vendor/md-toc.js" defer></script>
+ <script src="<%- url %>/js/config.js" defer></script>
<script src="<%- url %>/js/common.js" defer></script>
<script src="<%- url %>/js/extra.js" defer></script>
<script src="<%- url %>/js/render.js" defer></script>