mejoras en infinity scroll

This commit is contained in:
humano 2018-11-26 09:46:47 -05:00
parent ad04549388
commit b5923d1418
2 changed files with 79 additions and 2 deletions

View File

@ -90,8 +90,8 @@ $librerias_pie ="";
/// m = checklist /// m = checklist
/// n=notas /// n=notas
/// o=parallax /// o=parallax
/// p= Planilla /// p= Planilla
/// q = lab
/// s= SET DE DATOS * /// s= SET DE DATOS *
/// S= SET DE DATOS EMBEBIDO /// S= SET DE DATOS EMBEBIDO
@ -668,6 +668,83 @@ if('serviceWorker' in navigator) {
"; ";
$onload = vista_aplicacion($form); $onload = vista_aplicacion($form);
}elseif($v[0] =='q') {
$form =$v[1];
$embebido = "1";
$no_mostrar ="display:none; ";
$librerias_galeria ="
<!-- <link rel='manifest' href='manifest.json'> -->
<link rel='stylesheet' type='text/css' href='librerias/slick/slick.css'>
<link rel='stylesheet' type='text/css' href='librerias/slick/slick-theme.css'>
<link rel='stylesheet' type='text/css' href='librerias/slick/style.css'>
<script src='manup.js'></script>
";
$registros=1;
$registros_pagina=5;
$plantilla="landingpage";
$librerias_cabeza ="
<style>
.control_planilla{
display:none
}
</style>
$librerias_galeria
";
$librerias_pie ="
<script type = 'text/javascript' >
$(document).ready(function() {
loadArticle(1,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(2,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(3,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(4,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(5,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(6,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(7,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(8,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(9,$form,'galeria',$registros,'scroll-galeria','voyeur');
loadArticle(10,$form,'galeria',$registros,'scroll-galeria','voyeur');
var count2 = 11;
$('div').scroll(function() {
var offset = $('#scroll-galeria div').length;
var \$this = $(this);
var height = this.scrollHeight - \$this.height(); // Get the height of the div
var scroll = \$this.scrollTop(); // Get the vertical scroll position
var isScrolledToEnd = (scroll >= height);
if (isScrolledToEnd) {
loadArticle(count2,$form,'voyeur',$registros,'scroll-galeria','voyeur');
count2++;
}
});
});
</script>
";
$onload = vista_voyeur($form);
} }
elseif($v[0] =='g') { elseif($v[0] =='g') {
/// g=FORMULARIO EMBEBIDO /// g=FORMULARIO EMBEBIDO

2
milfs

@ -1 +1 @@
Subproject commit 1b483371628113723b30f75f553476fb6289a52f Subproject commit e9c1c882974048e0e7c276daac4a024bbd576c95