[WED] 2021-12-29

MINBOKยท2021๋…„ 12์›” 29์ผ
0

๋ฉ‹์Ÿ์ด์‚ฌ์ž์ฒ˜๋Ÿผ

๋ชฉ๋ก ๋ณด๊ธฐ
18/19
post-thumbnail
post-custom-banner

[Project] 1๋งŒ์‹œ๊ฐ„์˜ ๋ฒ•์น™

๐Ÿ’Œ Github ๋ฐ”๋กœ๊ฐ€๊ธฐ
https://github.com/minbok-1998/10000hours

word-break

: ํ…์ŠคํŠธ๊ฐ€ ์ž์‹ ์˜ ์ฝ˜ํ…์ธ  ๋ฐ•์Šค ๋ฐ–์œผ๋กœ ์˜ค๋ฒ„ํ”Œ๋กœ ํ•  ๋•Œ
ย ย ์ค„๋ฐ”๊ฟˆ์„ ํ•  ์ง€ ์ง€์ •ํ•˜๋Š” ์†์„ฑ
ย ย ์•„์‹œ์•„(CJK), ๋น„์•„์‹œ์•„์˜ ์–ธ์–ด๋ฅผ ๋ชจ๋‘ ์ œ์–ดํ•จ

ย ย ย ย ย ย + word-wrap: ๋น„์•„์‹œ์•„ ์–ธ์–ด๋ฅผ ์ œ์–ดํ•จ

   word-break: normal; // ๊ธฐ๋ณธ๊ฐ’, ์ผ๋ฐ˜์  ๊ทœ์น™์— ๋”ฐ๋ผ ์ค„๋ฐ”๊ฟˆ
   word-break: break-all; // ๋ฌธ์ž๋ฅผ ๊ฐ•์ œ๋กœ ์ค„๋ฐ”๊ฟˆ, CJK์–ธ์–ด ์ œ์™ธ
   word-break: keep-all; // ์ค„๋ฐ”๊ฟˆ์‹œ ๋‹จ์–ด ๋‹จ์œ„, ๋น„ CJK์—์„œ๋Š” normal๊ณผ ๋™์ผ

โœจ์ฐธ๊ณ 
https://developer.mozilla.org/ko/docs/Web/CSS/word-break

ํšจ์œจ์ ์ธ ์šฉ๋Ÿ‰ ๊ด€๋ฆฌ

ํ•œ ๋‘๋ฒˆ ์‚ฌ์šฉ๋˜๋Š” ํฐํŠธ๋Š” ํฐํŠธ ์‚ฌ์šฉ๋ณด๋‹ค๋Š”
์ด๋ฏธ์ง€๋กœ ํ•˜๋Š” ๊ฒƒ์ด ์šฉ๋Ÿ‰ ํšจ์œจ์— ๋„์›€ (ํฐํŠธ ์šฉ๋Ÿ‰ ํผ)

parseInt

parseInt(string)
parseInt(string, radix)

string
ํŒŒ์‹ฑํ•  ๊ฐ’, ๋ฌธ์ž์—ด์ด ์•„๋‹ ๊ฒฝ์šฐ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ํŒŒ์‹ฑ,
๋ฌธ์ž์—ด์˜ ์„ ํ–‰ ๊ณต๋ฐฑ์€ ๋ฌด์‹œ

radix Optional
string์˜ ์ง„์ˆ˜๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” 2๋ถ€ํ„ฐ 36๊นŒ์ง€์˜ ์ •์ˆ˜,
Number ์ž๋ฃŒํ˜•์ด ์•„๋‹Œ ๊ฒฝ์šฐ Number๋กœ ๋ณ€ํ™˜ํ•จ

    setTimeout(function() {
        fieldResult.innerText = fieldValue.value;
        timeResult.innerText = parseInt((10000/timeValue_int), 10);
        loading.style.display = "none";
        result.style.display = "flex";
    }, 1800);   

โœจ์ฐธ๊ณ 
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/parseInt

function

function ์ด๋ฆ„ (๋งค๊ฐœ๋ณ€์ˆ˜){ };

โ“ ๋งค๊ฐœ๋ณ€์ˆ˜๋ž€?

JavaScript์—์„œ, ํ•จ์ˆ˜์˜ ๋งค๊ฐœ๋ณ€์ˆ˜๋Š” undefined๊ฐ€ ๊ธฐ๋ณธ

function PersonName(name) {
   console.log(name);
}

PersonName('Minbok'); // Minbok

PersonName('Hodu'); // Hodu

function sum (a, b) {
    return a + b;
}

sum (1, 2); // 3

sum (20 , 21); // 41

๋งค๊ฐœ ๋ณ€์ˆ˜์˜ ๊ฐœ์ˆ˜๊ฐ€ ์ •ํ•ด์ง€์ง€ ์•Š์€ ํ•จ์ˆ˜

family('Mom', 'Dad', 'Minbok', 'beolgu', 'Hodu');

function family() {
    console.log(arguments[2] + ',' + arguments[4]);
} 

// Minbok, Hodu

โœจ์ฐธ๊ณ 
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Functions/Default_parameters

โœจ์ฐธ๊ณ 
https://jenny-daru.tistory.com/13

event.target

: ์ด๋ฒคํŠธ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฐ์ฒด๋ฅผ ๊ฐ€๋ฆฌํ‚ด, ์ด๋ฒคํŠธ๊ฐ€ ๋ฐœ์ƒํ•œ ์š”์†Œ๋ฅผ ๋ฐ˜ํ™˜

window.onclick = function (event) {
    if(event.target == modal) {
        closeModal();
    }
};

โ“ event.target๊ณผ this

  • this : ์ด๋ฒคํŠธ๊ฐ€ ์ฒ˜๋ฆฌ๋˜๋Š” DOM ์š”์†Œ(ํ˜„์žฌ ๋Œ€์ƒ)์— ๋Œ€ํ•œ ์ฐธ์กฐ
  • event.target :์ด๋ฒคํŠธ๋ฅผ ์‹œ์ž‘ํ•œ ์š”์†Œ

โœจ์ฐธ๊ณ 
https://stackoverflow.com/questions/12077859/difference-between-this-and-event-target


Github ๊พธ๋ฏธ๊ธฐ

๐Ÿ˜Š ์˜ˆ๋ป์ง„ ๋‚ด ๊นƒํ—™ ์ž๋ž‘
https://github.com/minbok-1998

โœจ ์ฐธ๊ณ  github ๊พธ๋ฏธ๊ธฐ
https://velog.io/@woo0_hooo/Github-github-profile-๊ฐ„์ง€๋‚˜๊ฒŒ-๊พธ๋ฏธ๊ธฐ

โœจ ์ฐธ๊ณ  read me ํ…œํ”Œ๋ฆฟ
https://alwaysone.tistory.com/entry/Github-%EC%95%8C%EC%95%84%EB%B3%B4%EA%B8%B0-%EC%A2%8B%EC%9D%80-Readme-%EC%9E%91%EC%84%B1%ED%95%98%EA%B8%B0

โœจ ์ฐธ๊ณ  ๋””์ž์ธ ์ฐธ๊ณ 
https://towardsdatascience.com/build-a-stunning-readme-for-your-github-profile-9b80434fe5d7

โœจ ์ฐธ๊ณ  github stats
https://github.com/anuraghazra/github-readme-stats/blob/master/docs/readme_kr.md

โœจ ์ฐธ๊ณ  ํ”„๋กœํ•„ ๊พธ๋ฏธ๊ธฐ
https://velog.io/@gomdorij/Github%EA%B9%83%ED%97%88%EB%B8%8C-%ED%94%84%EB%A1%9C%ED%95%84-%EA%BE%B8%EB%AF%B8%EA%B8%B0

post-custom-banner

0๊ฐœ์˜ ๋Œ“๊ธ€