| Server IP : 80.74.154.100 / Your IP : 216.73.217.0 Web Server : Apache System : Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64 User : onlineadmin ( 10487) PHP Version : 8.5.7 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/wptouch/include/js/ |
Upload File : |
// WPtouch Basic Client-side Ajax Routines
function WPtouchAjax( actionName, actionParams, callback ) {
var ajaxData = {
action: "wptouch_client_ajax",
wptouch_action: actionName,
wptouch_nonce: wptouchMain.security_nonce
};
for ( name in actionParams ) { ajaxData[name] = actionParams[name]; }
jQuery.post( wptouchMain.ajaxurl, ajaxData, function( result ) {
callback( result );
});
}
jQuery( '#content table' ).each( function() {
parentElement = jQuery( this ).parent( 'p,div' );
if ( parentElement.hasClass( 'post' ) === false ) {
parentElement.addClass( 'table-parent' );
} else {
jQuery( this ).wrap( '<div class="table-parent"></div>' );
}
});
jQuery( '#footer .back-to-top' ).click( function( e ) {
e.preventDefault();
jQuery( window ).scrollTop( 0 );
});
function doWPtouchReady() {
// Parse query vars json
wptouchMain.query_vars = jQuery.parseJSON( wptouchMain.query_vars );
// Shortcode
var shortcodeDiv = jQuery( '.wptouch-sc-content' );
if ( shortcodeDiv.length ) {
// We have a shortcode
var params = {
post_id: shortcodeDiv.attr( 'data-post-id' ),
page: shortcodeDiv.attr( 'data-page' ),
post_content: jQuery( '.wptouch-orig-content' ).html(),
post_nonce: wptouchMain.security_nonce
};
jQuery.post( wptouchMain.current_shortcode_url + '¤t_time=' + jQuery.now(), params, function( result ) {
shortcodeDiv.html( result );
jQuery( document ).trigger( 'wptouch_ajax_content_loaded' );
}
);
}
}
jQuery( document ).ready( function() { doWPtouchReady(); });