# wpsso/22.7.0/js/com/jquery-tooltips.js

WPSSO Core – Complete Schema Markup and Meta Tags, version 22.7.0. 60 lines.

- Page: https://pluginprobe.com/plugins/wpsso/22.7.0/code/js/com/jquery-tooltips.js
- Raw: https://pluginprobe.com/plugins/wpsso/22.7.0/raw/js/com/jquery-tooltips.js
- Modified: 2025-03-28T15:06:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpsso/22.7.0/code/js/com/jquery-tooltips.js#L10-L20`.

```javascript

jQuery( document ).bind( 'sucom_init_metabox', function( event, container_id, doing_ajax ) {

	sucomInitToolTips( container_id, doing_ajax );
} );

function sucomInitToolTips( container_id, doing_ajax ) {

	var table_id = 'table.sucom-settings';

	if ( 'undefined' !== typeof container_id && container_id ) {

		table_id = container_id + ' ' + table_id;
	}

	var tableTooltips = jQuery( 'body.rtl ' + table_id + ' .sucom-tooltip' );
	var qtipCorner    = 'bottom right';

	if ( ! tableTooltips.length ) {

		tableTooltips = jQuery( table_id + ' .sucom-tooltip' );
		qtipCorner = 'bottom left';
	}

	tableTooltips.qtip( {
		content:{
			attr:'data-help',
		},
		position:{
			at:'top center',
			my:qtipCorner,
			adjust:{
				x:0,
				y:-5,
				resize:true,	// Adjust the tooltips position when the window is resized.
				scroll:true,	// Adjust the tooltips position when the window is scrolled.
			},
		},
		show:{
			when:{
				event:'mouseover',
			},
		},
		hide:{
			fixed:true,
			delay:500,
			when:{
				event:'mouseleave',
			},
		},
		style:{
			tip:{
				corner:true,
			},
			classes:'sucom-qtip qtip-lime-green qtip-shadow',
			width:600,
		},
	} );
}

```
