Skip to content

Commit f8c2340

Browse files
authored
Add files via upload
1 parent 345577e commit f8c2340

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

coords.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<html>
2+
<body>
3+
4+
<p id="demo"></p>
5+
<p id="dem"></p>
6+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
7+
<script>
8+
let screenLog = document.querySelector('#demo');
9+
document.addEventListener('mousemove', logKey);
10+
11+
function logKey(e) {
12+
screenLog.innerText = `
13+
${e.screenX}, ${e.screenY}
14+
${e.clientX}, ${e.clientY}`;
15+
}
16+
</script>
17+
18+
</body>
19+
</html>

dave.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<input type="text" id="Dave" value="">
5+
<button onclick="search()">Search</button>
6+
<iframe height="800" width="80%" id="myFrame">
7+
</iframe>
8+
<script>
9+
function search() {
10+
var x = document.getElementById("Dave").value;
11+
document.getElementById("myFrame").src = "https://davecode.me/other/" + x +".mp4";
12+
}
13+
document.body.addEventListener("keydown", function (event) {
14+
if (event.keyCode ==13 ) {
15+
search();
16+
}
17+
});
18+
</script>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)