-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f3b767
commit 7ca8304
Showing
2 changed files
with
42 additions
and
0 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,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>HW_7</title> | ||
<script src="HW_seven.js"></script> | ||
</head> | ||
<body> | ||
<p>Это первый параграф на этой html-странице.</p> | ||
<p>А вот это уже второй параграф.</p> | ||
<p>А это... уже третий!!!</p> | ||
<input id="input"/> | ||
<br> | ||
<button id="button"></button> | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//document.getElementById('input')[0].addEventListener('input', function(e) { | ||
// if (this.value) { | ||
// document.getElementById('b').classList.add('show'); | ||
// } else { | ||
// document.getElementById('b').classList.remove('show'); | ||
// } | ||
//}); | ||
|
||
|
||
|
||
|
||
//$("input").on("input", function() { | ||
// if ($(this).val()) { | ||
// $("button").show(); | ||
// } else { | ||
// $("button").hide(); | ||
// } | ||
//}); | ||
//$("button").click(function() { | ||
// $("input").val(''); | ||
// $(this).hide(); | ||
//}); | ||
|
||
//let button = document.getElementById("button"); | ||
//button.style.display = "none"; |