forked from mrshll/climatework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (59 loc) · 2.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
<!DOCTYPE html>
<html lang="en" id="rss">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="con" type="image/png" sizes="100x100" href="img/favicon.ico">
<link rel="apple-touch-icon" type="image/png" sizes="100x100" href="img/favicon.ico">
<title>Climate Work</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script>
</head>
<body>
<ol id='posts'>
</ol>
<footer>
<img id="icon" src="img/icon.gif" alt="icon" />
<p class="readme">
<a type="application/rss+xml" href="posts.rss">rss</a>
</p>
<p class="readme">
This board is an attempt to connect talented people with organizations that increase energy efficiency, decrease
CO<sub>2</sub> emissions, and conserve our natural resources.
</p>
<p>
To add an open position, submit a <a href="https://github.com/mrshll/climatework#add-a-listing" target="_blank">pull
request</a>.
</p>
<p>
If you find a job listing that is no longer active, or if a link is broken, please <a
href="https://github.com/mrshll/climatework/issues/new" target="_blank">report it</a>.<br />
</p>
</footer>
<style>
:root { --color-alpha: white; --color-beta: #4b4b4b; }
body { font-size: 12px; font-family: monospace; color: var(--color-beta); font-weight: 400; line-height: 1.6; padding: 30px; }
body a { text-decoration: none; color: #3d7496; }
body a:hover { background-color: #3d7496; color: white; }
body a:before { content: '{'; }
body a:after { content: '}'; }
body>ol { margin-bottom: 30px; padding: 0px 30px 12px; column-count: 1; display: block; border-bottom: 1px dotted var(--color-beta); }
body>ol>li { padding-right: 30px; margin-bottom: 18px; }
body>ol>li:target { background: var(--color-beta); }
body>ol>li:target a { color: var(--color-alpha); }
body>ol>li a:visited:before, body>ol>li a:visited:after { color: var(--color-alpha); }
body>footer>p { max-width: 600px; }
body>footer>img { display: inline-block; width: 100px; margin-bottom: -5px; margin-bottom: 30px; }
@media screen and (max-width: 800px) { body { padding: 20px; } body>ol { column-count: 1; } }
@media screen and (max-width: 600px) { body { padding: 10px; } body>ol { column-count: 1; } }
@media (prefers-color-scheme: dark) { :root { --color-alpha: #4b4b4b; --color-beta: white; } }
</style>
<script>
$.get('posts.rss', (data) => {
$(data).find('item').each(function() {
const el = $(this);
$('#posts').append(`<li><a href="${el.find('link').text()}">${el.find('title').text()} - ${el.find('description').text()}</a></li>`);
})
});
</script>
</body>
</html>