From c112f6f904ef81d02465026fccec044c5b6bad40 Mon Sep 17 00:00:00 2001 From: Luis Fagundes Date: Tue, 16 Jan 2024 08:09:03 -0300 Subject: [PATCH] placeholder for the terms acceptance page. --- html/index.html | 11 +++++++++-- html/terms.html | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 html/terms.html diff --git a/html/index.html b/html/index.html index c98148df..8104606a 100644 --- a/html/index.html +++ b/html/index.html @@ -84,6 +84,8 @@ console.log = function() {} } + var TERMS_ACCEPTED = true; + /* var INFO = { "hardware": {}, @@ -96,7 +98,7 @@ // for mod-app control var desktop = null -$('document').ready(function() { +var startApp = function() { desktop = new Desktop({ titleBox: $('#pedalboard-info h1'), pedalboard: $('#pedalboard-dashboard'), @@ -251,7 +253,12 @@ } })(); */ -}) +}; +if (TERMS_ACCEPTED) { + $('document').ready(startApp); +} else { + document.location.href = '/terms.html'; +} diff --git a/html/terms.html b/html/terms.html new file mode 100644 index 00000000..46e01ec0 --- /dev/null +++ b/html/terms.html @@ -0,0 +1,5 @@ + + + Here goes terms, and a button to accept + +