diff --git a/script.js b/script.js index 98da96f..e892631 100644 --- a/script.js +++ b/script.js @@ -37,6 +37,10 @@ $(document).ready(function(){ $(this).removeClass("far"); $(this).addClass("fas"); $(this).css("color","red"); + }elseif($dataLiked == 1){ + $(this).removeClass("fas"); + $(this).addClass("far"); + $(this).css("color","#444"); }else{ $(this).removeClass("fas"); $(this).addClass("far"); @@ -45,4 +49,4 @@ $(document).ready(function(){ }); -}); \ No newline at end of file +});