Facebook
From anan, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 189
  1.       <div id="XS-pay2play-widget"></div>
  2.       <script>
  3.           var options = {
  4.               access_token: "wop8hYq8oomcR2Y2M7QfWQh8QyORfBdl",
  5.               theme : {
  6.                   foreground: "green",
  7.                   background: "light"
  8.               },
  9.               lightbox: {
  10.                   height: "700px",
  11.                   spinner: "round"
  12.               },
  13.               target_element: "#XS-pay2play-widget"
  14.           };
  15.           var s = document.createElement("script");
  16.           s.type = "text/javascript";
  17.           s.async = true;
  18.           s.src = "https://static.xsolla.com/embed/pay2play/2.2.2/widget.min.js";
  19.           s.addEventListener("load", function (e) {
  20.               var widgetInstance = XPay2PlayWidget.create(options);
  21.           }, false);
  22.           var head = document.getElementsByTagName("head")[0];
  23.           head.appendChild(s);
  24.       </script>