mejoras en index

This commit is contained in:
humano 2018-04-02 13:15:00 -05:00
parent 390e03e61e
commit 5f9e780d06
2 changed files with 19 additions and 15 deletions

View File

@ -1023,6 +1023,22 @@ $uri = $_SERVER['REQUEST_URI'];
<script src="./librerias/charts/Chart.bundle.js"></script>
<script src="./librerias/charts/utils.js"></script>
<script src="./librerias/lazy/jquery.lazy.min.js"></script>
<script>
$(function() {
$('.lazy').lazy({
// your configuration goes here
combined: true,
delay: 1000,
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
onError: function(element) {
console.log('error loading ' + element.data('src'));
}
});
});
</script>
<link rel="stylesheet" type="text/css" href="librerias/datatables/datatables.css">
<script type="text/javascript" charset="utf8" src="librerias/datatables/datatables.js"></script>
@ -1458,19 +1474,7 @@ echo $css_adicional;
</script>
<script type="text/javascript">
$(function() {
$('.lazy').Lazy({
// your configuration goes here
combined: true,
delay: 1000,
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
onError: function(element) {
console.log('error loading ' + element.data('src'));
}
});
});
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
event.preventDefault();

View File

@ -11473,7 +11473,7 @@ $div = "contenedor";
$campo_titulo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
if($campo_titulo[0] !='') {$w_campo = "AND id_campo = '$campo_titulo[0]'";}
$campo_titulo = $campo_titulo[0];
$consulta ="SELECT *, control as identificador FROM form_datos WHERE form_id = '$id' $w_campo GROUP BY control order by id DESC limit 20 ";
$consulta ="SELECT *, control as identificador FROM form_datos WHERE form_id = '$id' $w_campo GROUP BY control order by id DESC ";
$link=Conectarse();
$sql=mysqli_query($link,$consulta);
if (mysqli_num_rows($sql)!='0'){
@ -11510,7 +11510,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
} ";
$links .= " <a id='$row[control]'></a>";
$contenido .= "
<div class='parallax_$row[control]'></div>
<div class='parallax_$row[control] lazy'></div>
<div style='min-height:200px;'>
<div class='container'>$contenido_desplegado</div>
</div>