Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulyana0505 committed Sep 26, 2023
1 parent 0c180d9 commit b8f3f6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h2 id="title_2">A little bit less pink title</h2>

<button name="button_1" onclick="onClickButton(this)">Click-click-click</button>
<br>
<button name="button_2" onclick="userCalculate(this)"></button>
<img src="haha.jpg"
width="685"
height="618">
Expand Down
14 changes: 9 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
setTimeout(whattheysaid, 5000);
// setTimeout(whattheysaid, 5000);

function whattheysaid() {
confirm("Красиво?");
console.log(whattheysaid);
}
// function whattheysaid() {
// confirm("Красиво?");
// console.log(whattheysaid);
// }

var counter_button = 0;

Expand All @@ -13,3 +13,7 @@ function onClickButton(el) {
el.style.background = "#ba55d3";
el.style.color = "#4b0082";
}

function userCalculate(a) {
prompt("Enter any two numbers: ");
}

0 comments on commit b8f3f6d

Please sign in to comment.