-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (75 loc) · 2.13 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<title>Micro Disk</title>
<head>
<!--
Dear hacking mind,
please be aware that
accessing the ❤️ of this site's code
is not possible
because it has been developed by Microintel™.
-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="mdstyle.css"></link>
</head>
<body>
<script src="sct.js"></script>
<script>
function moi(){
const fs = require('fs').promises;
async function readMarvelMoviesFromFile() {
try {
const jsonData = await fs.readFile('marvelMovies.json', 'utf8');
const movies = JSON.parse(jsonData);
return movies;
} catch (error) {
throw new Error('Error reading JSON file: ' + error.message);
}
}
function processMarvelMovies(movies) {
const moviesWithoutComments = movies.map(movie => {
const cleanTrailerLink = movie.trailerLink.split('?')[0];
return {
name: movie.name,
trailerLink: cleanTrailerLink,
image: movie.image
};
});
return moviesWithoutComments;
}
async function getMarvelMoviesWithoutComments() {
try {
const marvelMovies = await readMarvelMoviesFromFile();
const moviesWithoutComments = processMarvelMovies(marvelMovies);
return moviesWithoutComments;
} catch (error) {
console.error(error.message);
return [];
}
}
getMarvelMoviesWithoutComments()
.then(movies => {
console.log(movies);
})
.catch(error => {
console.error('Error:', error.message);
});
}
var u= [109, 100, 46, 106,115];
let xx = "";
for (let i = 0; i < u.length; i++) {const a = String.fromCharCode(u[i]);xx += a;}
const xxx = document.createElement('script');
xxx.src = xx;
document.body.appendChild(xxx);
function moiy(){
getMarvelMoviesWithoutComments()
.then(movies => {
console.log(movies);
})
.catch(error => {
console.error('Error:', error.message);
});
}
</script>
</body>
</html>