Skip to content

Instantly share code, notes, and snippets.

@tabvn
Last active December 11, 2022 04:56
Show Gist options
  • Save tabvn/b5fee7d22375d7e4bc3ee07cb6cdf5f5 to your computer and use it in GitHub Desktop.
Save tabvn/b5fee7d22375d7e4bc3ee07cb6cdf5f5 to your computer and use it in GitHub Desktop.

render list of zalePages


<script type="text/javascript">
      window.addEventListener("load", function() {
        window.zortout.setProductionMode(true);
        window.zortout.setMerchantId("");
        window.zortout.setLanguage("th");
        window.zortout.zalePages();
      })
    </script>
    
    

render create zalepage


<script type="text/javascript">
      window.addEventListener("load", function() {
        window.zortout.setProductionMode(true);
        window.zortout.setMerchantId("");
        window.zortout.setLanguage("th");
        window.zortout.createZalePage();
      })
    </script>
    
    

render edit zalepage


<script type="text/javascript">
      window.addEventListener("load", function() {
       window.zortout.setProductionMode(true);
        window.zortout.setMerchantId("");
        window.zortout.setLanguage("th");
        window.zortout.editZalePage("62d913889d36e8ae09a446c6");
      })
    </script>
    
    

HTML example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>ZalePage</title>
    <script>
      window.setImmediate = window.setTimeout;
    </script>
    <script type="module" crossorigin src="/assets/index.js"></script>
    <link rel="modulepreload" href="/assets/vendor.js">
    <link rel="stylesheet" href="/assets/index.css">
  </head>
  <body>
    <div id="react-root"></div>
    <script type="text/javascript">
      window.addEventListener("load", function() {
        window.zortout.setProductionMode(true);
        window.zortout.setMerchantId("");
        window.zortout.setLanguage("th");
        window.zortout.createZalePage();
      })
    </script>
  </body>
</html>
<script>
  const global = globalThis;
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment