Created
September 28, 2021 09:18
-
-
Save hieptl/27c789681451c49e7239b7d96a99f674 to your computer and use it in GitHub Desktop.
util.js - Client Side - Tinder Clone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const loading = document.getElementById('loading'); | |
function hideLoading() { | |
loading.classList.add('loading--hide'); | |
} | |
function showLoading() { | |
loading.classList.remove('loading--hide'); | |
loading.classList.add('loading--active'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment