html
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
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
</head>
<body>
<canvas id="canv"></canvas>
<h2>Dream Place</h2>
<video id="backgroundVideo" autoplay loop muted>
<source id="videoSource" type="video/mp4">
</video>
<audio id="ringtone" autoplay loop>
<source id="audioSource" type="audio/mpeg">
</audio>
<script>
const c = document.getElementById('canv');
const ctx = c.getContext('2d');
const w = c.width = window.innerWidth;
const h = c.height = window.innerHeight;
const backgroundVideo = document.getElementById('backgroundVideo');
const videoSource = document.getElementById('videoSource');
const ringtone = document.getElementById('ringtone');
const audioSource = document.getElementById('audioSource');
Enter to Rename, Shift+Enter to Preview
css
css
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
@import url("https://fonts.googleapis.com/css?family=Molle:400italic&subset=latin,latin-ext");
body {
margin: 0;
overflow: hidden;
font-family: "Molle", cursive;
}
canvas {
position: fixed;
top: 0;
left: 0;
}
h2 {
left: 50%;
top: 45%;
position: absolute;
transform: translate(-50%, -50%);
font-size: 2.1em;
color: hsla(255, 255%, 255%, 0.7);
letter-spacing: 1px;
}
video {
display: none;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run