From 4bfa338c32cd6932a1a93d361762a2aff7072e73 Mon Sep 17 00:00:00 2001 From: danbulant Date: Fri, 7 Feb 2020 20:08:39 +0100 Subject: [PATCH] Simple function, for future use --- client/src/ui/system/background.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 client/src/ui/system/background.js diff --git a/client/src/ui/system/background.js b/client/src/ui/system/background.js new file mode 100644 index 0000000..32cad79 --- /dev/null +++ b/client/src/ui/system/background.js @@ -0,0 +1,7 @@ + +function setBackground(){ + let bg = "https://picsum.photos/1280/720.webp"; + document.body.style.background = "url('" + bg + "')"; +} + +export default setBackground; \ No newline at end of file