-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
146 lines (134 loc) · 5.37 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>In Edit</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/platform/1.3.6/platform.min.js"
integrity="sha512-eYPrm8TgYWg3aa6tvSRZjN4v0Z9Qx69q3RhfSj+Mf89QqwOMqmwSlsVqfp4N8NVAcZe/YeUhh9x/nM2CAOp6cA=="
crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Alata&display=swap" rel="stylesheet">
<style>
* {
font-family: 'Alata', sans-serif;
text-align: center;
box-sizing: border-box;
}
.platform {
flex-direction: column;
align-items: center;
}
h1,
h2,
p {
margin: 0;
margin-top: 4px;
}
img:not(.icon) {
border-radius: 8px;
border: 1px solid black;
margin-top: 4px;
}
.selector {
margin-top: 4px;
}
button {
all: unset;
border: 1px solid black;
border-radius: 8px;
padding: 4px;
padding-left: 8px;
padding-right: 8px;
font-size: 24px;
background-color: #aaffaa;
}
kbd {
display: inline-block;
background-color: #eee;
margin-left: 4px;
margin-right: 4px;
padding: 2px;
padding-left: 8px;
padding-right: 8px;
border-radius: 8px;
/* font-weight: bold; */
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12), 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
display: inline-flex;
vertical-align: bottom;
}
kbd.icon {
padding: 0;
}
img.icon {
vertical-align: bottom;
}
</style>
</head>
<body>
<div class="platform" id="platform_ios" style="display: none">
<p><b>In Edit</b> is a simple way to hide a spoiler on Facebook. It is often used in Game Show groups to hide
solutions to problems.</p>
<h1>iOS</h1>
<h2>Posting a spoiler</h2>
<p>1. Post your comment containing the spoiler</p>
<p>2. Long-press on the posted comment, and press <kbd>Edit</kbd></p>
<img src="ios_edit_1.png" style="width: 100%; max-width: 400px;" />
<p>3. Edit the comment to say "In Edit", or something similar, and press <kbd>Update</kbd></p>
<img src="ios_edit_2.png" style="width: 100%; max-width: 400px;" />
<h2>Revealing a spoiler</h2>
<p>Long-press on the comment, and press <kbd>View Edit History</kbd></p>
<img src="ios_view_1.png" style="width: 100%; max-width: 400px;" />
<img src="ios_view_2.png" style="width: 100%; max-width: 400px;" />
</div>
<div class="platform" id="platform_android" style="display: none">
<p><b>In Edit</b> is a simple way to make a spoiler on Facebook. It is often used in Game Show groups to hide
solutions to problems.</p>
<h1>Android</h1>
<h2>Posting a spoiler</h2>
<p>1. Post your comment containing the spoiler</p>
<p>2. Long-press on the posted comment, or press <kbd class="icon"><img class="icon"
src="dots-horizontal.png" /></kbd> next to it, and press <kbd><img class="icon"
src="pencil-outline.png" />Edit</kbd></p>
<img src="android_edit_1.png" style="width: 100%; max-width: 400px;" />
<p>3. Edit the comment to say "In Edit", or something similar, and press <kbd>Update</kbd></p>
<img src="android_edit_2.png" style="width: 100%; max-width: 400px;" />
<h2>Revealing a spoiler</h2>
<p>Long-Press on the comment, or press the menu icon next to the comment, and press <kbd><img class="icon"
src="eye-outline.png" />View Edit History</kbd></p>
<img src="android_view_1.png" style="width: 100%; max-width: 400px;" />
<img src="android_view_2.png" style="width: 100%; max-width: 400px;" />
</div>
<div class="platform" id="platform_web" style="display: flex">
<p><b>In Edit</b> is a simple way to make a spoiler on Facebook. It is often used in Game Show groups to hide
solutions to problems.</p>
<h1>Web</h1>
<h2>Posting a spoiler</h2>
<p>1. Post your comment containing the spoiler</p>
<p>2. Press the <kbd class="icon"><img class="icon" src="dots-horizontal.png" /></kbd> menu icon next to the posted
comment, and press <kbd>Edit</kbd></p>
<img src="web_edit_1.png" style="width: 100%; max-width: 400px;" />
<p>3. Edit the comment to say "In Edit", or something similar, and press <kbd><img class="icon"
src="keyboard-return.png" />Enter</kbd></p>
<img src="web_edit_2.png" style="width: 100%; max-width: 400px;" />
<h2>Revealing a spoiler</h2>
<p>Press the <kbd>Edited</kbd> text below the comment</p>
<img src="web_view_1.png" style="width: 100%; max-width: 400px;" />
<img src="web_view_2.png" style="width: 100%; max-width: 400px;" />
</div>
<div class="selector">
<button onclick="selectPlatform('ios')">iOS</button>
<button onclick="selectPlatform('android')">Android</button>
<button onclick="selectPlatform('web')">Web</button>
</div>
</body>
<script>
function selectPlatform(platform) {
Array.from(document.getElementsByClassName("platform")).forEach(i => i.style.display = "none")
document.getElementById('platform_' + platform).style.display = "flex";
}
let plat = "web";
if ((platform.os.family || "").match(/ios/i) || (navigator.userAgent.match(/mac/i) && "ontouchend" in document)) plat = "ios";
if ((platform.os.family || "").match(/android/i)) plat = "android";
selectPlatform(plat);
</script>
</html>