client/public/elements/pages/concept/rp-page-concept.js
/**
   * @method _toggleElements
   * @description checks if the object is empty it would take away the
   * section and the nav bar
   * 
   * @param {String} type
   * @param {Array} arrayCheck 
   */
@method _toggleElements
@description checks if the object is empty it would take away the
section and the nav bar

@param {String} type
@param {Array} arrayCheck
@method _toggleElements @description checks if the object is empty it would take away the section and the nav bar @param { String } type @param { Array } arrayCheck
_toggleElements(type, arrayCheck) {
    if(this._isEmpty(arrayCheck)){
      this.shadowRoot.getElementById(type).style.display = "none";
      let data = this.shadowRoot.getElementById("navbar").shadowRoot.querySelectorAll('a');
      for(let i = 0; i < data.length; i++){
        if(data[i].href.includes(type)) data[i].style.display = "none";
      }
    } else {
      this.shadowRoot.getElementById(type).style.display = "block";
      let data = this.shadowRoot.getElementById("navbar").shadowRoot.querySelectorAll('a');
      for(let i = 0; i < data.length; i++){
        if(data[i].href.includes(type)) data[i].style.display = "block";
      }
    }
  }
_toggleElements ( type , arrayCheck ) { if ( this . _isEmpty ( arrayCheck ) ) { this . shadowRoot . getElementById ( type ) . style . display = "none" ; let data = this . shadowRoot . getElementById ( "navbar" ) . shadowRoot . querySelectorAll ( 'a' ) ; for ( let i = 0 ; i < data . length ; i ++ ) { if ( data [ i ] . href . includes ( type ) ) data [ i ] . style . display = "none" ; } } else { this . shadowRoot . getElementById ( type ) . style . display = "block" ; let data = this . shadowRoot . getElementById ( "navbar" ) . shadowRoot . querySelectorAll ( 'a' ) ; for ( let i = 0 ; i < data . length ; i ++ ) { if ( data [ i ] . href . includes ( type ) ) data [ i ] . style . display = "block" ; } } }
@method _toggleElements
 @description checks if the object is empty it would take away the
 section and the nav bar
@method _toggleElements @description checks if the object is empty it would take away the section and the nav bar
// let data = this.shadowRoot.getElementById("navbar").shadowRoot.querySelector("div").querySelectorAll("[href]"); // let data = this.shadowRoot.getElementById("navbar").shadowRoot.querySelector("div").querySelectorAll("[href]");