diff --git a/main.js b/main.js index 1d6592c..c33b5c6 100644 --- a/main.js +++ b/main.js @@ -16,7 +16,6 @@ function createWindow() { }); win.removeMenu(); - // win.webContents.openDevTools(); win.loadFile('src/views/idle/idle.html'); // Switch back to idle if register finished diff --git a/modules/handle_state.js b/modules/handle_state.js index eb8c428..f60d5d3 100644 --- a/modules/handle_state.js +++ b/modules/handle_state.js @@ -4,19 +4,19 @@ module.exports.CardOn = async (win, uuid) => { await Request('GET', `api/checkout/card?uuid=${uuid}`, null, (err, data, statusCode) => { if (statusCode == 200) { // Load the dashboard - win.loadFile(`src/views/base/base.html`, {query: {"uuid": JSON.stringify(uuid)}}); + win.loadFile(`src/views/base/base.html`, { query: { "uuid": JSON.stringify(uuid) } }); } else if (statusCode == 404) { // Show register page if card not found win.loadFile(`src/views/register/register.html`); } else if (statusCode == 401) { // Blocked card - win.loadFile(`src/views/idle/idle.html`, {query: {error: "This card has been blocked. Please add a new card."}}); + win.loadFile(`src/views/idle/idle.html`, { query: { error: "This card has been blocked. Please add a new card." } }); } else if (statusCode == 403) { // Card not yet activitated - win.loadFile(`src/views/idle/idle.html`, {query: {error: "This card has not been activated yet. Please confirm or contact a board member."}}); + win.loadFile(`src/views/idle/idle.html`, { query: { error: "This card has not been activated yet. Please confirm or contact a board member." } }); } else { // Show message that something went wrong - win.loadFile(`src/views/idle/idle.html`, {query: {error: "Something went wrong while reading your card. Please try again later."}}); + win.loadFile(`src/views/idle/idle.html`, { query: { error: "Something went wrong while reading your card. Please try again later." } }); } }); } diff --git a/src/views/base/base.css b/src/views/base/base.css index 985fb0a..3bb1602 100644 --- a/src/views/base/base.css +++ b/src/views/base/base.css @@ -8,7 +8,7 @@ body { .menu { height: 100px; margin-bottom: 0 !important; - background-color: #fe7215 !important; + background-color: #800816 !important; } .menu > span { @@ -45,4 +45,4 @@ footer { width: 100%; text-align: center; height: 20px; -} \ No newline at end of file +} diff --git a/src/views/idle/idle.css b/src/views/idle/idle.css index 9e623f9..4fbe422 100644 --- a/src/views/idle/idle.css +++ b/src/views/idle/idle.css @@ -1,5 +1,5 @@ body { - background-color: #fe7215; + background-color: #800816; } #logo { diff --git a/src/views/register/register.css b/src/views/register/register.css index b206623..872717f 100644 --- a/src/views/register/register.css +++ b/src/views/register/register.css @@ -1,5 +1,5 @@ body { - background-color: #fe7215; + background-color: #800816; } #title { position: relative; @@ -33,4 +33,4 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; -} \ No newline at end of file +}