1(function ($) { 2 "use strict"; 3 4 bacolaThemeModule.loginform = function() { 5 6 var tab = $( '.login-page-tab li' ); 7 var forms = $( '.login-form-container' ); 8 9 var removeClass = () => { 10 for ( var i = 0; i < tab.length; i++ ) { 11 if ( tab[i].children[0].classList.contains( 'active' ) ) { 12 tab[i].children[0].classList.remove('active'); 13 } 14 } 15 } 16 17 for ( var i = 0; i < tab.length; i++ ) { 18 const button = tab[i].children[0]; 19 button.addEventListener( 'click', (event) => { 20 event.preventDefault(); 21 if ( !event.target.classList.contains( 'active' ) ) { 22 removeClass(); 23 event.target.classList.add( 'active' ); 24 forms.toggleClass( 'show-register-form' ); 25 } 26 }); 27 } 28 29 if(window.location.hash == '#register'){ 30 $( '.login-page-tab li a' ).removeClass(); 31 $( '.login-page-tab li:last-child a' ).addClass( 'active' ); 32 forms.toggleClass( 'show-register-form' ); 33 } 34 } 35 36 $(document).ready(function() { 37 bacolaThemeModule.loginform(); 38 }); 39 40})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.