Skip to content

Commit

Permalink
dont work ehhh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulyana0505 committed Oct 8, 2023
1 parent 6f3b767 commit 7ca8304
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
17 changes: 17 additions & 0 deletions HW_seven.html
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>
25 changes: 25 additions & 0 deletions HW_seven.js
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";

0 comments on commit 7ca8304

Please sign in to comment.