{"id":390,"date":"2020-11-12T16:53:12","date_gmt":"2020-11-12T16:53:12","guid":{"rendered":"http:\/\/www.mitl2020.uliege.be\/?page_id=390"},"modified":"2020-11-13T05:56:20","modified_gmt":"2020-11-13T05:56:20","slug":"agenda-in-your-timezone","status":"publish","type":"page","link":"http:\/\/www.mitl2020.uliege.be\/index.php\/agenda\/agenda-in-your-timezone\/","title":{"rendered":"Agenda in your timezone"},"content":{"rendered":"\n\n<select id=\"timezone\" onchange=\"update();\" style=\"font-weight: bold; font-size: 16px;font-family: Verdana, Geneva, sans-serif !important;color: #004e55 !important;\">\n<option value=\"\" selected>Select your timezone&#8230;<\/option>\n<\/select>\n\n<div id=\"agenda\"><\/div>\n\n<script>\n  \/\/ Agenda\n  \/\/ col 0 : day\n  \/\/ col 1 : hours\n  \/\/ col 2 : minutes\n  \/\/ col 3 : text\n  var agendaTXT = [\n    [14, 13, 30, 'Welcome and virtual Ice Breaker'],\n    [14, 14, 00, 'FREIBERG : The fellowship and fate of particles'],\n    [14, 16, 00, 'NANCY : Sustainable materials and processing for energy metals'],\n    [14, 18, 00, 'S\u00c3O PAULO : How can we deliver process mineralogy data to improve a Geomet model?'],\n    [14, 20, 00, 'NEW YORK : Business impact of geometallurgy'],\n    [00, 00, 00, 'Pacific pause'],\n    [15, 3, 00, 'BRISBANE : Geometallurgy - translating research into practice'],\n    [15, 5, 00, 'MANILA : Small-scale mining and the community'],\n    [15, 7, 00, 'PERTH : Iron Ores'],\n    [15, 9, 00, 'HELSINKI : Battery Minerals for Europe'],\n    [15, 11, 00, 'LULE\u00c5 : Geometallurgy in the Nordic context'],\n    [15, 13, 00, 'CAPE TOWN : Gold waste'],\n    [15, 15, 00, 'LI\u00c8GE : Cash or Trash ? The fate of metals in the urban mine'],\n    [15, 17, 00, 'Closing session - EMerald graduation ceremony 2020']\n  ];\n\n  \/\/ Add all timezone in the selectHTML tag\n  var selectHTML = document.querySelector('select#timezone');\n  for (var t = -13; t < 12; t++) {\n    var optionHTML = document.createElement('option');\n    optionHTML.value = t;\n    optionHTML.innerHTML = 'UTC '+(t+1);\n    selectHTML.appendChild(optionHTML);\n  }\n\n  \/\/ Update the agenda when select changed\n  function update() {\n    \/\/ get the value of the timezone selected\n    var timezone = document.querySelector('select#timezone option:checked').value;\n\n    \/\/ clear the actual agendaHTML tag\n    var agendaHTML = document.querySelector('div#agenda');\n    removeAllChildNodes(agendaHTML);\n\n    if (timezone != \"\") {\n      var style = 'font-size: 16px;font-family: Verdana, Geneva, sans-serif !important;color: #004e55 !important;'\n      var line = '';\n\n      for (var i = 0; i < agendaTXT.length; i++) {\n        if (agendaTXT[i][0] !== 0) {\n          var date = new Date(2020, 11, agendaTXT[i][0], agendaTXT[i][1], agendaTXT[i][2], 0);\n          var time = date.addHours(timezone).toString().substring(4, 21);\n          line += '<div style=\"'+style+'\">';\n          line += time + ' - ' + agendaTXT[i][3];\n          line += '<\/div>';\n        }\n        else {\n          line += '<div style=\"'+style+'\">';\n          line += ' ' + agendaTXT[i][3];\n          line += '<\/div>';\n        }\n      }\n      agendaHTML.innerHTML = line;\n    }\n  }\n\n  \/\/ utils function\n  Date.prototype.addHours = function(h) {\n    return new Date(this.getTime() + (h*60*60*1000));\n  }\n  function removeAllChildNodes(parent) {\n      while (parent.firstChild) {\n          parent.removeChild(parent.firstChild);\n      }\n  }\n<\/script>\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Select your timezone&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":174,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"full-width","neve_meta_container":"","neve_meta_enable_content_width":"on","neve_meta_content_width":100,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"_links":{"self":[{"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/pages\/390"}],"collection":[{"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":7,"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/pages\/390\/revisions"}],"predecessor-version":[{"id":408,"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/pages\/390\/revisions\/408"}],"up":[{"embeddable":true,"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/pages\/174"}],"wp:attachment":[{"href":"http:\/\/www.mitl2020.uliege.be\/index.php\/wp-json\/wp\/v2\/media?parent=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}