Skip to content

Commit

Permalink
Add Mamy into the scuedule, load program after page is fully loaded, …
Browse files Browse the repository at this point in the history
…remove old code to force including a speaker (#36)
  • Loading branch information
hugo-dc authored Nov 13, 2023
1 parent 14525e9 commit cb81f91
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
19 changes: 12 additions & 7 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,19 @@ function getSessionHtml(session, name_ids) {
var session_speaker_name = session_speaker.name;
session_speaker_names.push(session_speaker_name);
}


// TODO: Remove when API returns all speakers
var session_speaker_names_string = session_speaker_names.join(", ");
if (session_id == "exploring_the_past_present_and_future_of_zkevms") {
if (session_speaker_names_string.indexOf("Mamy") < 0 ){
var name = "Mamy André-Ratsimbazafy";
session_speaker_names.push(name);
session_speaker_names_string = session_speaker_names.join(", ");
session_speakers.push({"id": "mamy_andre_ratsimbazafy", "name": name})
}
}

var session_start_time = getIstanbulTime(session_start);
var session_end_time = getIstanbulTime(session_end);
var times = session_start_time + " - " + session_end_time;
Expand All @@ -237,13 +249,6 @@ function getSessionHtml(session, name_ids) {
var session_speaker_id = session_speaker.id;
var session_speaker_name = session_speaker.name;

// TODO: Remove this when API returns the correct name
if (session_speaker_name == "Simi Vera") {
session_speaker_name = "Smriti Verma";
session_speaker_id = "smriti_verma";
session_speaker_names_string = session_speaker_names_string.replace("Simi Vera", "Smriti Verma");
}

if (session_speaker_name in name_ids) {
session_speaker_id = name_ids[session_speaker_name].picture;
}
Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload" onload="loadSessions();">
<body class="is-preload">

<!-- Mobile Menu -->
<div class="topnav">
Expand Down Expand Up @@ -766,4 +766,7 @@ <h1>Program</h1>
<script src="assets/js/main.js"></script>

</body>
<script type="text/javascript">
loadSessions();
</script>
</html>

0 comments on commit cb81f91

Please sign in to comment.