-
Notifications
You must be signed in to change notification settings - Fork 1
/
collab.html
106 lines (99 loc) · 3.44 KB
/
collab.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<title>HatchThink | Tokenize Your IP</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
crossorigin="anonymous"
/>
<link href="hatchthink.css" rel="stylesheet" />
</head>
<body class="d-flex h-100 text-center text-white bg-dark">
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="mb-auto">
<div>
<h3 class="float-md-start mb-0">HatchThink</h3>
<nav class="nav nav-masthead justify-content-center float-md-end">
<a class="nav-link" href="index.html">Home</a>
<a class="nav-link" href="submit.html">Submit</a>
<a class="nav-link active" aria-current="page" href="#"
>Collaborate</a
>
<a class="nav-link" href="search.html">Search</a>
<a class="nav-link" href="invest.html">Invest</a>
<a class="nav-link" href="#">About</a>
</nav>
</div>
</header>
<main class="px-3">
<h1>Collaborate on Ideas</h1>
<br />
<p class="lead">Find and suggest ideas here</p>
<br />
<div id="result-text"></div>
<br />
<p class="lead">
<a
href="#"
class="btn btn-lg btn-secondary fw-bold border-white bg-white"
>Request Access</a
>
</p>
</main>
<footer class="mt-auto text-white-50 fs-6">
<p>
<small>
tmplt by
<a href="https://twitter.com/mdo" class="text-white">@mdo</a>
</small>
</p>
</footer>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function (event) {
if (location.hash) {
query = location.hash.slice(1);
console.log("success");
console.log(query);
// Put search query in a variable
var queryURL =
"https://developer.uspto.gov/ipmarketplace-api/search/query?searchText=" +
query;
// jQuery's AJAX function handles the RESTful API call
$.ajax({
url: queryURL,
method: "GET",
}).then(function (response) {
var results = response.results;
console.log(results[0]);
//
id = results[0].recordIdentifier;
//
nameTxt = results[0].assigneeNameText;
//
text = results[0].inventionAbstractText;
//
result =
'<div class="col"><div class="card h-100 bg-dark text-light"><div class="card-header bg-secondary text-light"> ID: ' +
id +
" - By: " +
nameTxt +
"</div>" +
'<div class="card-body"><div class="col truncate">' +
text +
"</div></div><div></div></div></div><br><br>";
//
$("#result-text").append(result);
});
}
});
$("#idea_search").on("click", function (event) {});
</script>
</body>
</html>