-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (43 loc) · 1.36 KB
/
index.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>CheckMx</title>
<style>
html,
head,
body {
padding: 0;
margin: 0;
}
body {
font-family: calibri, helvetica, arial, sans-serif;
}
</style>
</head>
<body>
<script type="text/javascript" src="dist/index.js"></script>
<script type="text/javascript">
var checker = new CheckMx()
checker.setCallback() // use default
checker.checkEmail("[email protected]")
setTimeout(function() {
checker.setCallback(
function(ob) {
console.log("my custom callback")
console.log("custom ==> email used for checking : "+ ob.email);
console.log("custom ==> hostname mx checked : "+ ob.hostname);
console.log("custom ==> hostname mx valid? : "+ ob.validMx);
console.log("custom ==> has possible replacement host suggestion : "+ ob.hasSuggestion);
console.log("custom ==> possible replacement host suggestion : "+ ob.suggestion);
console.log("my custom callback")
})
checker.checkEmail("[email protected]")
checker.checkEmail("[email protected]")
checker.checkEmail("[email protected]")
checker.checkEmail("[email protected]")
},3000)
console.log("wating 3 seconds to change callback and run checks again")
</script>
</body>
</html>