<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="evtMouseDown.html" onsubmit="return checkEmpty(document.getElementById('user'));">
이름 : <input type="text" id="user" />
<input type="submit" value="submit">
</form>
<script>
function checkEmpty(field){
if(field.value.length==0){
alert("공백");
field.focus();
return false;
}
return true;
}
</script>
</body>
</html>
빈칸이면 '공백' 알림이 뜨고, 채워져 있으면 다른 페이지로 이동
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<button onclick="fn_01('이영애a');">button</button>
<script>
function fn_01(name){
if(fn_02(name)==true){
alert("이영애 맞습니다.");
} else{
alert("이영애 아닙니다.");
}
}
function fn_02(name){
if(name=='이영애'){
return true;
} else{
return false;
}
}
</script>
</body>
</html>
오늘 HTML 끝
깃
git commit -am "메세지"
-am 옵션으로 add 와 commit 을 한번에 할 수 있음.
단, 이미 한번 add 된 파일이어야 함.
git branch
브랜치 목록 확인
git branch 이름
branch 만들기
*표시가 있고, 초록색으로 표현된 브렌치를 현재 사용중이라는 뜻
git checkout 이름
branch 변경하기
exp 브랜치에서 만든 파일은 master 로 사용 할 때는 보이지 않음
master 의 log 에도 보이지 않음
git log --branches --decorate --graph
git log 그래프로 확인
exp branch 이후 master 에서 commit 하니 가지가 갈라졌음
git log --branches --decorate --graph --oneline
git graph 축소화 버전
위와 같이 git log graph 를 만들어보세요
Windows 미션
fashionmission.html
쇼핑몰 화면 출력
위와 같이 사진, 품목이름, 가격 table 3줄 정도 출력
메일로 제출
메일 제목 : 패션html_홍길동