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 + +