HEX
Server: Apache
System: Linux webm006.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: perditaeyz (838589)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/perditaeyz/www/wp-content/plugins/lightweight-social-icons/js/scripts.js
jQuery(document).ready(function($) {
	function lsi_updatePlaceholders(){
		$('#widgets-right .choose-icon').each(function(){
			jQuery(this).change(function() {
				var select = jQuery(this);

				if ( jQuery(this).attr('value') == 'phone' ) {
					jQuery(this).next('input').attr('placeholder',lsiPlaceholder.phone);
				} else if ( jQuery(this).attr('value') == 'email' ) {
					jQuery(this).next().attr('placeholder',lsiPlaceholder.email);
				} else if ( jQuery(this).attr('value') == 'skype' ) {
					jQuery(this).next().attr('placeholder',lsiPlaceholder.username);
				}else if ( jQuery(this).attr('value') == '' ) {
					jQuery(this).next().attr('placeholder','');
				} else {
					jQuery(this).next().attr('placeholder','http://');
				}
			});
		});
	}
	lsi_updatePlaceholders();
	$(document).ajaxSuccess(function(e, xhr, settings) {
		if (typeof settings.data.search !== 'undefined' && $.isFunction(settings.data.search)) {
			if(settings.data.search('action=save-widget') != -1 ) {
				lsi_updatePlaceholders();
			}
		}
	});

	$( document ).on( 'widget-added widget-updated', lsi_updatePlaceholders );
});