-
Notifications
You must be signed in to change notification settings - Fork 0
/
offers.html
59 lines (53 loc) · 1.82 KB
/
offers.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
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Salsa Jobs - Listado de Ofertas</title>
<meta name="description" content="Listado de ofertas de trabajo de calidad" />
<link rel="canonical" href="">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link rel="stylesheet" href="style.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-42054532-7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-42054532-7');
</script>
<style>
#list a {
display: block;
}
</style>
</head>
<body>
<<header>
<a href="/"> SALSA JOBS</a>
<nav>
<a href="salaries.html">salarios</a>
<a href="poll.html">compartir salario</a>
<a href="jobs.html">ofertas</a>
<a href="publish.html">publicar oferta</a>
</nav>
</header>
<main id="list">
</main>
<footer> 2019 - Salsa jobs </footer>
<script>
$list = document.querySelector('#list');
fetch('https://remoteok.io/api')
.then(res => res.json())
.then(jobs => {
jobs.forEach(job => {
if (job.position && job.url) {
$link = document.createElement('a');
$link.setAttribute('href', job.url);
$link.innerText = `${job.date} - ${job.position}`;
$list.appendChild($link);
}
});
});
</script>
</body>
</html>