iT邦幫忙

2019 iT 邦幫忙鐵人賽

DAY 6
0
Modern Web

JavaScript 30系列 第 6

JavaScript 30 #06 - Type Ahead

start

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Type Ahead ?</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>

  <form class="search-form">
    <input type="text" class="search" placeholder="City or State">
    <ul class="suggestions">
      <li>Filter for a city</li>
      <li>or a state</li>
    </ul>
  </form>
<script>
const endpoint = 'https://gist.githubusercontent.com/Miserlou/c5cd8364bf9b2420bb29/raw/2bf258763cdddd704f8ffd3ea9a3e81d25e2c6f6/cities.json';

</script>
  </body>
</html>


上一篇
JavaScript 30 #5 - Flex Panel Gallery
下一篇
JavaScript 30 #07 - Array Cardio Day 2
系列文
JavaScript 3010

尚未有邦友留言

立即登入留言