From 61d76581dfd79af06da591305e2c8b2e01790b57 Mon Sep 17 00:00:00 2001 From: Kumar Priyansh Date: Fri, 17 Jul 2020 22:13:53 +0530 Subject: New template structure --- src/scripts/starterWindow.js | 2 +- src/views/templates/blank.html | 11 ----------- src/views/templates/blank/template.css | 0 src/views/templates/blank/template.html | 11 +++++++++++ src/views/templates/blank/template.js | 0 5 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 src/views/templates/blank.html create mode 100644 src/views/templates/blank/template.css create mode 100644 src/views/templates/blank/template.html create mode 100644 src/views/templates/blank/template.js (limited to 'src') diff --git a/src/scripts/starterWindow.js b/src/scripts/starterWindow.js index dd21624..ebc2c90 100644 --- a/src/scripts/starterWindow.js +++ b/src/scripts/starterWindow.js @@ -41,7 +41,7 @@ $(document).ready(function () { dialog.showErrorBox(heading, message); } function start(id) { - var templateURL = 'file://' + __dirname + `/templates/${id}.html`; + var templateURL = 'file://' + __dirname + `/templates/${id}/template.html`; var window = remote.getCurrentWindow(); window.setSize(monitorWidth * 0.75, monitorHeight * 0.75, false); diff --git a/src/views/templates/blank.html b/src/views/templates/blank.html deleted file mode 100644 index 7a07207..0000000 --- a/src/views/templates/blank.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Document - - -

The Blank Template

- - \ No newline at end of file diff --git a/src/views/templates/blank/template.css b/src/views/templates/blank/template.css new file mode 100644 index 0000000..e69de29 diff --git a/src/views/templates/blank/template.html b/src/views/templates/blank/template.html new file mode 100644 index 0000000..7a07207 --- /dev/null +++ b/src/views/templates/blank/template.html @@ -0,0 +1,11 @@ + + + + + + Document + + +

The Blank Template

+ + \ No newline at end of file diff --git a/src/views/templates/blank/template.js b/src/views/templates/blank/template.js new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3