Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Leuthra committed Mar 1, 2024
1 parent c63ef25 commit 948ee54
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,10 @@
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i"
rel="stylesheet"
/>
<link
href="assets/vendor/bootstrap/css/bootstrap.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<link href="assets/vendor/icofont/icofont.min.css" rel="stylesheet" />
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet" />
<link href="assets/vendor/venobox/venobox.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/venobox/2.1.6/venobox.css" rel="stylesheet" />
<link
href="assets/vendor/owl.carousel/assets/owl.carousel.min.css"
rel="stylesheet"
Expand Down Expand Up @@ -235,7 +232,7 @@ <h3>JavaScript &amp; Web Developer.</h3>
<ul>
<li>
<i class="icofont-rounded-right"></i>
<strong>Age:</strong> 16 Tahun
<strong>Age:</strong> <a id="ages"></a>
</li>
<li>
<i class="icofont-rounded-right"></i>
Expand Down Expand Up @@ -965,7 +962,6 @@ <h2>Contact</h2>

<!-- Vendor JS Files -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/waypoints/jquery.waypoints.min.js"></script>
Expand All @@ -981,12 +977,13 @@ <h2>Contact</h2>
<script>
// Ambil elemen di mana Anda ingin menampilkan tahun sekarang
var currentYearElement = document.getElementById("currentYear");

var ageElement = document.getElementById("ages")
// Buat objek Date untuk mendapatkan tahun sekarang
var currentYear = new Date().getFullYear();

var age = new Date().getFullYear() - 2005 + " Tahun"
// Masukkan tahun sekarang ke dalam elemen HTML
currentYearElement.innerHTML = currentYear;
ageElement.innerHTML = age;
</script>
</body>
</html>

0 comments on commit 948ee54

Please sign in to comment.