diff --git a/pass/public/javascripts/app.js b/pass/public/js/app.js similarity index 100% rename from pass/public/javascripts/app.js rename to pass/public/js/app.js diff --git a/pass/public/js/checkout.js b/pass/public/js/checkout.js new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/pass/public/stylesheets/base.css b/pass/public/styles/base.css similarity index 100% rename from pass/public/stylesheets/base.css rename to pass/public/styles/base.css diff --git a/pass/public/stylesheets/base.less b/pass/public/styles/base.less similarity index 100% rename from pass/public/stylesheets/base.less rename to pass/public/styles/base.less diff --git a/pass/public/stylesheets/checkout.css b/pass/public/styles/checkout.css similarity index 100% rename from pass/public/stylesheets/checkout.css rename to pass/public/styles/checkout.css diff --git a/pass/public/stylesheets/checkout.less b/pass/public/styles/checkout.less similarity index 100% rename from pass/public/stylesheets/checkout.less rename to pass/public/styles/checkout.less diff --git a/pass/public/stylesheets/index.css b/pass/public/styles/index.css similarity index 100% rename from pass/public/stylesheets/index.css rename to pass/public/styles/index.css diff --git a/pass/public/stylesheets/index.less b/pass/public/styles/index.less similarity index 100% rename from pass/public/stylesheets/index.less rename to pass/public/styles/index.less diff --git a/pass/views/checkout/checkout.ejs b/pass/views/checkout/checkout.ejs index ca77a25147f4e08b6c00d7d2770b9571e42dd163..b6b422340bfb8d9f4ed0b6b051765f2df64fb6d1 100644 --- a/pass/views/checkout/checkout.ejs +++ b/pass/views/checkout/checkout.ejs @@ -1,4 +1,4 @@ -<%- include('../templates/page_header', {css: ['/stylesheets/checkout.css']}); %> +<%- include('../templates/page_header', {css: ['/styles/checkout.css']}); %> <main> <div id="payment-container"> diff --git a/pass/views/index.ejs b/pass/views/index.ejs index 63dce962e6763c79d015f49d09a72c151b05a30c..814a4ececb96992d3258de63fa8a6a375444f6f3 100644 --- a/pass/views/index.ejs +++ b/pass/views/index.ejs @@ -1,4 +1,4 @@ -<%- include('templates/page_header', {css: ['/stylesheets/index.css']}); %> +<%- include('templates/page_header', {css: ['/styles/index.css']}); %> <p> Wählen Sie aus, wie viele Suchen Sie kaufen möchten. </p> diff --git a/pass/views/templates/page_header.ejs b/pass/views/templates/page_header.ejs index 8cea843346bdab0a5fc234276eaa3c795203bc95..a6e888d25187c8e8c6754da454ebeb9ed5ca2cf5 100644 --- a/pass/views/templates/page_header.ejs +++ b/pass/views/templates/page_header.ejs @@ -2,12 +2,17 @@ <html> <head> <title>MetaGer - Pass</title> - <link rel='stylesheet' href='/stylesheets/base.css' /> + <link rel='stylesheet' href='/styles/base.css' /> <%_ if (typeof css !== 'undefined') { -%> <%_ css.forEach(css_file => { -%> <link rel="stylesheet" href="<%- css_file %>"> <%_ }) _%> <%_ } _%> - <script src="/javascripts/app.js" defer></script> + <script src="/js/app.js" defer></script> + <%_ if (typeof js !== 'undefined') { -%> + <%_ js.forEach(js_file => { -%> + <script src="<%- js_file %>" defer></script> + <%_ }) _%> + <%_ } _%> </head> <body> \ No newline at end of file