
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Atún tun tun...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
 body {
	 background: #F8F8F8;
	 	font-family: Verdana;
 }
 .Estilo2 a:link, a:visited {
	 background: #b2d1d1;
	 color: black;
	 text-decoration: none;
	 word-wrap: break-word;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding: .1rem .3rem .2rem;
	border-radius: .2rem;
 }
 .Estilo2 a:hover {
	 color: #585858;
 }

.Estilo2 {
	color: #669999;
	width: 450px;
	background: white;
	padding: 10px;
	margin: 0 auto;
}
.contacto a:link, a:visited {
	color: black;
	text-decoration-color: #b2d1d1;
}
.contacto {
  width: 450px;
	margin: 0 auto;
	font-size: x-small;
}
.dumb {
	font-size: xx-small;
	color: #e6e6e6;
	margin: 0 auto;
}
</style>
</head>

<body>
<div align="center" class="Estilo2">
  <p><img src="https://i2.wp.com/manuls.inopia.net/wp-content/uploads/2016/06/cropped-fishtuna2-1.jpg" < p>
  <p>Aquí antes había un blog llamado <strong>Atún tun tun...</strong> comenzado en 2003 donde un personaje llamado Manuls, Manuel Quiroga en la VidaReal™, escribía de sus cosas...</p>
	<p>...pero llegó <a href="http://www.twitter.com/Manuls" target="_blank">Twitter</a></p>
	<p>...e <a href="http://www.instagram.com/Manuls" target="_blank">Instagram</a></p>
	<p>...y la vida en general</p>
	<script>
	// url Async requesting function
	function httpGetAsync(theUrl, callback)
	{
	    // create the request object
	    var xmlHttp = new XMLHttpRequest();
	    // set the state change callback to capture when the response comes in
	    xmlHttp.onreadystatechange = function()
	    {
	        if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
	        {
	            callback(xmlHttp.responseText);
	        }
	    }

	    // open as a GET call, pass in the url and set async = True
	    xmlHttp.open("GET", theUrl, true);

	    // call send with no params as they were passed in on the url string
	    xmlHttp.send(null);

	    return;
	}

	// callback for the random search
	function tenorCallback_randomsearch(responsetext)
	{
	    // parse the json response
	    var response_objects = JSON.parse(responsetext);

	    top_10_gifs = response_objects["results"];

	    // load the GIFs -- for our example we will load the first GIFs preview size (nanogif) and share size (tinygif)

	    document.getElementById("preview_gif").src = top_10_gifs[0]["media"][0]["nanogif"]["url"];


	    return;

	}


	// function to request random gifs for a given search term
	function grab_data()
	{
	    // set the apikey and limit
	    var apikey = "B5LSUA2GAM9T";
	    var lmt = 2;
			var pos = Math.floor(Math.random() * 100);

			let terminos = [ "cat", "cats", "amazing", "galicia", "pontevedra"];
	    var search_term = terminos[Math.floor(Math.random() * terminos.length)];
			console.log("%cDid you ever noticed? Glass tastes a lot like blood!", "color:orange");

	    // using default locale of en_US
	    var search_url = "https://g.tenor.com/v1/random?q=" + search_term + "&key=" +
	            apikey + "&limit=" + lmt + "&pos=" +pos + "&locale=es_ES";

	    httpGetAsync(search_url,tenorCallback_randomsearch);
	    return;
	}
	grab_data();

	</script>
	<p><img id="preview_gif" src="/web/20210213180214im_/http://manuls.inopia.net/" alt="" style="width:150px"></p>
	<p class="contacto" style="color:lightgrey !important; font-style: italic;">GIF generado aleatoriamente por Trenor</p>
</div>
<div align="center" class="contacto">
	<p>Si deseas contactar con Manuls puedes hacerlo a través de su <a href="http://manuelquiroga.com/">web seria</a>.</p>
	<p> También lo encontrarás hablando del <a href="http://www.pontevedracf.net/">Pontevedra CF</a></p>
</div>
</body>
</html>
