-
Notifications
You must be signed in to change notification settings - Fork 0
Coolest WD Feature :) #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,17 +4,20 @@ const emojis = []; | |
|
|
||
|
|
||
| const emojiAddFunction = async () => { | ||
|
|
||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you change this? |
||
| let res = await fetch('https://emoji-api.com/emojis?access_key=1ce9b701f975ba7b63dd065ab1e09f26e3d1e83d') | ||
| res = await res.json() | ||
| for(let i=0 ; i<res.length ; i++){ | ||
|
|
||
| for (let i = 0; i < res.length; i++) { | ||
| emojis.push(res[i].character); | ||
| } | ||
| } | ||
|
|
||
| emojiAddFunction(); | ||
|
|
||
| emojiAddFunction(); | ||
| emojiAddFunction(); | ||
|
|
||
| btn.addEventListener('mouseover', () => { | ||
| btn.innerText = emojis[Math.floor(Math.random() * emojis.length)]; | ||
| }) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,39 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need this section. |
||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Number Facts</title> | ||
| <link rel="stylesheet" href="./style.css"> | ||
| </head> | ||
|
|
||
| <body> | ||
| <section> | ||
| <div class="container"> | ||
| <form > | ||
| <form> | ||
| <input type="number" placeholder="Enter a number"> | ||
| <button type="submit">Submit</button> | ||
| </form> | ||
| <div class="number-fact">Enter a number here to know some interesting info π .</div> | ||
| </div> | ||
| </section> | ||
|
|
||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you change this? |
||
| <section> | ||
| <div class="container"> | ||
| <form> | ||
| <input type="number" placeholder="Enter a number"> | ||
| <button type="submit">Submit</button> | ||
| </form> | ||
| <div class="number-fact">Enter a number here to know some interesting info π .</div> | ||
| </div> | ||
| </section> | ||
|
|
||
|
|
||
|
|
||
| <section> | ||
| <div class="container"> | ||
| <form> | ||
| <input type="number" placeholder="Enter a number"> | ||
| <button type="submit">Submit</button> | ||
| </form> | ||
|
|
@@ -18,4 +42,5 @@ | |
| </section> | ||
| <script src="./app.js"></script> | ||
| </body> | ||
| </html> | ||
|
|
||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need these imports?