Skip to content

Commit

Permalink
deploy: 6106bdc
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed Sep 10, 2024
1 parent b4ffb21 commit 2f72f66
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 22 deletions.
5 changes: 4 additions & 1 deletion about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>About - Harry Min Khant</title>

<title>
About - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion accessibility/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Accessibility - Harry Min Khant</title>

<title>
Accessibility - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Blog - Harry Min Khant</title>

<title>
Blog - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Categories - Harry Min Khant</title>

<title>
Categories - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion categories/news/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Categories - Harry Min Khant</title>

<title>
Categories - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion community/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Useful Community - Harry Min Khant</title>

<title>
Useful Community - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion community_policy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Community Policy - Harry Min Khant</title>

<title>
Community Policy - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion config/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Config - Harry Min Khant</title>

<title>
Config - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion contact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Contact - Harry Min Khant</title>

<title>
Contact - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Home - Harry Min Khant</title>

<title>
Home - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion privacy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Privacy Policy - Harry Min Khant</title>

<title>
Privacy Policy - Harry Min Khant
</title>

</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Projects - Harry Min Khant</title>

<title>
Projects - Harry Min Khant
</title>

</head>
<body>
Expand Down
19 changes: 10 additions & 9 deletions scripts/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,35 +153,36 @@ return round(size, round_to) + " GB";
size = size / 1024;
return round(size, round_to) + " TB";
}
function convertdate(dateString)
function normalize_iso_datetime(dateString)
{
// Convert date string into a valid ISO format (inserting colon in the timezone)
const validDateString = dateString.replace(/([+-]\d{2})(\d{2})$/, '$1:$2');
return validDateString;
}
function convertrdate(datestr)
function local_datetime_string(date_input)
{
var r=new Date(datestr);
if(!r) r=new Date(convertdate(datestr));
var r=new Date(date_input);
if (!r) r = new Date(normalize_iso_datetime(date_input));
const options = {
weekday: "long",
month: "long",
day: "numeric",
year: "numeric"
};
const timeformat=localStorage.getItem("timeformat");
const toptions = {
hour: "numeric",
minute: "numeric",
second: "numeric",
hour12: false
hour12: false,
timeZoneName: "short"
};
var final=r.toLocaleDateString("EN-US", options) + ", " + r.toLocaleTimeString("EN-US", toptions);
var final = r.toLocaleDateString("EN-US", options) + " at " + r.toLocaleTimeString("EN-US", toptions);
return final;
}
function get_timestamp(dateString) {
function get_timestamp(dateString)
{
// Convert date string into a valid ISO format (inserting colon in the timezone)
const validDateString = convertdate(dateString);
const validDateString = normalize_iso_datetime(dateString);

// Create a new Date object from the valid date string
const date = new Date(validDateString);
Expand Down
5 changes: 4 additions & 1 deletion search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>

<title>Search - Harry Min Khant</title>

<title>
Search - Harry Min Khant
</title>

</head>
<body>
Expand Down

0 comments on commit 2f72f66

Please sign in to comment.