Skip to content

Commit

Permalink
Update Author.html
Browse files Browse the repository at this point in the history
added like button
  • Loading branch information
kpsvdp authored Dec 28, 2023
1 parent c7ef4d6 commit cd6462b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Author.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<!-- Main -->
<div id="main">

<!-- Featured Post -->
<!-- Featured Post -->
<article class="post featured">
<header class="major">
<h3> </h3>
Expand All @@ -52,9 +52,18 @@ <h2><a href="#">The Student Life Abroad </a></h2>
<a href="#" class="image fit"><img src="images/Author Pic/chapter 0/j0.jpg" alt="" /></a>
<p>John, an Indian student studying in the UK, had great dreams, overcame adversity, found success and love, and never stopped being thankful.</p>
<ul class="actions special">
<li><a<button id="likeButton0" class="button"><span id="likeCount0">0</span> 👍 </button></li>
<li><a href="Prince00.html" class="button">Full Story</a></li>
<li><a href="https://medium.com/@kpsvdp/the-student-life-abroad-63985af0f9d3" class="button"> LINK</a></li>
</ul>
</ul>
<!-- JavaScript -->
<script>
var likeCount = 0;
document.getElementById('likeButton0').addEventListener('click', function() {
likeCount += 1;
document.getElementById('likeCount0').innerText = likeCount;
});
</script>
</article>

<!-- Posts -->
Expand Down Expand Up @@ -207,4 +216,4 @@ <h2 style="color: rgb(252, 252, 255);">
<script src="assets/js/main.js"></script>

</body>
</html>
</html>

0 comments on commit cd6462b

Please sign in to comment.