-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
95 lines (85 loc) · 3.25 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
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Clarity Playground</title>
<meta name="description" content="Run and test Clarity smart contracts in the browser with Clarinet" />
<link rel="icon" href="/images/favicon.svg" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-D6SJVXJMFY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-D6SJVXJMFY");
</script>
<meta property="og:title" content="Clarity Playground" />
<meta property="og:description" content="Run and test Clarity smart contracts in the browser with Clarinet" />
<meta property="og:image" content="https://play.hiro.so/images/og-cp.jpg" />
<meta property="og:url" content="https://play.hiro.so" />
<link rel="stylesheet" href="./src/styles/reset.css" />
<link rel="stylesheet" href="./src/styles/app.css" />
<link rel="stylesheet" href="https://esm.sh/[email protected]/min/vs/editor/editor.main.css" />
</head>
<body>
<header>
<div>
<h1>clarity playground</h1>
<img src="./images/svgs/logo.svg" alt="Logo" width="193" height="25" />
</div>
<div>
<a href="https://docs.stacks.co/clarity/overview" target="_blank" rel="noopener">Clarity Docs ↗</a>
<a href="https://docs.hiro.so" target="_blank" rel="noopener">Hiro Docs ↗</a>
</div>
</header>
<div id="container">
<div id="editorContainer">
<div id="editor"></div>
<button id="copyCode" class="action-button">
<span class="icon"></span>
<span class="checked-icon"></span>
</button>
<button id="copyLink">
<span class="icon"></span>
<span class="checked-icon"></span>
</button>
<button id="deploy" disabled>Deploy</button>
</div>
<div id="console">
<div id="output">loading simnet</div>
<div id="inputContainer">
<form id="run">
<span>></span>
<input id="input" type="text" autocomplete="off" placeholder="clarity command" spellcheck="false" disabled />
<button type="submit" id="runButton" disabled>
<svg width="10" height="12" fill="none">
<path
d="M.848 1.51v8.98a.407.407 0 0 0 .619.34l7.341-4.489a.398.398 0 0 0 0-.682L1.467 1.17a.407.407 0 0 0-.62.341Z" />
</svg>
Run
</button>
</form>
</div>
</div>
</div>
<footer>
Clarity Playground is maintained by <a href="https://hiro.so">Hiro</a>
</footer>
<script type="importmap">
{
"imports": {
"@hirosystems/clarinet-sdk-browser": "https://esm.sh/@hirosystems/clarinet-sdk-browser@latesst",
"@stacks/transactions": "https://esm.sh/@stacks/[email protected]",
"monaco-editor": "https://esm.sh/[email protected]",
"monaco-textmate": "https://esm.sh/monaco-textmate@3",
"monaco-editor-textmate": "https://esm.sh/monaco-editor-textmate@4",
"onigasm": "https://esm.sh/onigasm@2"
}
}
</script>
<script type="module" src="./src/scripts/app.js"></script>
</body>
</html>