index.html 2.88 KB
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="author" content="colorlib.com">
  <link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet" />
  <link href="css/style.css" rel="stylesheet" />
</head>

<body>
  <div class="s130">
    <!--아이디 검색창1 : 계정내 검색-->
    <form>
      <div class="inner-form">
        <div class="input-field first-wrap">
          <div class="svg-wrapper">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
              <path
                d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z">
              </path>
            </svg>
          </div>
          <input id="search1" type="text" placeholder="아이디를 입력하세요" />
        </div>
        <div class="input-field second-wrap">
          <button class="btn-search" type="button" onclick="movePage1()">계정 내 검색하기</button>
        </div>
        <script type="text/javascript">
          function movePage1() { //계정 내 검색 페이지로 이동하기 위한 함수
            location.href = "/timeline/" + document.getElementById('search1').value //url을 이렇게 변경함
          }
        </script>
      </div>

      <div class="inner-form">
        <!--아이디 검색창2 : 인기글 검색-->
        <div class="input-field first-wrap">
          <div class="svg-wrapper">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
              <path
                d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z">
              </path>
            </svg>
          </div>
          <input id="search" type="text" placeholder="아이디를 입력하세요" />
        </div>
        <div class="input-field second-wrap">
          <button class="btn-search" type="button" onclick="movePage()">인기 게시물 검색하기</button>
        </div>
        <script type="text/javascript">
          function movePage() { //인기 게시물 페이지 이동을 위한 함수
            location.href = "/popular/" + document.getElementById('search').value //url을 이렇게 변경함
          }
        </script>
      </div>
      <span class="info">ex)TwitterKorea </span>

    </form>
  </div>
  <script src="js/extention/choices.js"></script>
</body><!-- This templates was made by Colorlib (https://colorlib.com) -->

</html>