Skip to content

Commit

Permalink
Making codefactor happy 😃
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabhg71 committed Sep 12, 2023
1 parent 0f6c4a0 commit 88d1bda
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions www/js/lib/uiUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ function isElementInView (el, fully) {
* @example showElements(element1, element2, element3)
* @returns {void}
*/
function showElements(...elements) {
function showElements (...elements) {
for (const element of elements) {
if (element) element.style.display = '';
}
Expand All @@ -485,7 +485,7 @@ function showElements(...elements) {
* @example hideElements(element1, element2, element3)
* @returns {void}
*/
function hideElements(...elements) {
function hideElements (...elements) {
for (const element of elements) {
if (element) element.style.display = 'none';
}
Expand All @@ -495,7 +495,7 @@ function hideElements(...elements) {
* Removes the animation classes that are added by the slide animation in previous transition
* @returns {void}
*/
function removeAnimationClasses() {
function removeAnimationClasses () {
const config = document.getElementById('configuration');
const about = document.getElementById('about');
const home = document.getElementById('articleContent');
Expand All @@ -511,7 +511,7 @@ function removeAnimationClasses() {
* @param {HTMLElement} sectionToHide Element which is gonna be slide to the left (hide)
* @returns {void}
*/
function slideToLeft(sectionToShow, sectionToHide) {
function slideToLeft (sectionToShow, sectionToHide) {
sectionToShow.classList.add('slideIn_L');
setTimeout(function () {
sectionToShow.style.display = '';
Expand All @@ -532,7 +532,7 @@ function slideToLeft(sectionToShow, sectionToHide) {
* @param {HTMLElement} sectionToHide Element which is gonna be slide to the right (hide)
* @returns {void}
*/
function slideToRight(sectionToShow, sectionToHide) {
function slideToRight (sectionToShow, sectionToHide) {
sectionToHide.classList.add('slideOut_R');
setTimeout(function () {
sectionToHide.style.display = 'none';
Expand All @@ -550,7 +550,7 @@ function slideToRight(sectionToShow, sectionToHide) {
* Returns the name of the section which is currently visible
* @returns {String} The name of the section which is currently visible
*/
function fromSection() {
function fromSection () {
const isConfigPageVisible = !$('#configuration').is(':hidden');
const isAboutPageVisible = !$('#about').is(':hidden');
const isArticlePageVisible = !$('#articleContent').is(':hidden');
Expand All @@ -566,7 +566,7 @@ function fromSection() {
* @param {Boolean} isAnimationRequired To enable or disable the animation
* @returns {void}
*/
function tabTransitionToSection(toSection, isAnimationRequired = false) {
function tabTransitionToSection (toSection, isAnimationRequired = false) {
// all the references of the sections/tabs
const config = document.getElementById('configuration');
const about = document.getElementById('about');
Expand Down

0 comments on commit 88d1bda

Please sign in to comment.