From 24135cf037085f2ae7d70e48f023614435e29b3f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 May 2018 19:27:20 +0200 Subject: le file list --- app/client/api/util.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/client/api/util.js') diff --git a/app/client/api/util.js b/app/client/api/util.js index 99d63b4..e561ca4 100644 --- a/app/client/api/util.js +++ b/app/client/api/util.js @@ -9,3 +9,7 @@ htmlClassList.add(is_desktop ? 'desktop' : 'mobile') htmlClassList.remove('loading') // window.debug = false + +function randint(n) { return Math.floor(Math.random()*n) } + +document.body.style.background = 'linear-gradient(' + (randint(40)+40) + 'deg, #fde, #ffe)' -- cgit v1.2.3-70-g09d2