MapleStory Finger Point Cute Line Smiley Blinking Hello Kitty Angel MapleStory Finger Point

๐Ÿ’ŽWEB/Web_Code

หšโ‚Šโœฉโ€งโ‚Š 05/01 web ์ด๋ก  ์ •๋ฆฌ หšโ‚Šโœฉโ€งโ‚Š

HYEJU01 2024. 5. 1. 12:15
  • ์ฝ˜์†” ์ฐฝ : console.log("");
  • ๋ฐ”๋‹๋ผ JS
  • ์™ธ๋ถ€ JS ํŒŒ์ผ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ :: <script src="js/script.js"></script>

 

  • ๐Ÿ“์‹œ๋ฉ˜ํ‹ฑ ํƒœ๊ทธ  ::
    6๊ฐ€์ง€ : <header> <nav> <section> <article> <aside> <footer> 

 

  • text-indent: 20px
  • position : ๋ถ€๋ชจ - relative / ์ž์‹ - absolute
  • font-size: 1.3rem => 1.3 * 16 = px 

 

  • ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๊ฐœ๋…, ์žฅ๋‹จ์ 

 

  • ์›์‹œ ๋ฐ์ดํ„ฐ ์ข…๋ฅ˜ :: ์ˆซ์ž,๋ฌธ์ž,Boolean, Undefined, Null
  • Obejcet ๋ฐ์ดํ„ฐ ํƒ€์ž… :: ๋ฐฐ์—ด , ๊ฐ์ฒด , ํด๋ž˜์Šค , 

 

  • ๐Ÿ“ ๋ณ€์ˆ˜ ::
  • var (any) ์žฌ์„ ์–ธ ๊ฐ€๋Šฅ / ์žฌํ• ๋‹น๊ฐ€๋Šฅ
  • let (๊ฐ™์€Type),  ์žฌ์„ ์–ธ ๋ถˆ๊ฐ€๋Šฅ / ์žฌํ• ๋‹น๊ฐ€๋Šฅ
  • const(์ƒ์ˆ˜) ์žฌํ• ๋‹น ๋ถˆ๊ฐ€๋Šฅ

 

  • ๐Ÿ“ ๋ฐฐ์—ด :: ๊ฐ™์€ ํƒ€์ž…์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์ธ๋ฑ์Šค ์ˆœ์„œ๋Œ€๋กœ ๋‚˜์—ด๋œ ๊ฒƒ  <์˜ˆ์‹œ>
    ex) ๋ฌธ์ž์—ด๋กœ ์ด๋ฃจ์–ด์ง„ ํ•™๊ธ‰ ์นœ๊ตฌ๋“ค์˜ ์ด๋ฆ„์ด ๋‚˜์—ด๋˜์–ด์žˆ์Œ. 

 

  • ์กฐ๊ฑด๋ฌธ :: if ๋ฌธ
  • ์ดˆ๊ธฐํ™” :: ์ฒ˜์Œ ๊ฐ’ ์ง€์ •ํ•˜๋Š” ๊ฒƒ

 

  • ๐Ÿ“  ๋ฐ˜๋ณต๋ฌธ :: for ๋ฌธ  / while ๋ฌธ  (๋ฐ˜๋ณตํšŸ์ˆ˜๊ฐ€ ๋ถˆ๋ช…ํ™•)   <์ •์˜/์˜ˆ์‹œ>

 

  • input (type=button)

 

  • menu0 = document.getElementById('menu0'); //id
  • menu0 = document.querySelector('#menu0'); //class

 

  • addEventListenner("click", function() { });  ---> ๊ถŒ์žฅ 
  • menu0.onclick=function(){}  ----> ํ˜ธํ™˜์„ฑ

 

  • at0_text.innerHTML = "์•ˆ๋…• 1๋ฒˆ"; 
  • at0.style.display = "block";
  • display or z-index