Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ <h2 class="meetup-date">08 Jun</h2>
</p>
<div class="controls">
<a href="http://meetu.ps/e/GR0sx/rHldY/f" class="btn-primary" target="_blank">Inscreva-se</a>
<a href="https://github.com/devfsa/meetups/issues/14" class="btn-secondary" target="_blank">Submeter palestra</a>
<a href="#" class="btn-secondary" id="submission" target="_blank">Submeter palestra</a>
</div>
</div>
<div>
<div class="space-between">
<div class="sub-title">Palestras mais votadas</div>
<a href="https://github.com/devfsa/meetups/issues/14" class="sub-title-link" target="_blank">Ver todas</a>
<a href="#" id="seeall" class="sub-title-link" target="_blank">Ver todas</a>
</div>
<div class="keynote-container">
<div class="grid-2" id="keynotes"></div>
Expand Down
11 changes: 10 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const MEETUP_ISSUE_ID = 14;
fetch('https://api.github.com/repos/devfsa/vagas/issues')
.then(response => {
response.json()
Expand Down Expand Up @@ -39,7 +40,8 @@ fetch('https://api.github.com/repos/devfsa/vagas/issues')
console.log('Fetch Error:', err);
});

fetch('https://api.github.com/repos/devfsa/meetups/issues/14/comments', { headers: { "Accept": "text" } })

fetch(`https://api.github.com/repos/devfsa/meetups/issues/${MEETUP_ISSUE_ID}/comments`, { headers: { "Accept": "text" } })
.then(response => {
response.json()
.then(data => {
Expand Down Expand Up @@ -98,3 +100,10 @@ fetch('https://api.github.com/repos/devfsa/meetups/issues/14/comments', { header
.catch(err => {
console.log('Fetch Error:', err);
});

window.onload = (ev) => {
let submissionDOM = document.getElementById('submission');
let seeallDom = document.getElementById('seeall');
submissionDOM.href=`https://github.com/devfsa/meetups/issues/${MEETUP_ISSUE_ID}`;
seeallDom.href=`https://github.com/devfsa/meetups/issues/${MEETUP_ISSUE_ID}`;
}