account.js 713 B

12345678910111213141516171819202122232425262728
  1. $(function(){
  2. $.getJSON("../../assets/js/landingpage_photos.json", function (data) {
  3. const tmphtml=template("favorite-photos",{photos:data});
  4. $("#project-photo-row").append(tmphtml);
  5. });
  6. $(".follow-box").append(template("follow-photos",{list:[1,2,3,4]}));
  7. $('.sort-box').on('click','.sort-tab',function(){
  8. let $this=$(this),showbox=$(this).data('show');
  9. if($this.hasClass('sort-tab-active')){
  10. return;
  11. }
  12. $('.sort-box .sort-tab-active').removeClass('sort-tab-active');
  13. $this.addClass('sort-tab-active');
  14. $(".project-box,.follow-box").hide();
  15. $("."+showbox).show();
  16. });
  17. $(".filter-menu").on('click','li',function(){
  18. zeroModal.alert({
  19. content:$(this).text()
  20. });
  21. });
  22. });