-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (54 loc) · 1.43 KB
/
index.html
File metadata and controls
57 lines (54 loc) · 1.43 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Breakdance Playground</title>
<style>
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: system-ui, sans-serif;
background: #f0f0f1;
}
#open-playground {
display: inline-block;
padding: 12px 20px;
font: inherit;
font-size: 16px;
font-weight: 600;
text-decoration: none;
color: #1d2327;
cursor: pointer;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.12);
background: #fff;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
#open-playground:hover {
background: #f6f7f7;
}
</style>
</head>
<body>
<a
id="open-playground"
href="https://playground.wordpress.net/?blueprint-url="
target="_blank"
rel="noopener noreferrer"
>
Open in WordPress Playground
</a>
<script>
(function () {
var blueprint = new URL("blueprint.json", window.location.href).href;
var base = "https://playground.wordpress.net/?blueprint-url=";
document.getElementById("open-playground").href =
base + encodeURIComponent(blueprint);
})();
</script>
</body>
</html>