-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
58 lines (57 loc) · 1.33 KB
/
index.js
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const examples = [
{
id: 001,
name: 'JavaScript Auth',
url: 'https://github.com/bytebane/OTPless-js-auth',
},
{
id: 002,
name: 'ReactJS Auth',
url: 'https://github.com/bytebane/OTPless-react-auth',
},
{
id: 003,
name: 'VueJS Auth',
url: 'https://github.com/bytebane/OTPless-vue-auth',
},
{
id: 004,
name: 'NodeJS Auth',
url: 'https://github.com/bytebane/OTPless-node-auth',
},
{
id: 005,
name: 'Firebase Auth',
url: 'https://github.com/bytebane/OTPless-firebase-auth',
},
{
id: 006,
name: 'Firebase+ReactJS Auth',
url: 'https://github.com/bytebane/OTPless-firebase-auth/tree/main/firebase-react-auth',
},
{
id: 007,
name: 'Android Auth',
url: 'https://github.com/bytebane/OTPless-android-auth/',
},
{
id: 008,
name: 'Flutter Android Auth',
url: 'https://github.com/bytebane/OTPless-flutter-auth/',
},
]
document.addEventListener('DOMContentLoaded', () => {
const appEL = document.getElementById('app')
const examplesListEl = document.getElementById('examples-list')
examples.forEach((example) => {
const liEl = document.createElement('li')
liEl.className = 'list-item'
const aEl = document.createElement('a')
aEl.className = 'list-item-link'
aEl.href = example.url
aEl.target = '_blank'
aEl.textContent = example.name
liEl.appendChild(aEl)
examplesListEl.appendChild(liEl)
})
})