nskd-lbr 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/t.html +0 -65
package/package.json
CHANGED
package/src/t.html
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Login with NoSkid</title>
|
|
7
|
-
<script src="nskd-lbr.js"></script>
|
|
8
|
-
<style>
|
|
9
|
-
body {
|
|
10
|
-
font-family: Arial, sans-serif;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
height: 100vh;
|
|
15
|
-
margin: 0;
|
|
16
|
-
background-color: #f4f4f9;
|
|
17
|
-
}
|
|
18
|
-
.container {
|
|
19
|
-
text-align: center;
|
|
20
|
-
}
|
|
21
|
-
button {
|
|
22
|
-
background-color: #3b82f6;
|
|
23
|
-
color: white;
|
|
24
|
-
border: none;
|
|
25
|
-
padding: 10px 20px;
|
|
26
|
-
border-radius: 5px;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
font-size: 16px;
|
|
29
|
-
}
|
|
30
|
-
button:hover {
|
|
31
|
-
background-color: #2563eb;
|
|
32
|
-
}
|
|
33
|
-
</style>
|
|
34
|
-
</head>
|
|
35
|
-
<body>
|
|
36
|
-
<div class="container">
|
|
37
|
-
<h1>Welcome to My Website</h1>
|
|
38
|
-
<button id="loginButton">Login with NoSkid</button>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<script>
|
|
42
|
-
document.getElementById('loginButton').addEventListener('click', async function() {
|
|
43
|
-
try {
|
|
44
|
-
// Initialize the NoSkid library
|
|
45
|
-
const nskdLbr = new NskdLbr({
|
|
46
|
-
apiUrl: 'https://check.noskid.today/',
|
|
47
|
-
debug: true,
|
|
48
|
-
loginEndpoint: 'https://your-login-endpoint.com/api/login' // Replace with your actual login endpoint
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
// Show the login modal
|
|
52
|
-
const loginResult = await nskdLbr.showLoginModal();
|
|
53
|
-
|
|
54
|
-
if (loginResult.success) {
|
|
55
|
-
alert('Login successful! Welcome, ' + loginResult.data.localUsername);
|
|
56
|
-
// You can redirect the user or perform other actions here
|
|
57
|
-
}
|
|
58
|
-
} catch (error) {
|
|
59
|
-
console.error('Login failed:', error);
|
|
60
|
-
alert('Login failed: ' + error.message);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
</script>
|
|
64
|
-
</body>
|
|
65
|
-
</html>
|