This repository has been archived by the owner on Aug 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
use-data.html
215 lines (215 loc) · 10.4 KB
/
use-data.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<!-- This site was created in Webflow. http://www.webflow.com -->
<!-- Last Published: Wed Nov 02 2016 21:48:53 GMT+0000 (UTC) -->
<html data-wf-page="58034e6a5ed475d20faea2a8" data-wf-site="561f5b37cddcd5dc0151e6c7">
<head>
<meta charset="utf-8">
<title>Use Data</title>
<meta content="OpenActive represents a group of organisations who share a vision for tackling the global problem of physical inactivity." name="description">
<meta content="Use Data" property="og:title">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="Webflow" name="generator">
<link href="css/normalize.css" rel="stylesheet" type="text/css">
<link href="css/webflow.css" rel="stylesheet" type="text/css">
<link href="css/openactive-demonstrator.webflow.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js"></script>
<script type="text/javascript">
WebFont.load({
google: {
families: ["Open Sans:300,300italic,400,400italic,600,600italic,700,700italic,800,800italic","Roboto:300,regular,500"]
}
});
</script>
<script src="js/modernizr.js" type="text/javascript"></script>
<link href="images/play-30619_1280.png" rel="shortcut icon" type="image/x-icon">
<link href="images/play-30619_1280.png" rel="apple-touch-icon">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-66225810-1'], ['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.min.js" type="text/javascript"></script>
</head>
<body>
<div class="navigation-bar w-nav" data-animation="default" data-collapse="medium" data-contain="1" data-duration="400">
<div class="w-embed w-hidden-tiny">
<a href="https://github.com/openactive/activation">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/52760788cde945287fbb584134c4cbc2bc36f904/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png">
</a>
</div>
<div class="w-container"><a class="brand-link w-nav-brand" href="index.html"><h1 class="brand-text">openactive</h1></a>
<nav class="navigation-menu w-nav-menu" role="navigation"><a class="navigation-link w-nav-link" href="index.html">Home</a><a class="navigation-link w-nav-link" href="participate.html">Advocacy</a><a class="navigation-link w-nav-link" href="technology.html">Open My Data</a><a class="navigation-link w-nav-link" href="use-data.html">Use Data</a><a class="navigation-link w-nav-link" href="w3c-community-group.html">W3C</a><a class="navigation-link w-nav-link" href="pioneers.html">Pioneers</a><a class="navigation-link w-nav-link" href="join.html">Join</a>
</nav>
<div class="hamburger-button w-nav-button">
<div class="w-icon-nav-menu"></div>
</div>
</div>
</div>
<div class="hero-image-base use-data"></div>
<div class="pioneers-heading section">
<div class="w-container">
<div class="section-title-group">
<h2 class="centered section-heading">Use Data.</h2>
<div class="center section-subheading">THE PIONEERS ARE HARD AT WORK OPENING THEIR DATA. WATCH THIS SPACE.</div>
</div>
</div>
</div>
<div class="w-embed w-script">
<script>
/* MAKE SOME MAGIC */
</script>
<style>
.pioneer-row:nth-child(even) {background: #edeff2}
.pioneer-row:nth-child(odd) {background: #FFFFFF}
.pioneer-logo {
max-width: 230px;
max-height: 80px;
}
</style>
</div>
<div class="pioneers-section-grey" id="pioneers-section-list">
<div class="pioneer-row w-row" id="use-data-template">
<div class="w-col w-col-4">
<div class="pioneer-logo-container use-data w-container">
<div class="logo-centered">
<a class="w-inline-block" data-field="link" href="https://goodgym-oa.github.io/"><img class="pioneer-logo restricted" data-field="image" src="images/loading_icon.gif">
</a>
</div>
</div>
</div>
<div class="w-col w-col-8">
<h4 class="w-hidden-small w-hidden-tiny"><a data-field="title link">Loading...</a></h4>
<p data-field="description"></p>
</div>
</div>
</div>
<div class="hidden pioneers-section-grey">
<div class="pioneer-row w-row">
<div class="w-col w-col-2">
<div class="pioneer-logo-container w-container"><img class="pioneer-logo" src="images/TableTennis.png" width="190">
</div>
</div>
<div class="w-col w-col-10">
<h4 class="w-hidden-small w-hidden-tiny"><span><a target="_blank" href="http://www.goodgym.org/">Ping! Table Locations</a></span></h4>
<p>Session data from the www.pingengland.co.uk site; published using Openactive RPDE v0.2.3.</p>
</div>
</div>
</div>
<div class="cta-section">
<div class="w-container">
<h2 class="cta"><a class="join-cta" href="join.html">Join In Today</a></h2>
</div>
</div>
<div class="footer">
<div class="w-container">
<div class="w-row">
<div class="spc w-col w-col-6">
<h5>about openactive</h5>
<p>We are a group of organisations who believe that open data will help to get more people more active, supported by the <a target="_blank" href="http://opendata.institute">Open Data Institute</a>.</p>
</div>
<div class="spc w-col w-col-6">
<h5>CONTACT</h5>
<p>We'd love to hear from you. Whatever's on your mind, send us a note on <a href="mailto:hello@openactive.io">hello@openactive.io</a>
</p>
<p>Want to be kept up to date on all that's happening?</p>
<div class="email-form-wrapper w-form">
<form class="email-form" data-name="Email Form" id="email-form" name="email-form">
<div class="w-row">
<div class="w-col w-col-9">
<input class="w-input" data-name="Email" id="email" maxlength="256" name="email" placeholder="Enter your email address" required="required" type="email">
</div>
<div class="button-column w-col w-col-3">
<input class="w-button" data-wait="Please wait..." type="submit" value="Submit">
</div>
</div>
</form>
<div class="w-form-done">
<p>Thank you! Your submission has been received!</p>
</div>
<div class="w-form-fail">
<p>Oops! Something went wrong while submitting the form</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div alt="Creative Commons License" class="center footer">
<div class="w-container">
<p>Supported by the Open Data Institute</p><img class="odi-logo" src="images/odi_logo_white.png" width="149">
</div>
<div class="w-container">
<div class="footer-text">
<a class="w-inline-block" href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank"><img src="images/88x31.png">
</a>
<p class="icon-attribution">With the exception of icons and brand images, this work is licensed under a <a class="footer-link-2" target="_blank" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>. All source code is licensed under
<a class="footer-link-2" target="_blank" href="http://www.gnu.org/licenses/gpl-3.0.en.html">GNU GPL v3</a>.
<br>Icons used here made by Freepik from www.flaticon.com is licensed under CC BY 3.0</p>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js" type="text/javascript"></script>
<script src="js/webflow.js" type="text/javascript"></script>
<!-- [if lte IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script><![endif] -->
<script>
function loadJSON(url, cb) {
$.support.cors = true;
$.getJSON(url, function(data) {
cb(data);
}).fail(function( jqxhr, textStatus, error ) {
var err = textStatus + ", " + error;
console.log( "Error accessing GitHub: " + err );
});
}
function addRow(metadata) {
console.log("Metadata for!: " + metadata["dataset-site-url"] );
var newRow = $( "#use-data-template" ).clone();
newRow.removeAttr("id");
newRow.find( "[data-field='image']" ).attr("src", metadata["dataset-site-url"] + "images/logo.png");
newRow.find( "[data-field~='link']" ).attr("href", metadata["dataset-site-url"]);
newRow.find( "[data-field~='title']" ).text(metadata["title"]);
newRow.find( "[data-field='description']" ).text(metadata["description"]);
//Add row to list
newRow.appendTo( "#pioneers-section-list" );
newRow.show();
}
/*
* On Page Load
*/
$(function() {
$( "#use-data-template" ).each(function() {
$( this ).hide();
$.getJSON( "/datasets/directory.json", function( body ) {
for(var i = 0; i < body.length; i++) {
var metadata = body[i];
console.log("Metadata for: " + metadata["dataset-site-url"] + " (Publish: " + metadata["publish"] + ")");
if (metadata["publish"]) {
addRow(metadata);
}
}
});
});
$( "#metric-live" ).each(function() {
$.getJSON( "/datasets/directory.json", function( data ) {
$( "#metric-live" ).text(data.length)
});
});
});
$(function() {
$(".marked").each(function() {
var element = $( this );
var id = element.attr('id');
console.log("HI " + id);
$.get( "https://raw.githubusercontent.com/openactive/" + id + "/master/README.md", function( data ) {
var dataSansHeader = data.replace(/[\s\S]*?\(\_SNIP\_\)[\s\S][\s\S]/,"");
element.html( marked(dataSansHeader) );
});
});
});
</script>
</body>
</html>