-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
103 lines (100 loc) · 3.16 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
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>Who I've Applied To (on HackerNews)</title>
<script src="https://unpkg.com/vue@2.1.8/dist/vue.min.js"></script>
<script src="https://unpkg.com/axios@0.12.0/dist/axios.min.js"></script>
<script src="https://unpkg.com/moment@2.17.1/min/moment.min.js"></script>
<script src="https://unpkg.com/lodash@4.13.1/lodash.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.2.3/css/bulma.min.css">
<style>
body {
padding-top: 90px;
}
.box:first-of-type {
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.card {
width: 100%;
margin-bottom: 20px;
}
.permahide {
color: #7a7a7a; /* $grey in bulma */
width: auto;
padding-right: 10px;
}
.permahide:before {
content: '[x]';
}
.permahide:hover:before {
content: 'Remove "forever" [x]';
color: #ff470f; /* $orange in bulma */
}
/*.card-footer-item {
border-bottom: 1px solid #dbdbdb;
}*/
</style>
</head>
<body>
<div id="hn">
<div class="box">
<div class="container">
<div class="columns">
<div class="column">
This is a little toy app to keep track of HackerNews "Who Is Hiring?" job applications.
</div>
<div class="column control is-grouped">
<p class="control has-addons">
<label class="button">
<input type="text" class=".input" v-model="query"
placeholder="Search" @keydown.esc="query = ''">
</label>
</p>
<p class="control has-addons">
<label class="button">
<input type="checkbox" value="saved" v-model="filters">
Saved
</label>
<label class="button">
<input type="checkbox" value="applied" v-model="filters">
Applied
</label>
</p>
<p class="control has-addons">
<label class="button is-primary"
v-bind:class="{ 'is-outlined': !showAll }"
@click="toggleAllCards">
Toggle Cards
</label>
<label class="button is-primary"
v-bind:class="{ 'is-outlined': !showAllNotes }"
@click="toggleAllNotes">
Toggle Notes
</label>
<label class="button is-danger" @click="clearAndGetHnApi">
Reset
</label>
</p>
</div>
</div>
</div>
</div>
<div class="container">
<job-post v-for="job in jobPosts"
:by="job.by"
:id="job.id"
:time="job.time"
:text="job.text"
></job-post>
</div>
</div>
<script src="dist/build.js"></script>
</body>
</html>