| Server IP : 89.248.107.232 / Your IP : 216.73.217.70 Web Server : Apache System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : seg ( 10005) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/seg-sa.es/atjconsultores.com/wp-content/themes/StoreFront/js/ |
Upload File : |
jQuery(document).ready(function() {
$( ".slideportada.slide1" ).css( "height", window.innerHeight);
jQuery('#url').val(document.URL);
//alert(screen.height);
//alert(window.innerHeight);
});
var dominioPagina = "/mantenimientos21"; //IMPORTANTE
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
function validar_contacto(form){
var mensaje = "";
var swi = 0;
if(form.nombre.value.length === 0){
swi = 1; mensaje+="Introduce por favor tu nombre\n";
}
if (form.email.value.indexOf('@', 0) === -1 || form.email.value.indexOf('.', 0) === -1) {
swi = 1; mensaje += "Introduce por favor un email valido\n";
}
if (form.telefono.value.length === 0) {
swi = 1;
mensaje += "Introduce por favor tu telefono\n";
}
if (!form.politica.checked) {
swi = 1; mensaje += "Debes aceptar la Politica de privacidad\n";
}
if(swi===1) alert(mensaje);
else {
alert("Formulario enviado con éxito");
form.submit();
}
}
$(".efecto-hover").hover(function(){
$(this).addClass("activo");
}, function(){
$(this).removeClass("activo");
});
$(".molde-cajas-con-hover ul li").hover(function(){
$(this).find("h2").addClass("ocultar");
}, function(){
$(this).find("h2").removeClass("ocultar");
});
$(function(){
$('a[href*=#]').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {
var $target = $(this.hash);
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
if ($target.length) {
var targetOffset = $target.offset().top;
$('html,body').animate({scrollTop: targetOffset}, 1000);
return false;
}
}
});
});