Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux webd003.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : atwiofrxug (73666)
PHP Version : 8.4.10
Disable Functions : _dyuweyrj4,_dyuweyrj4r,dl
Current Directory : /home/atwiofrxug/mylittletelaviv/wp-content/plugins/weather-atlas/public/js/
Directory Status: Writeable | Document Root: Writeable

Upload File







Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/plugins/weather-atlas/public/js/weather-atlas-public.js

/*<![CDATA[*/
(
	function ( $ )
	{
		'use strict';
		$( document ).ready( function ( $ )
		                     {
			                     $( '.city_name' ).autocomplete( {
				                                                     source: function ( request, response )
				                                                     {
					                                                     $.ajax( {
						                                                             url: 'https://www.weather-atlas.com/weather/includes/autocomplete_city.php?callback=?',
						                                                             dataType: 'jsonp',
						                                                             data: {
							                                                             limit: 15,
							                                                             language: weather_atlas_language,
							                                                             term: request.term
						                                                             },
						                                                             success: function ( data )
						                                                             {
							                                                             response( $.map( data.results, function ( item )
							                                                             {
								                                                             return {
									                                                             label: item.city_name,
									                                                             value: item.city_name + ' (' + item.city_selector + ')'
								                                                             }
							                                                             } ) );
						                                                             }
					                                                             } );
				                                                     },
				                                                     minLength: 2,
				                                                     appendTo: '.autocomplete:visible',
				                                                     close: function ( e, ui )
				                                                     {
					                                                     if ( $( this ).val() )
					                                                     {
						                                                     var match = $( this ).val().match( /\((.*)\)/ );
						                                                     if ( match )
						                                                     {
							                                                     var city_selector = match[ 1 ];
						                                                     }
						                                                     if ( city_selector )
						                                                     {
							                                                     $( '.city_selector' ).val( city_selector );
							                                                     Cookies.set( 'city_selector', city_selector, {
								                                                     expires: 3650, path: '/'
							                                                     } );
							                                                     location.reload();
							                                                     return false;
						                                                     }
					                                                     }
				                                                     }
			                                                     } );
			                     $( '.city_selector_toggle' ).on( 'click', '.city_selector_toggle_link', function ()
			                     {
				                     $( '.weather-atlas-header-title' ).toggle();
				                     $( '.city_selector_toggle_div' ).toggle();
				                     $( '.city_name' ).focus();
				                     return false;
			                     } );
		                     } );
	}
)( jQuery );
/*]]>*/

Cyb3r Drag0nz Team • Google Edition