-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.html
68 lines (62 loc) · 2.14 KB
/
api.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="veiwport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src='js\apijquery.js' type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css\api-css.css" />
<title>Spoonacular API FETCH</title>
</head>
<body>
<div id="disp">
<div class="vl"></div>
<div align="left" id="one1">
Nutricate
</div>
<div id="one2" align="right">
<a
href="https://web-chat.global.assistant.watson.cloud.ibm.com/preview.html?region=au-syd&integrationID=c6e6a51c-0ce4-4283-963f-46b05542c433&serviceInstanceID=f036fa6f-c8aa-4b9b-957a-33b1c1607017">Chat</a>
<a href="login.html">Login</a>
<a href="signup.html">Sign up</a>
<a href="index.html">Home</a>
</div>
</div>
<div class="data">
<div id="ipdiv">
<input type="text" id='findfor' placeholder="Seach food item">
</div>
<button id="getjson" onclick="getjson1()">Search</button>
<br>
</div>
<div id="output">
<table cellspacing="0">
<tr>
<th>Nutrient</th>
<th>Amount</th>
</tr>
<tr>
<td class="col1">Calories</td>
<td id="1" class="col1"></td>
</tr>
<tr>
<td class="col2">Fat</td>
<td id="2" class="col2"></td>
</tr>
<tr>
<td class="col1">Protein</td>
<td id="3" class="col1"></td>
</tr>
<tr>
<td class="col2">Carbs</td>
<td id="4" class="col2"></td>
</tr>
<tr>
<td colspan="2" class="col1"><button onclick="again()" id="again">Search Item?</button></td>
</tr>
</table>
</div>
<!-- <script src='apifetch.js' type="text/javascript"></script> -->
</body>
</html>