-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
325 lines (302 loc) · 17.2 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
<!DOCTYPE html>
<html lang="ja">
<head prefix="og: https://ogp.me/ns#">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<!--Firebase SDK-->
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/11.0.1/firebase-app.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyCIBQFib2vGVouVQRIOvggmxpgRkcZwuy0",
authDomain: "sharetool-dev.firebaseapp.com",
projectId: "sharetool-dev",
storageBucket: "sharetool-dev.appspot.com",
messagingSenderId: "1060368462957",
appId: "1:1060368462957:web:3d8d64bb8f754d4deb7b64"
}
// Initialize Firebase
const app = initializeApp(firebaseConfig);
</script>
<!-- Google tag (gtag.js) -->
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-41BP06FEPS"></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() { dataLayer.push(arguments) }
gtag("js", new Date())
gtag("config", "G-41BP06FEPS")
</script>
<meta charset="UTF-8">
<meta property="og:url" content="https://share-tool.net">
<meta property="og:type" content="tool">
<meta property="og:title" content="共有ツール">
<meta property="og:description" content="共有ツールは、アプリ内にあるHTMLコードを自サイトに貼りつけるだけで様々サービスに対応した共有ボタンを一つで作ることが出来ます。">
<meta property="og:site_name" content="共有ツール">
<meta property="og:image" content="src/banner.png">
<meta name="description" content="共有ツールは、アプリ内にあるHTMLコードを自サイトに貼りつけるだけで様々サービスに対応した共有ボタンを一つで作ることが出来ます。">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>共有ツール - ShareTool</title>
<link rel="icon" type="image/vnd.microsoft.icon" href="https://share-tool.net/src/share.jpg">
<script src="https://share-tool.net/src/electron-store/index.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+2:[email protected]&display=swap');
</style>
<link href="./style.css" rel="stylesheet">
<script src="./script.js"></script>
<script src="./src/device.js"></script>
<meta name="google-site-verification" content="6i5qzMv5tTje_n0lSnR3r31QPJhCbDniRQ8gXJ2TZZ4">
<meta name="google-site-verification" content="CNmZPAeZ24t6MZ0Y2ko7o8RylZ24N4lqhTkn7VG2VIg" />
<meta name="google-site-verification" content="w9EIx7wkyz6XO79lbJfIQU2jOLY3lUpNIeHhDr51V6A" />
<!--以下PWA-->
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" href="icons/apple-icon-180.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2048-2732.jpg"
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2732-2048.jpg"
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1668-2388.jpg"
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2388-1668.jpg"
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1536-2048.jpg"
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2048-1536.jpg"
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1488-2266.jpg"
media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2266-1488.jpg"
media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1640-2360.jpg"
media="(device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2360-1640.jpg"
media="(device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1668-2224.jpg"
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2224-1668.jpg"
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1620-2160.jpg"
media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2160-1620.jpg"
media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1290-2796.jpg"
media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2796-1290.jpg"
media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1179-2556.jpg"
media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2556-1179.jpg"
media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1284-2778.jpg"
media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2778-1284.jpg"
media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1170-2532.jpg"
media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2532-1170.jpg"
media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1125-2436.jpg"
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2436-1125.jpg"
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1242-2688.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2688-1242.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-828-1792.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1792-828.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1242-2208.jpg"
media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-2208-1242.jpg"
media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-750-1334.jpg"
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1334-750.jpg"
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-640-1136.jpg"
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="icons/apple-splash-1136-640.jpg"
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
</head>
<body>
<!--ここからヘッダー-->
<div id="header">
<img onclick="menu_open()" src="menu.svg" id="menu" class="menu_open">
<img src="src/share.jpg" style="display: inline-block;margin: 5px;vertical-align: -70%; width: 48px;">
<span id="text" style="font-size: 18px;">Share Tool</span>
</div>
<!--ここまでヘッダー-->
<!--ここからメニュー-->
<div style="background: none;display: block;height: 3vh;position: unset;"></div>
<div id="menu_window" style="display: none;">
<h3 style="margin-left: -25px;">
<span src="menu.svg" id="menu" onclick="menu_close()" style="font-size: 32px;vertical-align: 25%;">✕</span>
Share Tool Menu
</h3>
<div>
<ul>
<a class="menu_a" href="https://github.com/webfullsympathy/share-tool">
<li><span><img src="src/menu/github.png" class="menuicon" style="border-radius: 100%;">GitHubで見る</span></li>
</a>
<br>
<a class="menu_a" href="https://share-tool.net/embed">
<li><span><img src="src/menu/code.png" class="menuicon">埋め込みコードはこちら</span></li>
</a>
<br>
<a class="menu_a" href="https://share-tool.net/doc">
<li><span><img src="src/menu/document.png" class="menuicon">ドキュメント</span></li>
</a>
<br>
<a class="menu_a" href="https://lit.link/sharetool">
<li><span><img src="src/menu/link.png" class="menuicon">リンク集</span></li>
</a>
<br>
<a class="menu_a" href="https://share-tool.net/dev">
<li><span><img src="src/menu/developer.png" class="menuicon">開発者</span></li>
</a>
<br>
<a class="menu_a" href="https://share-tool.net/settings">
<li><span><img src="src/menu/settings.png" class="menuicon">設定</span></li>
</a>
</ul>
</div>
</div>
<div id="back_menu"></div>
<style>
.menuicon {
width: 10px;
vertical-align: middle;
}
#menu {
display: inline-block;
width: 48px;
vertical-align: -46%;
cursor: pointer;
}
#menu_window {
display: none;
border-radius: 10px;
box-shadow: 0px 0px 10px 2px #fff;
padding: 30px;
position: fixed;
top: 30px;
width: 60%;
background: #fff;
z-index: 5;
}
#back_menu {
z-index: 4;
background: #000;
opacity: 0.8;
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
display: none;
}
#header {
background: #ffffff2e;
padding-left: 15px;
margin-left: -10px;
margin-right: -8px;
margin-top: -10px;
position: unset;
/*! left: 0; */
/*! bottom: 0; */
width: 100%;
color: black;
display: block;
margin-bottom: 50px;
}
div ul {
color: #fff;
list-style: none;
}
li{
display: inline-block;
}
@media (prefers-color-scheme: light) {
.menu_open {
mix-blend-mode: difference;
}
.menu_a {
mix-blend-mode: difference;
}
}
</style>
<script>
function menu_open() {
const menubar = document.getElementById("menu_window");
const back = document.getElementById("back_menu");
menubar.style.display = "block";
back.style.display = "block";
menu_window.style.animation = "0.3s updown-anime";
}
function menu_close() {
const menubar = document.getElementById("menu_window");
const back = document.getElementById("back_menu");
menu_window.style.animation = "0.3s downup-anime";
setTimeout(() => {
menu_window.style.display = "none";
}, 180);
back.style.display = "none";
}
</script>
<!--ここまでメニュー-->
<form name="main">
<textarea id="share" placeholder="共有する文字列を入力・・・" name="text"></textarea>
<br>
<select id="service" style="border: 3px #eee solid;padding: 5px 30px 0px 20px;font-size: 16px;height: 45px;">
<option>選択してください</option>
<option name="line" value="LINE">LINE</option>
<option name="x" value="X(旧Twitter)">X(旧Twitter)</option>
<option name="taittsuu" value="タイッツー">タイッツー</option>
<option name="whatsapp" value="WhatsApp">WhatsApp</option>
<option name="threads" value="Threads">Threads</option>
<option name="facebook" value="Facebook">Facebook</option>
<option name="misskey" value="Misskey・Mastodon">Misskey・Mastodon</option>
<option name="bsky" value="BlueSky">BlueSky</option>
<option name="copy" value="コピー">コピー</option>
<option name="other" value="その他">その他</option>
</select>
<br>
<button type="submit" id="btn" onclick="window.submit();"
style="border: 3px #eee solid;padding: 4px 30px 1px 30px;">共有</button>
</form>
<a href="javascript:install()">
<p id="install">インストールはこちら</p>
</a>
<div class="extentionDL">
<h2>🎉新機能!共有ツールのブラウザ拡張機能ができました✨️</h2>
<div class="extentionFlex">
<img src="./extention.png" alt="" height="300">
<div>
<p>ツールバーや右クリックメニューからかんたんに共有できる「共有ツール for Browser」
<br>
がついにリリースされました!!
<br><br>
この拡張機能を使うと、更に高速な共有体験(?)をすることができます!
<br><br>
<a href="https://share-tool.net/extentions-dl.html"><b><u>今すぐダウンロード!!!!!</u></b></a>
</p>
<a href="./extentions-dl.html">
<img id="download_ex_img" src="./browser-banner.png" alt="ShareTool for Browser Banner" width="172">
</a>
<ul>
<li>対応ブラウザ Chrome / Firefox (Chromium・Firefoxベースのブラウザでも使えます)</li>
</ul>
</div>
</div>
</div>
<script src="src/cookie_data.js"></script>
<script>
</script>
</body>
</html>