Skip to content

Commit

Permalink
film-flex.js
Browse files Browse the repository at this point in the history
  • Loading branch information
datkingvn authored Sep 3, 2023
1 parent 72d061d commit abc90d8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions film-flex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$(document).ready(function () {
$(".most-view .tab").click(function () {
var type = $(this).attr('data-id');
// $(".most-view .list-film").html("");
$(".most-view .tab").removeClass('active');
$(this).addClass('active');
// var data = { 'action': 'top_viewed', 'type': type }

$(".most-view .list-film .d").hide();
$(".most-view .list-film .w").hide();
$(".most-view .list-film .m").hide();

$(".most-view .list-film .item." + type).show();
})
})

0 comments on commit abc90d8

Please sign in to comment.