landingpage.js 861 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $(function(){
  2. $('.selectpicker').selectpicker({
  3. template:{
  4. caret:'<span class="sel-icon glyphicon glyphicon-menu-down"></span>'
  5. }
  6. });
  7. $.getJSON("../../assets/js/landingpage_photos.json", function (data) {
  8. const tmphtml=template("flow-photos",{photos:data});
  9. $("#project-photo-row").append(tmphtml);
  10. });
  11. $("#project-photo-row").on("click",".thumbnail img",function(){
  12. var loginUser= window.localStorage.getItem("loginUser");
  13. if(!loginUser){
  14. window.location.href="../signin/signin.html"
  15. return
  16. }
  17. let imgname=$(this).data('imgname');
  18. zeroModal.show({
  19. url:'landingpage_details.html?img='+imgname,
  20. iframe:true,
  21. width:'95%',
  22. height:'95%',
  23. onClosed:function(){
  24. $("body").css('overflow','auto');
  25. },
  26. onComplete:function(){
  27. $("body").css('overflow','hidden');
  28. }
  29. });
  30. });
  31. });