|
| 1 | ++++ |
| 2 | +Title = "Speakers" |
| 3 | +Type = "speakers" |
| 4 | +Description = "Meet our speakers for DevOpsDays Austin 2026" |
| 5 | ++++ |
| 6 | + |
| 7 | +<div id="speakers" class="row"></div> |
| 8 | +<noscript> |
| 9 | +<div class="pretalx-widget"> |
| 10 | + <div class="pretalx-widget-info-message"> |
| 11 | + JavaScript is disabled in your browser. To access our speaker list without JavaScript, |
| 12 | + please <a target="_blank" href="https://talks.devopsdays.org/devopsdays-austin-2026/speaker/">click here</a>. |
| 13 | + </div> |
| 14 | + </div> |
| 15 | +</noscript> |
| 16 | + |
| 17 | +<script> |
| 18 | + const ul = document.getElementById('speakers'); |
| 19 | + const list = document.createDocumentFragment(); |
| 20 | + const url = 'https://talks.devopsdays.org/api/events/devopsdays-austin-2026/speakers/?limit=50'; |
| 21 | + |
| 22 | + fetch(url) |
| 23 | + .then((response) => { |
| 24 | + return response.json(); |
| 25 | + }) |
| 26 | + .then((data) => { |
| 27 | + let speakers = data.results; |
| 28 | + |
| 29 | + speakers.map(function(speaker) { |
| 30 | + let li = document.createElement('div'); |
| 31 | + li.className = `col-lg-3 col-md-6 p-3`; |
| 32 | + let name = document.createElement('h3'); |
| 33 | + let pic = document.createElement('img'); |
| 34 | + let bio = document.createElement('details'); |
| 35 | + bio.className = `p-1`; |
| 36 | + let talk = document.createElement('a'); |
| 37 | + |
| 38 | + name.innerHTML = `${speaker.name}`; |
| 39 | + pic.src = speaker.avatar_url.length != 0 ? `${speaker.avatar_url}`: '/img/speaker-default.jpg'; |
| 40 | + pic.className = `speakers-page`; |
| 41 | + bio.innerHTML = `<summary><b>About ${speaker.name}</b></summary><p>${speaker.biography ? `${speaker.biography}`: `Ipsum`}</p>`; |
| 42 | + talk.setAttribute('href', speaker.submissions[0] ? `https://talks.devopsdays.org/devopsdays-austin-2026/talk/${speaker.submissions[0]}` : ``); |
| 43 | + talk.setAttribute('target', '_blank'); |
| 44 | + talk.className = `btn btn-primary`; |
| 45 | + talk.innerHTML = `Link to talk`; |
| 46 | + |
| 47 | + li.appendChild(name); |
| 48 | + li.appendChild(pic); |
| 49 | + li.appendChild(bio); |
| 50 | + li.appendChild(talk); |
| 51 | + list.appendChild(li); |
| 52 | + }); |
| 53 | + }) |
| 54 | + .catch(function(error) { |
| 55 | + console.log(error); |
| 56 | + }) |
| 57 | + .finally(() => { |
| 58 | + ul.appendChild(list); |
| 59 | + }); |
| 60 | +</script> |
0 commit comments