-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
178 lines (164 loc) · 7.51 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>OpenSci.io</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuesax.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/shorthand.min.css">
<link href="https://unpkg.com/pattern.css" rel="stylesheet">
<style>
.vs-card--header {
border-bottom: 1px solid #eee;
}
.activeMenuResponsive .vs-button {
width: 100%;
}
</style>
</head>
<body style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
<div id="opensci_digest">
<vs-navbar v-model="activeItem" color="white" style="position: fixed; border-bottom: 1px solid #eee">
<div slot="title">
<vs-navbar-title class="nav_logo cursor-pointer">
<img src="logo.svg" style="height: 55px; margin-top: -20px; margin-bottom: -20px;"/>OpenSci.io
</vs-navbar-title>
</div>
<vs-navbar-item index="0">
<vs-button type="line" color="dark">
<a href="https://github.com/OpenSci-io">GitHub</a>
</vs-button>
</vs-navbar-item>
<vs-navbar-item index="1">
<vs-button type="line" color="dark">
<a href="#">About</a>
</vs-button>
</vs-navbar-item>
</vs-navbar>
<br>
<br>
<br>
<vs-row>
<vs-col vs-lg="4" vs-md="4" vs-sm="12">
<div class="w-50pc p-5 flex items-center justify-start">
<div class="pattern-dots-md red px-l5 py-5 max-w-10pc overflow-visible ml-5 md-ml-l5">
<h1 class="black" style="font-size:2em;">CHANGING HOW SCIENTISTS READ SCIENCE</h1>
</div>
</div>
</vs-col>
<vs-col vs-lg="2" vs-md="0" vs-sm="0"></vs-col>
<vs-col vs-lg="6" vs-md="8" vs-sm="12">
<div class="self-center w-70pc p-5 m-10">
<h2>Too many preprints?</h2>
<span>We enable you to see exactly what you're interested in, as soon as it is online!</span>
<br>
<vs-button class="my-5" color="primary" type="gradient" icon="double_arrow" onclick="alert('This project has not yet been launched. Please follow/contact @dipanshunagar on twitter for updates.')">See how it works</vs-button>
</div>
</vs-col>
</vs-row>
<div class="pattern-dots-sm slategray h-5 my-3"></div>
<br>
<vs-row class="justify-around p-2">
<vs-col type="flex" vs-justify="center" vs-align="center" vs-lg="3" vs-md="4" vs-sm="12">
<vs-card>
<div slot="header">
<h3>
OpenSci Digest
</h3>
</div>
<div>
<span>A topic based preprint alert/subscription system that brings you content from multiple hosts in one relevant feed. This project is a work-in-progress.</span>
</div>
<div slot="footer">
<vs-row vs-justify="flex-end">
<a href="https://twitter.com/dipanshunagar">
<vs-button color="#005b7f" icon="help"></vs-button>
</a>
</vs-row>
</div>
</vs-card>
</vs-col>
<vs-col type="flex" vs-justify="center" vs-align="center" vs-lg="3" vs-md="4" vs-sm="12">
<vs-card>
<div slot="header">
<h3>
OpenSci Talk
<!-- <vs-icon icon="forum" class="float-right"></vs-icon> -->
</h3>
</div>
<div>
<span>An auto updating feed where academic twitter talks #OpenScience. Follow <a href="https://twitter.com/OpenSciTalk">@OpenSciTalk</a> and join the global conversation.</span>
</div>
<div slot="footer">
<vs-row vs-justify="flex-end">
<a href="https://twitter.com/OpenSciTalk">
<vs-button color="#005b7f" icon="forum"></vs-button>
</a>
<!-- <vs-button color="rgb(230,230,230)" color-text="rgb(50,50,50)" icon="settings"></vs-button> -->
</vs-row>
</div>
</vs-card>
</vs-col>
<vs-col type="flex" vs-justify="center" vs-align="center" vs-lg="3" vs-md="4" vs-sm="12">
<vs-card>
<div slot="header">
<h3>
OpenSci News
<!-- <vs-icon icon="forum" class="float-right"></vs-icon> -->
</h3>
</div>
<div>
<span>A news feed giving you everything happening in #OpenScience on the web. Follow <a href="https://twitter.com/OpenSci_News">@OpenSci_News</a> and stay up to date.</span>
</div>
<div slot="footer">
<vs-row vs-justify="flex-end">
<a href="https://twitter.com/OpenSci_News">
<vs-button color="#005b7f" icon="add_circle"></vs-button>
</a>
<!-- <vs-button color="rgb(230,230,230)" color-text="rgb(50,50,50)" icon="settings"></vs-button> -->
</vs-row>
</div>
</vs-card>
</vs-col>
</vs-row>
<br>
<br>
<br>
</div>
<!-- development version, includes helpful console warnings -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- production version, optimized for size and speed -->
<!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
<script src="https://unpkg.com/[email protected]"></script>
<script>
var opensci_digest = new Vue({
el: '#opensci_digest',
data: {
message: 'You loaded this page on ' + new Date().toLocaleString(),
seen: true,
papers: [{title: "t1", title_layman: "tl1"}, {title: "t2", title_layman: "tl2"}],
},
methods: {
getPapers: function() {
var that = this
$.ajax({
url: 'http://127.0.0.1:8000/ingestor/',
method: 'GET'
}).then(function (response) {
if(response.error) {
console.err("There was an error " + response.error);
} else {
// console.log(response.posts);
this.papers = response.results
}
}).catch(function (err) {
console.error(err);
});
}
}
})
</script>
</body>
</html>