File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments