This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
85 lines (72 loc) · 1.46 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!doctype html>
<html lang="en">
<head>
<title>A:BC Demo</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/gh/FogNetwork/ABC/index.js"></script>
</head>
<body>
<center>
<h1 class="title">A:BC Demo</h1>
<textarea id="code" spellcheck="false">
//Creates new ABC
var page = new ABC({
"type": "blank", //Blank, blob, or overwrite
"url": "https://example.com" //Any url
})
//Set the type
page.setType("blank")
//Set the url
page.setUrl("https://example.com")
//Get iframe code
console.log(page.getCode())
//Open page
page.open()</textarea>
<br>
<button class="run" onclick="eval(document.getElementById('code').value)">Run</button>
</center>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
* {
font-family: "Roboto";
}
center {
display: block;
text-align: -webkit-center;
}
.title {
font-size: 60px;
}
body {
background-color: #2d2f31;
color: darkgrey;
-webkit-text-stroke: 0.01px lightgrey;
}
#code {
width: 400px;
height: 241px;
font-size: 15px;
resize: none;
border: 2px solid black;
border-radius: 2.5px;
background-color: #2d2f31;
border-color: #656c6f;
color: #c9c9ca;
-webik-text-stroke: 0.25px black;
}
.run {
height: 40px;
width: 80px;
font-size: 30px;
color: darkgrey;
-webkit-text-stroke: 1px lightgrey;
cursor: pointer;
margin: 10px;
background: transparent;
border: 2px solid #656c6f;
border-radius: 2.5px;
}
</style>
</body>
</html>