Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -68,9 +68,15 @@ class SakuraCyberDashboard {
|
|
| 68 |
async launchLiveLogs() {
|
| 69 |
this.log('Starting Log Trace Algorithm...');
|
| 70 |
try {
|
| 71 |
-
const
|
| 72 |
-
const
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
} catch (error) {
|
| 75 |
this.log(`Trace Protocol Failure: ${error.message}`);
|
| 76 |
}
|
|
|
|
| 68 |
async launchLiveLogs() {
|
| 69 |
this.log('Starting Log Trace Algorithm...');
|
| 70 |
try {
|
| 71 |
+
const width = Math.min(1000, window.innerWidth * 0.8);
|
| 72 |
+
const height = width * (9 / 16); // 16:9 aspect ratio
|
| 73 |
+
const left = (window.innerWidth - width) / 2;
|
| 74 |
+
const top = (window.innerHeight - height) / 2;
|
| 75 |
+
|
| 76 |
+
window.open(
|
| 77 |
+
'https://akshay-365.github.io/',
|
| 78 |
+
'Code Hacks',
|
| 79 |
+
`width=${width},height=${height},left=${left},top=${top}`);
|
| 80 |
} catch (error) {
|
| 81 |
this.log(`Trace Protocol Failure: ${error.message}`);
|
| 82 |
}
|