Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
better-wp-security
/
core
/
modules
/
site-scanner
/
js
:
scanner.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
'use strict'; ( function( $ ) { var itsecSiteScanner = { init: function() { this.bindEvents(); }, bindEvents: function() { $( document ).on( 'click', '.itsec-site-scan-toggle-details', this.toggleDetails ); }, toggleDetails: function( e ) { e.preventDefault(); var $container = $( this ).parents( '.itsec-site-scan-results-section' ); var $details = $container.find( '.itsec-site-scan__details' ); if ( $details.is( ':visible' ) ) { $( this ).text( wp.i18n.__( 'Show Details', 'better-wp-security' ) ).attr( 'aria-expanded', false ); $details.hide(); } else { $( this ).text( wp.i18n.__( 'Hide Details', 'better-wp-security' ) ).attr( 'aria-expanded', true ); $details.show(); } }, }; $( document ).ready( function() { itsecSiteScanner.init(); } ); } )( jQuery );