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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>4k website tester</title> | |
<style> | |
iframe:focus { | |
outline: none; | |
} | |
iframe{ |
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
জাভাস্ক্রিপ্ট | |
const palette = document.querySelector('#palette'); | |
palette.addEventListener('click', handleColorClick); | |
function handleColorClick(el) { | |
console.log(`You clicked on this color: ${el.target.style.backgroundColor}`); | |
} |
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
এইচটিএমএল | |
<ol class="color-palette" id="palette"> | |
// colors element | |
</ol> |
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
body { | |
font-family: sans-serif; | |
} | |
#header { | |
padding: 20px; | |
background-color: green; | |
display: flex; | |
flex-direction: row-reverse; | |
} |
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
document.querySelector('#signup').addEventListener('click', () => { | |
console.log('Sign up button click'); | |
}); | |
document.querySelector('#signin').addEventListener('click', () => { | |
console.log('Sign in button click'); | |
}); |
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
<header id="header"> | |
<div id="account_links"> | |
<a href="#" id="signup">Sign up</a> | |
<a href="#" id="signin">Sign in</a> | |
</div> | |
</header> |