| Server IP : 69.39.225.240 / Your IP : 216.73.216.138 Web Server : Apache System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : reademotions ( 1074) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/reademotions/www/wp-content/plugins/gravityforms/jsdoc/ |
Upload File : |
function setDefaultThemeData() {
const propsSet = window.localStorage.getItem( 'custom-gf-doc-theme-props-set' );
if ( ! propsSet ) {
window.localStorage.setItem( 'font-size', '14' );
window.localStorage.setItem( 'custom-gf-doc-theme-props-set', '1' );
}
}
setDefaultThemeData();
( function() {
function docReady( fn ) {
if ( document.readyState === "complete" || document.readyState === "interactive" ) {
// call on next available tick
setTimeout( fn, 1 );
} else {
document.addEventListener( "DOMContentLoaded", fn );
}
}
function setTitle() {
const url = window.location.pathname;
const filename = url.substring( url.lastIndexOf( '/' ) + 1 );
const nameParts = filename.split( '.' );
if ( nameParts[ 0 ].indexOf( 'module-' ) !== -1 ) {
const header = document.querySelector( '.main-wrapper > section > header' );
if ( header ) {
header.insertAdjacentHTML( 'afterbegin', `<h1>${ nameParts[ 0 ].replace( 'module-', '' ) }</h1>` );
}
}
}
function modifyNavItems() {
const items = document.querySelectorAll( '.gform-docs-nav-item a' );
const href = document.location.href;
items.forEach( ( item ) => {
if ( href.includes( item.id ) ) {
item.classList.add( 'current' );
}
} );
}
function fadeInContent() {
const content = document.querySelector( '.main-wrapper' );
if ( content ) {
content.classList.add( 'reveal-content' );
}
}
function init() {
setTitle();
modifyNavItems();
fadeInContent();
}
docReady( init );
} )();