Untitled

mail@pastecode.io avatar
unknown
html
3 years ago
810 B
2
Indexable
Never
<html>
  <button id="start-mtg-button">ミーティング開始</button>
  <div id="url"></div>
  <div id="main"></div>
  
  <script type="text/javascript">
    const meetingName = Date.now();
    const displayName = 'さとし';

    document.getElementById("start-mtg-button").onclick = function() {
      document.getElementById("url").innerHTML = 'https://5snzylbef7.execute-api.ap-northeast-1.amazonaws.com/Prod/?express=true&m=' + meetingName + '&n=' + displayName;
      document.getElementById("main").innerHTML = 
        "<iframe title='chime player' src='https://5snzylbef7.execute-api.ap-northeast-1.amazonaws.com/Prod/"
        + "?express=true&m="+meetingName+"&n="+displayName+"'"
        + "allow='camera; microphone; display-capture' width='80%' height='80%'/>";
    };
  </script>
</html>