|
@@ -12,19 +12,38 @@
|
|
|
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
|
|
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
|
|
|
<script>
|
|
<script>
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
curpag=1;
|
|
curpag=1;
|
|
|
var cat = 'Limpieza';
|
|
var cat = 'Limpieza';
|
|
|
- $(".cambiarcat").click(function() {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $(".cambiarcat").click(function() {
|
|
|
cat = $(this).attr('val');
|
|
cat = $(this).attr('val');
|
|
|
getData();
|
|
getData();
|
|
|
});
|
|
});
|
|
|
- function getData() {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ function getData() {
|
|
|
$.get('listaprod.php', { cat : cat }).done(function(data) {
|
|
$.get('listaprod.php', { cat : cat }).done(function(data) {
|
|
|
$("#paginas_wrapper").html(data);
|
|
$("#paginas_wrapper").html(data);
|
|
|
|
|
+ $(".texto u").click(function(){
|
|
|
|
|
+ expand = $(this).attr('prodid');
|
|
|
|
|
+ getDesc();
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
-} //getData
|
|
|
|
|
- getData();
|
|
|
|
|
|
|
+ } //getData
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ var expand="";
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ getData();
|
|
|
|
|
+ function getDesc(){
|
|
|
|
|
+ $.get('vermas.php', {id : expand}).done(function(data){
|
|
|
|
|
+ $("#descripcion-completa").html(data);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
$(".next").click(function() {
|
|
$(".next").click(function() {
|
|
|
if ( ! $(".pagina[num='"+(curpag+1)+"']").length )
|
|
if ( ! $(".pagina[num='"+(curpag+1)+"']").length )
|
|
|
return;
|
|
return;
|
|
@@ -103,29 +122,19 @@ $(document).ready(function() {
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div id ="paginas_wrapper">
|
|
<div id ="paginas_wrapper">
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div id="overlay-contact">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div id="descripcion-completa">
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
</body>
|
|
</body>
|
|
|
</html>
|
|
</html>
|
|
|
-<!-- <div num="" class="pagina" >
|
|
|
|
|
- <div class="nav" style="display: inline; float: left; height: 30px; margin-top: 170px;">
|
|
|
|
|
- <label for="img-1" class="prev">‹</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div id="lista_productos">
|
|
|
|
|
-
|
|
|
|
|
- <div id="producto" style="float:left;">
|
|
|
|
|
- <div style="float : left; width:15%;">
|
|
|
|
|
- <img src="Images/producto.jpg">
|
|
|
|
|
- </div>
|
|
|
|
|
- <div style="float : left; width: 74%;">
|
|
|
|
|
- <h4> <php echo $nombre; ?> </h4>
|
|
|
|
|
- <br> <php echo $desc; ?> <br><br>
|
|
|
|
|
- <u>Ver más</u>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+<!--
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div class="nav" style="float: right; height: 30px; margin-top: 170px;">
|
|
<div class="nav" style="float: right; height: 30px; margin-top: 170px;">
|