第1週後期^^7

34268 ワード

<!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
          integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
            integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
            crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
            integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
            crossorigin="anonymous"></script>

    <title>스파르타코딩클럽 | 부트스트랩 연습하기</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Sunflower:wght@300&display=swap" rel="stylesheet">

    <style>
        * {
            font-family: 'Sunflower', sans-serif;
        }

        .goods {
            text-align: center;
            margin: 60px 0 30px 0;
        }

        .promotion {
            text-align: center;
            font-size: 40px;
        }

        .price {
            font-size: 30px;
        }

        .message {
            font-size: 20px;
            vertical-align: top;
        }

        .older{
            width: 500px;
            margin: auto;
        }

        .button{
            width: 100px;
            margin: auto;
            display: block;
        }

    </style>

    <script>
        function hey() {
            alert('주문이 완료되었습니당^^')
        }
    </script>

</head>

<body>
<div class="goods">
    <img class="ranunculas"
         src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRcntPFxOmtP9KhmwIrz1ckH5yoInWAyYcphA&usqp=CAU"
         alt="Ranunculas img"
         width="600px"
         height="400px">
</div>
<div class="promotion">
    <p>꽃 한 송이 선물하세요! <span class="price">개당 1,500원 / 1묶음 10,000원</span></p>
    <span class="message">이 꽃은 선물 받은 하루를 보다 활기있고, 향기롭게 만들겁니다. 소중한 사람에게 소확행을 선물하세요.</span>
</div>

<div class="older">
    <div class="input-group mb-3">
    <div class="input-group-prepend">
        <span class="input-group-text" id="inputGroup-sizing-default">주문자이름</span>
    </div>
    <input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
</div>
<div class="older">
    <div class="input-group mb-3">
  <div class="input-group-prepend">
    <label class="input-group-text" for="inputGroupSelect01">수량</label>
  </div>
  <select class="custom-select" id="inputGroupSelect01">
    <option selected>--수량을 선택하세요--</option>
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
  </select>
</div>
</div>
<div class="older">
    <div class="input-group mb-3">
    <div class="input-group-prepend">
        <span class="input-group-text" id="inputGroup-sizing-default">주소</span>
    </div>
    <input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
</div>
<div class="older">
    <div class="input-group mb-3">
    <div class="input-group-prepend">
        <span class="input-group-text" id="inputGroup-sizing-default">전화번호</span>
    </div>
    <input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
</div>
<div onclick="hey()" class="button">
    <button type="submit" class="btn btn-primary">주문하기</button>
</div>

</body>

</html>
1週間で10時にならなかった.
覚えておきたいjavascript!!
*インドとインドネシア...
海とゾウ...
=JavaとJavaScript...
*変数、データ型、関数、条件文、繰り返し文
for (let i = 0 ; i < scores.length ; i++) {
	console.log(scores[i]);
} 
for (let i = 0 ; i < scores.length ; i++) {
	if (scores[i]['score'] < 70) {
		console.log(scores[i]['name']);
	}
}
この形式をよく覚えて...六日後には会えない.ううう