-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds a new listing for relevant research, fixes #14
- Loading branch information
1 parent
3fbc1d9
commit c01f0e8
Showing
10 changed files
with
221 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Bexarotene" | ||
date: 2021-08-14T21:31:49+01:00 | ||
lastmod: | ||
author: Bruno Amaral | ||
|
||
description: | ||
categories: [] | ||
tags: [] | ||
|
||
draft: false | ||
enableDisqus : true | ||
enableMathJax: false | ||
disableToC: false | ||
disableAutoCollapse: true | ||
--- | ||
|
||
<h3 id="Bexarotene">Bexarotene</h3> | ||
<ol class="articles Bexarotene"></ol> | ||
<h4>Ensaios Clínicos</h4> | ||
<ol class="trials Bexarotene"></ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Metformin" | ||
date: 2021-08-14T21:32:04+01:00 | ||
lastmod: | ||
author: Bruno Amaral | ||
|
||
description: | ||
categories: [] | ||
tags: [] | ||
|
||
draft: false | ||
enableDisqus : true | ||
enableMathJax: false | ||
disableToC: false | ||
disableAutoCollapse: true | ||
--- | ||
|
||
<h3 id="Metformin">Metformin</h3> | ||
<ol class="articles Metformin"></ol> | ||
<h4>Ensaios Clínicos</h4> | ||
<ol class="trials Metformin"></ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Simvastatin" | ||
date: 2021-08-14T21:32:16+01:00 | ||
lastmod: | ||
author: Bruno Amaral | ||
|
||
description: | ||
categories: [] | ||
tags: [] | ||
|
||
draft: false | ||
enableDisqus : true | ||
enableMathJax: false | ||
disableToC: false | ||
disableAutoCollapse: true | ||
--- | ||
|
||
<h3 id="Simvastatin">Simvastatin</h3> | ||
<ol class="articles Simvastatin"></ol> | ||
<h4>Ensaios Clínicos</h4> | ||
<ol class="trials Simvastatin"></ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Tcelna" | ||
date: 2021-08-14T21:32:11+01:00 | ||
lastmod: | ||
author: Bruno Amaral | ||
|
||
description: | ||
categories: [] | ||
tags: [] | ||
|
||
draft: false | ||
enableDisqus : true | ||
enableMathJax: false | ||
disableToC: false | ||
disableAutoCollapse: true | ||
--- | ||
|
||
<h3 id="Tcelna">Tcelna</h3> | ||
<ol class="articles Tcelna"></ol> | ||
<h4>Ensaios Clínicos</h4> | ||
<ol class="trials Tcelna"></ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Observatorio" | ||
date: 2021-08-12T15:33:35+01:00 | ||
lastmod: | ||
author: Bruno Amaral | ||
|
||
description: | ||
categories: [] | ||
tags: [] | ||
|
||
draft: false | ||
enableDisqus : true | ||
enableMathJax: false | ||
disableToC: false | ||
disableAutoCollapse: true | ||
--- | ||
|
||
Esta página tem uma secção para cada uma das terapias listadas como relevantes pela [MS Society](https://www.mssociety.org.uk/research/explore-our-research/emerging-research-and-treatments/explore-treatments-in-trials). | ||
|
||
Em cada secção, são listados os ensaios clínicos e artigos publicados em que o fármaco consta do título. | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Ocrelizumab" | ||
date: 2021-08-14T20:47:32+01:00 | ||
lastmod: | ||
author: Bruno Amaral | ||
|
||
description: | ||
categories: [] | ||
tags: [] | ||
|
||
draft: false | ||
enableDisqus : true | ||
enableMathJax: false | ||
disableToC: false | ||
disableAutoCollapse: true | ||
--- | ||
|
||
<h3 id="Ocrelizumab">Ocrelizumab</h3> | ||
<ol class="articles Ocrelizumab"></ol> | ||
<h4>Ensaios Clínicos</h4> | ||
<ol class="trials Ocrelizumab"></ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
document.addEventListener('DOMContentLoaded', (event) => { | ||
const queries = document.querySelectorAll('h3') | ||
|
||
function searchArticles(term) { | ||
// let list = document.querySelector('ol.articles.'+ term ); | ||
let articleRequest = new Request('https://api.brunoamaral.net/articles/keyword/' + term); | ||
|
||
fetch(articleRequest).then(response => response.json()).then(data => { console.log(data) }) | ||
|
||
fetch(articleRequest) | ||
.then(response => response.json()) | ||
.then(data => { | ||
let list = document.querySelector('ol.articles.' + term); | ||
for (const item of data) { | ||
let listItem = document.createElement('li'); | ||
listItem.appendChild( | ||
document.createElement('strong') | ||
).textContent = item.title; | ||
|
||
let a = listItem.appendChild(document.createElement('a')); | ||
a.textContent = `${item.source}`; | ||
a.href = `${item.link}`; | ||
list.appendChild(listItem); | ||
} | ||
}) | ||
.catch(console.error); | ||
} | ||
|
||
function searchTrials(term) { | ||
// let list = document.querySelector('ol.trials.'+ term ); | ||
let trialsRequest = new Request('https://api.brunoamaral.net/trials/keyword/' + term); | ||
fetch(trialsRequest).then(response => response.json()).then(data => { console.log(data) }) | ||
|
||
fetch(trialsRequest) | ||
.then(response => response.json()) | ||
.then(data => { | ||
let list = document.querySelector('ol.trials.' + term); | ||
for (const item of data) { | ||
let listItem = document.createElement('li'); | ||
listItem.appendChild( | ||
document.createElement('strong') | ||
).textContent = item.title; | ||
|
||
let a = listItem.appendChild(document.createElement('a')); | ||
a.textContent = `${item.source}`; | ||
a.href = `${item.link}`; | ||
list.appendChild(listItem); | ||
} | ||
}) | ||
.catch(console.error); | ||
} | ||
|
||
|
||
|
||
for (let i = 0; i < queries.length; i++) { | ||
// console.log(queries[i].id) | ||
searchArticles(queries[i].id) | ||
searchTrials(queries[i].id) | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ define "main" }} {{ $Pages := .Pages }} {{ $home := .IsHome }} {{ if .IsHome }} {{ $Pages = where site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ end }} | ||
|
||
<article class="archive"> | ||
{{ if not .IsHome }} | ||
<header style="text-align: center;"> | ||
<h1> | ||
{{ .Title }} | ||
</h1> | ||
</header> | ||
{{ end }} | ||
<div class="archive-list"> | ||
|
||
{{.Content}} {{ range $Pages.GroupByDate "2006" }} | ||
<h2 class="archive-year">{{ .Key }}</h2> | ||
<ul> | ||
{{ range .Pages.GroupByDate "January"}} | ||
<!-- .Pages in $Pages --> | ||
{{ range .Pages }} | ||
<li class="archive-item"> | ||
{{ if .Date }} | ||
<time datetime="{{ .Date.Format " 2006-01-02T15:04:05Z07:00 " }}">{{ .Date.Format "2006-01-02" }}</time> | ||
<a href="{{ .Permalink }}">{{ .Title }}</a> {{ end }} | ||
</li> | ||
{{ end }} {{ end }} | ||
</ul> | ||
{{ end }} | ||
</div> | ||
</article> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters