Clase 2017-03-14
[Fecha de publicaión: 2017-03-14]
En clase se terminaron de realizar el proyecto y se presento al docente
Se tenia en cuenta el ejercicio de fpdf y moviles
<!DOCTYPE html>
<html>
<head>
<?php require_once ('Mobile_Detect/Mobile_Detect.php');
$detect = new Mobile_Detect(); ?>
<title></title>
</head>
<body>
<?php //-- if ($detect->isMobile()==false) { ?>
<!-- // aquí una barbaridad de imágenes muy pesadas para el carrusel-->
<?php //--} ?>
<?php
$entro = "N";
if ($detect->isMobile()) {// Detecta si es un móvil
echo "<br>Es un Movil";
$entro = "S";
}
if ($detect->isTablet()) {// Si es un tablet
echo "<br>Es una Tablet";
$entro = "S";
}
if ($detect->isAndroidOS()) {// Si es Android
echo "<br>Es un Android";
$entro = "S";
}
if ($detect->isiOS()){//Si es iOS
echo "<br>Es un Mac";
$entro = "S";
}
if ($entro == "N"){
echo "<br>Es un Pc";
}
echo $detect->isMobile();
?>
</body>
</html>
En clase se terminaron de realizar el proyecto y se presento al docente
Se tenia en cuenta el ejercicio de fpdf y moviles
<!DOCTYPE html>
<html>
<head>
<?php require_once ('Mobile_Detect/Mobile_Detect.php');
$detect = new Mobile_Detect(); ?>
<title></title>
</head>
<body>
<?php //-- if ($detect->isMobile()==false) { ?>
<!-- // aquí una barbaridad de imágenes muy pesadas para el carrusel-->
<?php //--} ?>
<?php
$entro = "N";
if ($detect->isMobile()) {// Detecta si es un móvil
echo "<br>Es un Movil";
$entro = "S";
}
if ($detect->isTablet()) {// Si es un tablet
echo "<br>Es una Tablet";
$entro = "S";
}
if ($detect->isAndroidOS()) {// Si es Android
echo "<br>Es un Android";
$entro = "S";
}
if ($detect->isiOS()){//Si es iOS
echo "<br>Es un Mac";
$entro = "S";
}
if ($entro == "N"){
echo "<br>Es un Pc";
}
echo $detect->isMobile();
?>
</body>
</html>
Comentarios
Publicar un comentario