HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/srce/public_html/wp-content/plugins/so-widgets-bundle/widgets/blog/js/blog.js
/* globals jQuery */

jQuery( function ( $ ) {
	if ( soBlogWidget.scrollto ) {
		// Detect if there's a Blog Widget in the URL, and scroll to it.
		if ( window.location.search && window.location.search.includes( 'sow-' ) ) {
			const blogId = window.location.search.match( /sow-([0-9a-f]+)/ )[1];
			const blogWidget = $( `[data-paging-id="${ blogId }"]` );
			if ( blogWidget.length ) {
				$( 'html, body' ).animate( {
					scrollTop: blogWidget.offset().top - soBlogWidget.scrollto_offset,
				}, 200 );
			}
		}
	}
} );