-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet] Allow setting a different pointer, keyboard, or wheel on inp…
…ut device (#11513) * [dotnet] Allow setting a different pointer, keyboard, or pointer on input device Related to #10724
- Loading branch information
Showing
8 changed files
with
262 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<html> | ||
|
||
<head> | ||
<title>Login</title> | ||
</head> | ||
|
||
<body> | ||
<main id="main-holder"> | ||
<h1 id="login-header">Login</h1> | ||
<form id="login-form"> | ||
<input type="text" name="username" id="username-field" class="login-form-field" placeholder="Username"> | ||
<input type="password" name="password" id="password-field" class="login-form-field" placeholder="Password"> | ||
<input type="submit" value="Login" id="login-form-submit"> | ||
</form> | ||
|
||
</main> | ||
</body> | ||
|
||
<script type="text/javascript"> | ||
const loginForm = document.getElementById("login-form"); | ||
const loginButton = document.getElementById("login-form-submit"); | ||
|
||
loginButton.addEventListener("click", (e) => { | ||
e.preventDefault(); | ||
|
||
const username = loginForm.username.value; | ||
const password = loginForm.password.value; | ||
|
||
if (username === "username" && password === "password") { | ||
alert("You have successfully logged in."); | ||
} else { | ||
alert("Please enter valid credentials"); | ||
location.reload(); | ||
} | ||
}) | ||
|
||
</script> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.