HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //old_home_backup/themewsdentalstudio.co.uk/public_html/js/home.js
$('.testimonial_middle').cycle({ 
			fx: 'scrollUp'	
	});
var imageCount = 0;
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		$(window).ready(function() {
			$('.submenu_wrapper').hide().height(0);
			$('.menu').hover(
			  function () {	 
				$(this).addClass('menu_fees'); 
				$('.submenu_wrapper', this).stop().show().animate({height:182}, 300);
		
			  }, 
			  function () {	   
				obj = this;				
				if(	$(obj).children('div').size() == 0 ) $('.menu').removeClass('menu_fees');
				$('.submenu_wrapper', this).stop().animate({height:0}, 300, function(){ $('.menu').removeClass('menu_fees'); $('.submenu_wrapper').hide(); });
			  }
			);
			
			imageCount = jQuery("#mygalthree").find("img").size();
			$("#txtName").val("");
			$("#txtEmail").val("");
			$("#txtMobNo").val("");	
			$('.mustFields').click(function() { 
				if($(this).val() == 'Please enter...')
				{
					$(this).val('');
				}
				
			});
			$('.mustFields').focus(function() { 
				if($(this).val() == 'Please enter...')
				{
					$(this).val('');
				}
				
			});
			$('.mustFields').blur(function() { 
				if($(this).val() == '')
				{
					$(this).val('Please enter...');
				}
				
			});
		
			$("#hrefHidden").colorbox({width:"615", inline:true, href:"#light1"});
			$('#inline1').click(function() {  	
					var valid = true;
				$('.mustFields').each(function() { 	
					if($(this).val() == '' || $(this).val() == 'Please enter...')
					{
						$(this).val('Please enter...');
						$(this).addClass('error_input');
						valid = false;
					} 
					else if($(this).attr('id') == 'txtEmail')
					{
						if (!filter.test($(this).val())) 
						{
							valid = false;
							alert('Please enter a valid email address...');
						}
					}
				});			
				if(valid)
				{	
					$("#spanName").html($("#txtName").val());
					$("#spanEmail").html($("#txtEmail").val());
					$("#spanMobNo").html($("#txtMobNo").val());
					
					$("#cm-name").val($("#txtName").val());
					$("#cm-tujddh-tujddh").val($("#txtEmail").val());
					$("#cm-f-gltii").val($("#txtMobNo").val());
					
					
					$("#hrefHidden").trigger("click");
				
				
				}
				return false;
			});	
			$("#mygalthree").slideView({ 
				easeFunc: "easeInOutSine", 
				easeTime: 500 
			}); 
			window.setInterval('moveNext();', 6000);
		});
var crtImage = 0;
		function moveNext(){
				jQuery("#mygalthree").find("img").eq(crtImage).trigger("click");	
				crtImage++;
				if(crtImage > (imageCount-2)) crtImage=0;
		}