-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·131 lines (101 loc) · 4.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tweet Pad</title>
<meta name="description" content="A web app for writing draft tweets.">
<meta property="og:url" content="https://littlebirdjp.github.io/tweet-pad/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Tweet Pad">
<meta property="og:title" content="Tweet Pad">
<meta property="og:image" content="https://littlebirdjp.github.io/tweet-pad/ogimage.png">
<meta property="og:description" content="A web app for writing draft tweets.">
<meta property="fb:admins" content="youthkee">
<meta property="fb:app_id" content="1511260485840721">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@youthkee">
<meta name="twitter:url" content="https://littlebirdjp.github.io/tweet-pad/">
<meta name="twitter:title" content="Tweet Pad">
<meta name="twitter:description" content="A web app for writing draft tweets.">
<meta name="twitter:image" content="https://littlebirdjp.github.io/tweet-pad/ogimage.png">
<meta name="twitter:domain" content="littlebirdjp.github.io">
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="manifest.json">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#115d84">
<meta name="theme-color" content="#e6f1f9">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Assistant:300|Montserrat">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-50835-12"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-50835-12');
</script>
</head>
<body>
<div class="container">
<div class="row">
<div class="offset-md-3 col-md-6">
<div class="row">
<div class="offset-2 col-8">
<header>
<nav class="navbar navbar-light bg-light flex-column">
<h1 class="navbar-brand mb-0 h6"><i class="fe fe-feather"></i> Tweet Pad</h1>
</nav>
</header>
</div>
<div class="col-2 text-right">
<p class="mt-3 mr-2"><a href="https://github.com/littlebirdjp/tweet-pad" target="_blank" id="help_link"><i class="fe fe-question"></i></a></p>
</div>
</div>
<hr class="lead mt-0 mb-2">
<div class="row">
<div class="col-6">
<p class="lead">
<span id="result">140</span>
</p>
</div>
<div class="col-6 text-right">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-secondary active" id="btn_ja">
<input type="radio" name="language" id="radio_ja" autocomplete="off" checked> Ja
</label>
<label class="btn btn-secondary" id="btn_en">
<input type="radio" name="language" id="radio_en" autocomplete="off"> En
</label>
</div>
</div>
</div>
<div class="form-group">
<textarea rows="10" id="textarea" class="form-control"></textarea>
</div>
<p class="text-center mt-2">
<span id="tweet"><a href="https://twitter.com/intent/tweet?text=" target="_blank" class="btn btn-primary"><i class="fe fe-twitter"></i> Tweet</a></span>
<button id="copy" class="btn btn-primary"><i class="fe fe-export"></i> Copy</button>
<button id="clear" class="btn btn-primary"><i class="fe fe-trash"></i> Clear</button>
</p>
<div id="debug" class="text-center mt-2">
</div>
<hr>
<footer class="text-center">
<p><i class="fe fe-github"></i> <a href="http://littlebird.mobi/" target="_blank">littlebird</a></p>
</footer>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="js/script.js"></script>
<script>
// service workerが有効なら、service-worker.js を登録します
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js').then(function() { console.log('Service Worker Registered'); });
}
</script>
</body>
</html>