-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (65 loc) · 1.86 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
http-equiv="Content-Security-Policy"
content="
default-src 'none';
style-src
'unsafe-inline'
'self'
https://prod.statics.indeed.com;
font-src https://prod.statics.indeed.com;
script-src
'unsafe-inline'
https://sdk.indeed.com
https://d3oklwo3y1bx83.cloudfront.net;
connect-src
ws://127.0.0.1:8080//ws
ws://localhost:8080//ws
https://sdk.indeed.com/api
https://sdk.indeed.com/api/next
https://apis.indeed.com/graphql
https://d3oklwo3y1bx83.cloudfront.net;
"
/>
<link rel="stylesheet" href="style.css" />
<title>Indeed Scout HelloWorld integration example</title>
</head>
<body>
<header>
<h1>A pretend ATS</h1>
</header>
<main>
<h2>Pretend Job, id: Job12345</h2>
<p>
In this example we're showing how to load the Indeed Scout HelloWorld
module, and pass context from the ATS into Indeed Scout
</p>
</main>
<aside id="indeed-scout-hello-world"></aside>
<script src="https://sdk.indeed.com/js/v0.2.7/sdk.js"></script>
<script>
(async () => {
await window.Indeed.init();
const { ScoutHelloWorld } = await window.Indeed.elements.load(
"indeed-scout"
);
ScoutHelloWorld.create(
document.getElementById("indeed-scout-hello-world"),
{
context: {
identifiers: [
{
id: "Job12345",
type: "Job",
},
],
},
}
);
})();
</script>
</body>
</html>