HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: /home/xfp2mtarcm67/public_html/wp-content/plugins/tiktok-for-business/admin/js/order.js
window.onload = () => {
	function addWrapWithOrderTable() {
		var container      = document.querySelector( '#posts-filter' );
		var containerWidth = container.clientWidth;
		var ttsOrderTable  = container.querySelector( '.tts-order-table-container' );
		var first          = ! ttsOrderTable;
		if (first) {
			var table = container.querySelector( 'table' );
			var div   = document.createElement( 'div' );
			div.classList.add( 'tts-order-table-container' );
			container.insertBefore( div, table );
			div.appendChild( table );
			div.style.width = containerWidth + 'px';
		} else {
			ttsOrderTable.style.width = containerWidth + 'px';
		}
	}

	addWrapWithOrderTable();

	window.addEventListener( 'resize', addWrapWithOrderTable );
}