Skip to content

Commit

Permalink
#187 on file local.html I made the favorite icon turns into a complet…
Browse files Browse the repository at this point in the history
…elyfull heart when clicking
  • Loading branch information
GabrielDVpereira committed Oct 6, 2018
1 parent 691c38c commit b2725b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion prototype/local.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<div class="panel-body">
<div class="local-title"><h4>Universidade de Brasília - Faculdade do Gama [FGA]</h4></div>
<div class="heart">
<i style="width: 10px" class="far fa-heart icon-favorito"></i style="width: 10px">
<i style="width: 10px" id = "icon" class="far fa-heart icon-favorito"></i style="width: 10px">
</div>
<div>
<h5>Avaliação:</h5>
Expand Down Expand Up @@ -90,4 +90,10 @@ <h5>Avaliação:</h5>
</div>
<div style="margin-bottom: -19px;"></div>
</body>
<script type="text/javascript">
document.querySelector("#icon").addEventListener("click", changeIcon);
function changeIcon(){
document.querySelector(".heart").innerHTML = `<span class="glyphicon">&#xe005;</span>`
}
</script>
</html>

0 comments on commit b2725b0

Please sign in to comment.