-
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
a.paziresh
committed
Oct 1, 2024
1 parent
8239060
commit 30defa2
Showing
44 changed files
with
78 additions
and
23 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 |
---|---|---|
|
@@ -92,5 +92,8 @@ | |
} | ||
} | ||
} | ||
}, | ||
"cli": { | ||
"analytics": "23e99102-7e9d-4650-9cb6-c37407637f2a" | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
docs/styles.5ff587515a422e29.css → docs/styles.fc218c3eb267c6c4.css
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
height: 100vh; | ||
width: 100%; | ||
|
||
font-family: "kalameh"; | ||
font-family: 'Dana', sans-serif; | ||
float: right; | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -1,10 +1,41 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-clock', | ||
templateUrl: './clock.component.html', | ||
styleUrls: ['./clock.component.css'] | ||
}) | ||
export class ClockComponent { | ||
export class ClockComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
this.updateClock(); | ||
setInterval(() => { | ||
this.updateClock(); | ||
}, 1000); // Update every second | ||
} | ||
|
||
updateClock() { | ||
const now = new Date(); | ||
|
||
const seconds = now.getSeconds(); | ||
const minutes = now.getMinutes(); | ||
const hours = now.getHours() % 12; | ||
|
||
const secondDegree = seconds * 6; // 360deg / 60 seconds | ||
const minuteDegree = (minutes * 6) + (seconds * 0.1); // 360deg / 60 minutes + second fraction | ||
const hourDegree = (hours * 30) + (minutes * 0.5); // 360deg / 12 hours + minute fraction | ||
|
||
// Apply the rotation to clock hands | ||
const secondHand = document.getElementById('second'); | ||
const minuteHand = document.getElementById('minute'); | ||
const hourHand = document.getElementById('hour'); | ||
|
||
if (secondHand && minuteHand && hourHand) { | ||
secondHand.style.transform = `rotate(${secondDegree}deg)`; | ||
minuteHand.style.transform = `rotate(${minuteDegree}deg)`; | ||
hourHand.style.transform = `rotate(${hourDegree}deg)`; | ||
} | ||
} | ||
} |
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
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
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
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
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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