Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml
<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
  <script src="https://static.ambita.com/infoland-mflex/js/index.js"></script>
</head>
<body>
  <iframe id="infoland" src="https://static.ambita.com/infoland-mflex/iframe.html"></iframe>
  <button id="button" click>Open Infoland</button>
  <script type="text/javascript">
    (() => {
      Infoland.Mflex.init({
        element: '#infoland'
        ...
      });
      
      const button = document.getElementById("button");
      
      button.addEventListener('click', (e) => {
        Infoland.Mflex.load({
          ...
        });
      });
    })();
  </script>
</body>
</html>

...