UNPKG

@textback/notification-widget

Version:

TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.

36 lines (33 loc) 1.39 kB
<html lang="en"> <head> <meta charset="UTF-8"> <title>example</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui-css/semantic.min.css"> <script src="//cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script> <script src="//cdn.polyfill.io/v2/polyfill.min.js?features=default,fetch,Promise"></script> <script src="/build/index.js"></script> <script> var _fetch = window.fetch; window.fetch = function(url, options) { window.fetch.calls.push({url: url, options: options}); return _fetch(url, options); } window.fetch.calls = []; </script> </head> <body> <tb-notification-widget secure-context-token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcklkIjoiNDU2OCIsImlhdCI6MTQ5MTMzMzM0OCwiZXhwIjoxNDkyMTk3MzQ4LCJpc3MiOiJlZTlhZTMwYi1jYzRhLTRlNTctYWM1Mi05ZmYwOTEyMmRkODEiLCJzdWIiOiIxMjM0NSJ9._3FnsIV0atJ9F8_vmDZlzz5S0Qo6-tn7GP597Rxphm8=" widget-id="59f3dfaf-935f-4f0f-98b3-02a51abd0c7c" api-path="https://api.textback.io/api" data-insecure-order-id=""> </tb-notification-widget> <script> setTimeout(function() { var widgetElement = $('tb-notification-widget').get(0); widgetElement.dataset.insecureOrderId = 'testId'; new TextBack.NotificationWidget({element: widgetElement}); }, 2000); </script> </body> </html>