Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <script>
  2. $(".filtru").click(function(e){
  3. e.preventDefault();
  4. var href = $(this).attr('href');
  5. $.getJSON(href, function(data) {
  6. $("#rest").empty();
  7.  
  8.  
  9. $.each(data, function(key, val) {
  10. $("#rest").append('<li> <a href="http://carulcuflori.rezerv.city"><div class="foto_local span3"><h2>'+ val.denumire + '</h2></div></a><div class="continut1 span5">
  11. <div class="continut2">
  12. <ul>
  13. <li><span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span> ' +val.address +'</li>
  14. <li><span class="glyphicon glyphicon-time" aria-hidden="true"></span> L-V: 06-01&nbsp&nbspS: 06-23&nbsp&nbspD: Inchis</li>
  15. <li><span class="glyphicon glyphicon-phone-alt" aria-hidden="true"></span> 0351.44.42.43 / 0767.226.224 </li>
  16. <li><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> carulcuflori@yahoo.com </li>
  17. </ul>
  18. </div></a>
  19. </div>
  20. <div class="navigation span5">
  21. <div id="pagenav" class="menu_mic">
  22. <ul class="nav menu">
  23. <li class="item-466 color7 home1" data-open-text="Inchide"><a href="http://rezerv.city/engine/app/maps.php?id=' + val.id + '" class="locatie"><img src="images/locatie.png" alt="Locatie"><span class="image-title">Locatie</span> </a></li>
  24. <li class="item-466 color8 home1" data-open-text="Inchide"><a href="#"><img src="images/galerie.png" alt="Galerie foto"><span class="image-title">Galerie Foto</span> </a></li>
  25. <li class="item-466 color9 home1" data-open-text="Inchide"><a href="#"><img src="images/facebook.png" alt="Facebook"><span class="image-title">Facebook</span> </a></li>
  26. </ul>
  27. </div>
  28. </div></li>');
  29. });
  30. $('#rest').paginate({itemsPerPage: 2});
  31.  
  32. });
  33. });
  34. </script>
  35.  
  36. <script>
  37. $(".locatie").click(function(e){
  38. e.preventDefault();
  39. var href = $(this).attr('href');
  40. $.getJSON(href, function(data) {
  41. $('#myModal2').modal('show');
  42. $('.modal-body').html(data);
  43.  
  44. });
  45.  
  46. });
  47. </script>
  48.  
  49. $('body').on('click','.locatie',function(e){
  50. e.preventDefault();
  51. var href = $(this).attr('href');
  52. $.getJSON(href, function(data) {
  53. $('#myModal2').modal('show);
  54. $('.modal-body').html(data);
  55.  
  56. });
  57.  
  58. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement