-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·40 lines (36 loc) · 1.56 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html lang="en">
<head>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.12/semantic.min.css">
<link rel="stylesheet" href="style.css">
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Rx Or Not</title>
</head>
<body>
<div id="root"></div>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin></script>
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.4.3/Rx.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
<script type="text/babel" src="./index.js"></script>
<script src="./script.js"></script>
<script>
/*
- Search Wikipedia using the input value
- Should search without having to click a submit button, in other words without any extra user interaction,
other than typing
- Debounce user input for 500 ms
- Search when input value's length is at least 3 chars
- Make sure not to show any old results if search changed
- Don't not send duplicate search requests
- Bonus clear previous results when input's length < 3
You have searchWikipedia function available (searchTerm -> Promise)
*/
</script>
</body>
</html>