diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 19:27:20 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 19:27:20 +0200 |
| commit | 24135cf037085f2ae7d70e48f023614435e29b3f (patch) | |
| tree | 50e4532300cfa990f37c945bb88c15b34104f569 /app/client/api/util.js | |
| parent | fe8cef1b709f09f508f17d0d6d06f204dd44a8bb (diff) | |
le file list
Diffstat (limited to 'app/client/api/util.js')
| -rw-r--r-- | app/client/api/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
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)' |
