JSFiddle - React, Tailwind, and code Playground

by Gonzalo

JavaScript

<?php
//direccion a buscar
//$direccion= urlencode('12167 SW 27TH ST 1911, MIRAMAR, 33025');
//$latlng = urldecode('20.630296,-103.276446');
//Buscamos la direccion en el servicio de google
 //$geocode=file_get_contents('http://maps.google.com/maps/api/geocode/json?latlng='.$latlng.'&sensor=false');
//$geocode=file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng=20.630296,-103.276446&sensor=false');
 //decodificamos lo que devuelve google, que esta en formato json
// $output= json_decode($geocode);
 //echo utf8_decode($output->results[0]->formatted_address);
//echo "<pre>";print_r($output->results[0]->address_components);echo "</pre>";
 //echo "<pre>";print_r($output->results[0]->formatted_address);echo "</pre>";
//Extraemos la informacion que nos interesa
 //echo $output->status;
 /*$lat = $output->results[0]->geometry->location->lat;
 $long = $output->results[0]->geometry->location->lng;

//la imprimimos
 echo $lat.', '.$long;*/
/*$horaIni = '2012-08-06 04:00:00';
$horaFin='2012-08-06 04:10:00';
echo $_data = (date("Y-m-j h:i:s", strtotime("00:00:00") + strtotime($horaFin) - strtotime($horaIni) ));
echo "<br/>";
$to_time = strtotime($horaIni);
$from_time = strtotime($horaFin);
echo round(abs($to_time - $from_time) / 60,2). " minute";*/
//$fecha_actual = strtotime($_lastDate);
//$fecha_entrada = strtotime($_currentDate);



/*$_lastDate = date( 'Y-m-j h:i:s', strtotime($_date['last']) );
		$_currentDate = date( 'Y-m-j h:i:s', strtotime($_date['current']) );
		$_newCurrentDate = strtotime ( $_params , strtotime ( $_currentDate ) ) ;
		$_currentDate = date ( 'Y-m-j h:i:s' , $_newCurrentDate );
		$fecha_actual = strtotime($_lastDate);
		$fecha_entrada = strtotime($_currentDate);
		if($fecha_actual == $fecha_entrada){
			$_isSame = true;
		}
		return $_isSame;*/

//$pieces = explode("/", $_SERVER['SCRIPT_FILENAME']);
echo "<pre>";
echo REQUEST_URI;
echo "</pre>";
/*$arrLenght = sizeof($pieces);
echo $pieces[$arrLenght-1];*/
?>