-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -235,7 +232,7 @@ <h3>JavaScript & 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> | ||
|
@@ -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> | ||
|
@@ -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> |