KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/highlandlabs/cqi-bin/ALFA_DATA/alfasymlink/root/domains/ty-gardweb/de/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/highlandlabs/cqi-bin/ALFA_DATA/alfasymlink/root/domains/ty-gardweb/de/js/results.js
function getURLParams( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
	
}

//
function evDocumentReady () {
	// Configurar formulario de envío.
	configurarEnvioResultados ();
	//
	var parametros = getURLParams ("resultsID");
	var containerSizeValor = getURLParams ("containerSize");
	
	containerSizeValor = containerSizeValor.replace ("%27", "'");
	$("#containerSize").text (containerSizeValor);
	//
	parametros = parametros.replace ("%27", "'");
	parametros = parametros.replace ("%27", "'");
	parametros = parametros.replace ("%27", "'");
	parametros = parametros.replace ("%27", "'");
	//
	var lista = new Array ();
	lista = parametros.split (",");
	//
	$('#imagen').attr ("src", "img/results/" + lista[0] + ".jpg");
	// $('#pdfDownload').attr ("href", "pdf/" + lista[0] + ".pdf");
	$('#pdfDownload').attr ("href", "http://www.ty-gard2000.com/pdf_loadguide/" + lista[0] + ".pdf");
	//
	var texto = "<ul class=\"option\">";	
	if ( (lista.length-1) > 1) {
		for (var i=0; i<lista.length-1; i++) {
			//
			texto += "<li><a class='optionButton' rel=\"" + lista[i] + "\" href=\"#\">OPTION " + (i+1) + "</a></li>";
		}
	}
	texto += "</ul>";
	$('#menu').html (texto);
	$('.optionButton').click (evImagenClic);
}

function evImagenClic () {
	//
	
	$('#imagen').attr ("src", "img/results/" + this.rel + ".jpg");
	// $('#pdfDownload').attr ("href", "pdf/" + this.rel + ".pdf");
	$('#pdfDownload').attr ("href", "http://www.ty-gard2000.com/pdf_loadguide/" + this.rel + ".pdf");
	return false;
}

//
$(document).ready (evDocumentReady);

// Configurar envío de resultados.
var formEstaVisible = false;
function configurarEnvioResultados () {
	$("#formulario_panel").hide ();
	
	$("#email_shower").click (evMostrarOcultarPanel);
	$("#cancel_sending").click (evMostrarOcultarPanel);
	
	$("#result_link").val (window.location.href);
}

function evMostrarOcultarPanel () {
	if ( formEstaVisible ) {
		$("#formulario_panel").hide ();
		formEstaVisible = false;
	} else {
		$("#formulario_panel").show ();
		formEstaVisible = true;
	}
	return false;
}

Anon7 - 2021