-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
54 lines (49 loc) · 909 Bytes
/
Copy pathscript.js
File metadata and controls
54 lines (49 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
new FinisherHeader({
"count": 13,
"size": {
"min": 1300,
"max": 1500,
"pulse": 0
},
"speed": {
"x": {
"min": 0.6,
"max": 2.5
},
"y": {
"min": 0.6,
"max": 2.5
}
},
"colors": {
"background": "#c5ad90",
"particles": [
"#ff9e1c",
"#6fe3dd",
"#836dcf",
"#ea62b1"
]
},
"blending": "lighten",
"opacity": {
"center": 0.6,
"edge": 0
},
"skew": 0,
"shapes": [
"c"
]
});
// --- Display "Last updated" timestamp ---
const updatedEl = document.getElementById("last-updated");
// Format the date and time neatly
const options = {
year: "numeric",
month: "short",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
};
const lastUpdated = new Date(document.lastModified).toLocaleString("en-US", options);
// Show it on the page
updatedEl.textContent = `Last updated: ${lastUpdated}`;