-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.html
35 lines (29 loc) · 948 Bytes
/
dev.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<head>
<meta charset="UTF-8">
<title>Sanctum Widget Dev</title>
<style>
body {
background-color: white;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
}
#widget-container {
width: 400px;
}
</style>
</head>
<body>
<div id="widget-container"></div>
<script src="/dist/browser/sanctum-client.js"></script>
<script>
// Initialize the Sanctum widget for testing
Sanctum.SanctumWidget.init('widget-container');
// Example usage of Sanctum API
Sanctum.SanctumAPI.encrypt("sfdasfasdf", "d310a5145463e7b0c3c762a9f3e7d9e4d8e5efad3a9c6f4d7b2f5f8b9c7e1a2b");
</script>
</body>