From 3a3baddad1c801d77dc398d2c6980f3c14f4a47c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 30 Oct 2021 22:11:00 +0200 Subject: chore: move htdocs to repo root --- htdocs/src/js/utilities/helpers.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 htdocs/src/js/utilities/helpers.js (limited to 'htdocs/src/js/utilities/helpers.js') diff --git a/htdocs/src/js/utilities/helpers.js b/htdocs/src/js/utilities/helpers.js deleted file mode 100644 index 470c49c..0000000 --- a/htdocs/src/js/utilities/helpers.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Check the size of the current viewport. - * @returns {Boolean} True if viewport lower than 1200px; false otherwise. - */ -function isSmallVw() { - return window.innerWidth < 1200; -} - -/** - * Check if /assets/styles.js exists (Webpack dev mode). - * @returns {Boolean} True if style.js exists ; false otherwise. - */ -async function isStyleJsExists() { - const filePath = 'assets/js/style.js'; - const response = await fetch(filePath); - return response.status === 200; -} - -export { isSmallVw, isStyleJsExists }; -- cgit v1.2.3