-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage3.html
533 lines (473 loc) · 23.3 KB
/
page3.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Kitchen sink < PDX Finder</title>
<meta name="description" content="PDX Finder" /><!-- Describe what this page is about -->
<meta name="keywords" content="Framework, Life Sciences" /><!-- A few keywords that relate to the content of THIS PAGE (not the whole project) -->
<meta name="author" content="PDX Finder" />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="width" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="https://ebiwd.github.io/pdx-visual-framework/images/favicons/apple-touch-icon.png?v=1">
<link rel="icon" type="image/png" sizes="32x32" href="https://ebiwd.github.io/pdx-visual-framework/images/favicons/favicon-32x32.png?v=1">
<link rel="icon" type="image/png" sizes="16x16" href="https://ebiwd.github.io/pdx-visual-framework/images/favicons/favicon-16x16.png?v=1">
<link rel="manifest" href="https://ebiwd.github.io/pdx-visual-framework/images/favicons/manifest.json?v=1">
<link rel="mask-icon" href="https://ebiwd.github.io/pdx-visual-framework/images/favicons/safari-pinned-tab.svg?v=1" color="#0032a0">
<link rel="shortcut icon" href="https://ebiwd.github.io/pdx-visual-framework/images/favicons/favicon.ico?v=1">
<meta name="apple-mobile-web-app-title" content="PDX Finder">
<meta name="application-name" content="PDX Finder">
<meta name="msapplication-config" content="https://ebiwd.github.io/pdx-visual-framework/images/favicons/browserconfig.xml?v=1">
<meta name="theme-color" content="#0032a0">
<!-- Add information on the life cycle of this page -->
<meta name="ebi:owner" content="PDX" /> <!-- Who should be contacted about changes -->
<meta name="ebi:review-cycle" content="60" /> <!-- In days, how often should the content be reviewed -->
<meta name="ebi:last-review" content="2017-11-14" /> <!-- The last time the content was reviewed -->
<meta name="ebi:expiry" content="2018-01-20" /> <!-- When this content is no longer relevant -->
<!-- If you link to any other sites frequently, consider optimising performance with a DNS prefetch -->
<!-- <link rel="dns-prefetch" href="//www.ebi.ac.uk" /> -->
<!-- CSS: implied media=all -->
<!-- CSS concatenated and minified via ant build script-->
<!-- <link rel="stylesheet" href="https://dev.ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.3/css/ebi-global.css" type="text/css" media="all" /> -->
<link rel="stylesheet" href="https://dev.ebi.emblstatic.net/web_guidelines/EBI-Icon-fonts/v1.2/fonts.css" type="text/css" media="all" />
<!-- Use this CSS file for any custom styling -->
<link rel="stylesheet" href="css/app.css" type="text/css" media="all" />
<!-- Import Choice Library stylesheet-->
<link rel="stylesheet" href="https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/libraries/Choices/assets/styles/css/choices.min.css">
<!-- If you have a custom header image or colour -->
<!--
<meta name="ebi:masthead-color" content="#000" />
<meta name="ebi:masthead-image" content="//www.ebi.ac.uk/web_guidelines/EBI-Framework/images/backgrounds/embl-ebi-background.jpg" />
-->
<!-- you can replace this with theme-[projectname].css. See http://www.ebi.ac.uk/web/style/colour for details of how to do this -->
<!-- also inform ES so we can host your colour palette file -->
<!-- <link rel="stylesheet" href="https://dev.ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.3/css/theme-embl-petrol.css" type="text/css" media="all" /> -->
<!-- end CSS-->
</head>
<body class="level2"><!-- add any of your classes or IDs -->
<div class="expand-menu show-for-small-only">
<div class="columns small-2 full-height close-wrapper text-center padding-vertical-15">
<a><i class="icon icon-functional" data-icon="x" data-responsive-toggle="expand-menu"></i></a>
</div>
<div class="columns small-10 background-color-primary full-height">
<ul class="vertical menu pdx-mobile-menu" data-responsive-menu="drilldown small-accordion">
<li>
<a href="#">Pages</a>
<ul class="menu">
<li><a href="page1.html">Page 1</a></li>
<li><a href="page2.html">Page 2</a></li>
<li class="active"><a href="page3.html">Page 3</a></li>
</ul>
</li>
<li class="active"><a href="#">Models</a></li>
<li><a href="#">PDX Standard</a></li>
<li><a href="#">Contacts</a></li>
<li><a href="#">Join us</a></li>
</ul>
</div>
</div>
<div content="content-wrapper">
<div id="skip-to">
<a href="#content">Skip to main content</a>
</div>
<div id="content">
<div data-sticky-container>
<header id="masthead" class="masthead" data-sticky data-options="marginTop: 0">
<div class="masthead-inner row">
<div class="columns medium-2 small-4 log-column" id="local-title">
<h1><a href="index.html" title="Back to [service-name] homepage"><img src="images/logo.png" class="padding-15"/></a></h1>
</div>
<!-- Desktop Menu-->
<div class="columns medium-10 menu-column padding-vertical-30 hide-for-small-only" id="local-nav">
<nav>
<ul id="local-nav" class="dropdown menu main-menu float-right" data-dropdown-menu data-description="navigational">
<li>
<a href="#">Pages</a>
<ul class="menu">
<li><a href="page1.html">Page 1</a></li>
<li><a href="page2.html">Page 2</a></li>
<li class="active"><a href="page3.html">Page 3</a></li>
</ul>
</li>
<li class="active"><a href="#">Models</a></li>
<li><a href="#">PDX Standard</a></li>
<li><a href="#">Contacts</a></li>
<li><a href="#">Join us</a></li>
</ul>
</nav>
</div>
<!-- Mobile Menu -->
<div class="columns small-4 show-for-small-only padding-vertical-15 text-right">
<a class="menu-toggle"><i class="icon icon-functional" data-icon="M" data-toggle data-responsive-toggle="expand-menu"></i></a>
</div>
</div>
</header>
</div>
<!-- Suggested layout containers -->
<section id="main-content-area" role="main">
<!-- Your menu structure should make a breadcrumb redundant, but if a breadcrump is needed uncomment the below -->
<nav aria-label="You are here:" role="navigation">
<ul class="breadcrumbs row">
<li><a href="#">Home</a></li>
<li>
<span class="show-for-sr">Current: </span> Blank boilerplate
</li>
</ul>
</nav>
<!-- Header Image -->
<div class="header-image-wrapper text-center">
<div class="row">
<div class="header-image-text">
Pdx finder is an open access centralised resource of patient derieved Xenograpy models for oncology research.
</div>
</div>
</div>
<!-- Search FORM Section -->
<section>
<form class="main-search icon-2-container">
<div class="row">
<fieldset>
<div class="margin-bottom-none small-collapse">
<!-- Large screen -->
<div class="columns small-3 medium-2 min-height-80 icon-wrapper">
<h2 class="uppercase">Find</h2>
</div>
<div class="columns small-2 margin-bottom-small padding-top-large hide-for-small-only">
Enter your search here
</div>
<!-- Small screen-->
<div class="columns small-7 margin-bottom-none search-text-wrapper show-for-small-only">
Enter your search here
</div>
<div class="columns small-7 margin-bottom-none search-text-wrapper">
<select class="form-control" id="query" name="query" type="text" tabindex="2" placeholder="E.G. Breast cancer" multiple></select>
<span class="form-error margin-top-small">
You need to enter a search query.
</span>
</div>
<div class="columns small-1 margin-bottom-none ">
<input id="search_submit" class="button icon icon-functional margin-bottom-none" tabindex="3" type="submit" name="submit1" value="1" style="line-height:.9">
</div>
<!-- <input id="allebi" type="hidden" name="db" value="allebi" checked="checked" /> -->
<input type="hidden" name="requestFrom" value="ebi_index">
</div>
</fieldset>
<fieldset>
<div class="medium-push-4 small-push-3 small-8 small padding-top-medium">
<a href="" id="main-search-advanced-link" class="font-color-dark-gray font-style-underline ">Advanced Search</a>
</div>
</fieldset>
</div>
</form>
</section>
<!-- Explore Section -->
<section class="row">
<h2 class="uppercase margin-top-40 columns small-12 title-icon-explore"><span>Explore</span></h2>
<div class="columns medium-3 small-12">
<h5 class="block-title uppercase margin-vertical-30">Cancer Type:</h5>
<div id="cancer-types">Loading Cancer Types..</div>
<script id="template-cancer-types" type="text/x-handlebars-template">
{{#each this.cancer_by_type }}
<div class="counter-link-item">
<span class="item-number">{{ number }}</span>
<a href="#" class="item-link">{{ name }}</a>
</div>
{{/each}}
</script>
<div class="font-style-underline margin-top-30">
<a target="_blank" class="view-all-cancer-types"> View All Cancer Types</a>
</div>
</div>
<div class="columns medium-6 small-12 text-center">
<h5 class="block-title uppercase margin-vertical-30">Clinically Relevant Variant:</h5>
<img src="images/chart.png" />
</div>
<div class="columns medium-3 small-12">
<h5 class="block-title uppercase margin-vertical-30">Providers:</h5>
<div id="providers">Loading Providers..</div>
<script id="template-providers" type="text/x-handlebars-template">
{{#each this.providers }}
<div class="counter-link-item">
<span class="item-number">{{ number }}</span>
<a href="https://www.google.co.uk/search?q={{ name }}" class="item-link" target="_blank">{{ name }}</a>
<i class="icon icon-generic" data-icon="i" data-tooltip aria-haspopup="true" class="has-tip" data-disable-hover="false" tabindex="1" title="{{ description }}"></i>
</div>
{{/each}}
</script>
<div class="font-style-underline margin-top-30">
<a class="view-all-providers"> View All Providers</a>
</div>
</div>
</section>
<!-- News and Events section w-->
<section class="background-color-dark-white margin-top-30">
<div class="row">
<h2 class="uppercase margin-top-40 columns small-12 title-icon-updates"><span>News and Events</span></h2>
<div class="columns medium-4 margin-top-large">
<h4 class="uppercase">Latest News</h4>
<div class="list-style-news">
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
a new nature study on ovarian cancer
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">10.10.2017</div>
<h5 class="list-item-title">
Study header to go in here like this one
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
Study header to go in here like this one like this one
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
a new nature study on ovarian cancer
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
a new nature study on ovarian cancer
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
</div>
<ul class="pagination pdx-pagination margin-top-large" role="navigation" aria-label="Pagination">
<li class="current"><span class="show-for-sr">You're on page</span> 1</li>
<li><a href="#" aria-label="Page 2">2</a></li>
<li><a href="#" aria-label="Page 3">3</a></li>
<li><a href="#" aria-label="Page 4">4</a></li>
<li><a href="#" aria-label="Page 5">5</a></li>
<li><a href="#" aria-label="Page 6">6</a></li>
<li class="pagination-next"><a href="#" aria-label="Next page">Next <span class="show-for-sr">page</span></a></li>
</ul>
</div>
<!-- Events Column -->
<div class="columns medium-4 margin-top-large">
<h4 class="uppercase">Events</h4>
<div class="list-style-news">
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
a new nature study on ovarian cancer
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">10.10.2017</div>
<h5 class="list-item-title">
Study header to go in here like this one
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
Study header to go in here like this one like this one
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
a new nature study on ovarian cancer
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
<div class="list-item">
<div class="list-item-date">12.10.2017</div>
<h5 class="list-item-title">
a new nature study on ovarian cancer
</h5>
<a class="list-item-link"><i class="icon icon-functional" data-icon=">"></i></a>
</div>
</div>
<ul class="pagination pdx-pagination margin-top-large" role="navigation" aria-label="Pagination">
<li class="current"><span class="show-for-sr">You're on page</span> 1</li>
<li><a href="#" aria-label="Page 2">2</a></li>
<li><a href="#" aria-label="Page 3">3</a></li>
<li><a href="#" aria-label="Page 4">4</a></li>
<li><a href="#" aria-label="Page 5">5</a></li>
<li><a href="#" aria-label="Page 6">6</a></li>
<li class="pagination-next"><a href="#" aria-label="Next page">Next <span class="show-for-sr">page</span></a></li>
</ul>
</div>
<!-- Social Media Column -->
<div class="columns medium-4 margin-top-large">
<h4 class="uppercase">Social Media</h4>
<div class="feed-grid background-color-twitter font-color-white min-height-300">
<div class="feed-grid-content">
It's #WUD17 this week, if you're helping to make the web more inclusive, we're compiling pledges and projects here : https://www.wearesigma.com
</div>
<div class="feed-grid-footer">
<i class="icon icon-functional" data-icon="{"></i> 4
<i class="icon icon-generic margin-left-medium" data-icon="o"></i> 1
<i class="icon icon-socialmedia float-right" data-icon="T"></i>
</div>
</div>
<div class="feed-grid background-image font-color-white min-height-400 margin-top-small">
<img src="https://megaphonemarketing.com.au/wp-content/uploads/2017/06/eventteam-june17-400x400.jpg" class="feed-grid-image" />
<div class="feed-grid-content">
It's #WUD17 this week, if you're helping to make the web more inclusive, we're compiling pledges and projects here : https://www.wearesigma.com
</div>
</div>
</div>
</div>
</section>
</section>
<!-- Optional local footer (insert citation / project-specific copyright / etc here -->
<!--
<footer id="local-footer" class="local-footer" role="local-footer">
<div class="row">
<span class="reference">How to reference this page: ...</span>
</div>
</footer>
-->
<!-- End optional local footer -->
</div>
<!-- End suggested layout containers / #content -->
<footer>
<div id="global-footer" class="global-footer row">
<div class="columns medium-4">
<h3 class="highlight green">Quick links</h3>
<ul class="no-bullet">
<li>Unorderred list</li>
<li>Unorderred list</li>
<li>Unorderred list</li>
</ul>
</div>
<div class="columns medium-4">
<h3 class="highlight green">Contacts</h3>
<ul class="no-bullet">
<li><a href="#">Link</a></li>
<li>Unorderred list</li>
<li>Unorderred list</li>
</ul>
</div>
<div class="columns medium-4">
<h3 class="highlight"> </h3>
A joint procet
</div>
</div>
</footer>
</div>
<!-- JavaScript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://wwwdev.ebi.ac.uk/web_guidelines/EBI-Framework/v1.3/libraries/foundation-6/js/foundation.js"></script>
<script src="https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.2/libraries/Choices/assets/scripts/dist/choices.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery.highlightRegex/0.1.2/highlightRegex.min.js"></script>
<!-- <script src="js/choices.develop.js"></script> -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.8/handlebars.min.js"></script>
<script src="./js/handlebars.js"></script>
<script src="./js/script.js"></script>
<script>
getCancerTypesProviders();
</script>
<script>
var searchStates = [""]; // disable as we now use json
function constructSearchOptions(data) {
var newOptions = [];
for (var i = 0; i < data.length; i++) {
newOptions.push({'value':data[i],'label':data[i],selected: false,disabled: false})
}
return newOptions;
}
// Test choices integration
const mainSearch = new Choices('#query', {
// choices: constructSearchOptions(searchStates),
removeItemButton: true,
// placeholder: false,
// placeholderValue: 'This is a placeholder',
maxItemCount: 1,
searchFloor: 0,
searchResultLimit: 10,
noResultsText: 'No results found',
fuseOptions: {
threshold: 0.1,
// includeScore: true,
// includeMatches: true, //doesn't do anything as it's not integrated :(
tokenize: true,
distance: 1000
}
});
mainSearch.ajax(function(callback) {
// fetch('http://dev.pdxfinder.org/data/autosuggests')
fetch('//ebiwd.github.io/pdx-visual-framework/data/autosuggests.json')
.then(function(response) {
response.json().then(function(data) {
callback(data, 'value', 'label');
});
})
.catch(function(error) {
console.log(error);
});
});
function conditionallyShowDropdown(str) {
if (str.length < 1) {
mainSearch.hideDropdown();
} else {
mainSearch.showDropdown();
}
}
function regexEscape(str) {
return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
}
mainSearch.passedElement.addEventListener('showDropdown', function(event) {
if (mainSearch.currentState.items.length) {
if (mainSearch.currentState.items[mainSearch.currentState.items.length-1].active) {
// only show dropdown if something hasn't been selected
mainSearch.hideDropdown();
// hide placeholder text
$('.main-search .choices__input').attr("placeholder"," ");
// $('.choices__input').hide();
}
} else {
// show placeholder text
$('.main-search .choices__input').attr("placeholder","E.G. Breast cancer");
// show dropdown if nothing selected and a long enough string entered
conditionallyShowDropdown(mainSearch.currentValue);
}
}, false);
mainSearch.passedElement.addEventListener('search', function(event) {
var currentSearch = mainSearch.currentValue;
// highlight match, docs:
// https://github.com/jbr/jQuery.highlightRegex
$('.main-search .choices__list--dropdown').highlightRegex(); //clear
$('.main-search .choices__list--dropdown').highlightRegex(new RegExp(regexEscape(currentSearch),'ig'), {
tagType: 'span',
className: 'search-highlight'
});
conditionallyShowDropdown(currentSearch);
}, false);
mainSearch.passedElement.addEventListener('choice', function(event) {
// Hide form after selecting an option
mainSearch.hideDropdown();
// hide placeholder text
$('.main-search .choices__input').attr("placeholder"," ");
// drop the parenthetical
$('.main-search .choices__list .choices__item').text('test')
// To autosubmit on select
// $('form.main-search').submit();
}, false);
mainSearch.passedElement.addEventListener('removeItem', function(event) {
// show placeholder text
$('.main-search .choices__input').attr("placeholder","E.G. Breast cancer");
}, false);
</script>
<!-- <script src="https://wwwdev.ebi.ac.uk/web_guidelines/EBI-Framework/v1.3/js/foundationExtendEBI.js"></script> -->
<!-- <script type="text/JavaScript">$(document).foundationExtendEBI();</script> -->
<!-- Google Analytics details... -->
<!-- Change UA-XXXXX-X to be your site's ID -->
<!-- <script type="text/javascript">!function(e,a,n,t,i,o,c){e.GoogleAnalyticsObject=i,e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date,o=a.createElement(n),c=a.getElementsByTagName(n)[0],o.async=1,o.src="//www.google-analytics.com/analytics.js",c.parentNode.insertBefore(o,c)}(window,document,"script",0,"ga"),ga("create","UA-629242-1",{cookieDomain:"auto"}),ga("require","linkid","linkid.js"),ga("set","anonymizeIp",!0),ga("send","pageview");</script> -->
</body>
</html>