-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.html
131 lines (123 loc) · 5.43 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="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>抽象话生成器 网页版</title>
<meta name="description" content="一键生成抽象话">
<meta name="author" content="chenxuuu">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h3>
抽象话生成器 网页版
</h3>
<div class="alert alert-warning alert-dismissable">
<h4>注意!</h4>
生成时请注意温文儒雅。<br/>
telegram里@chouxiangbot也可以生成抽象话
</div>
<div class="form-group">
<label for="imei">
要转换的语句
</label>
<input type="text" class="form-control" id="rawText" autofocus placeholder="输入你要转换的语句">
</div>
<button class="btn btn-primary btn-block btn-outline-primary" onclick="getResult()" id="create">
生成抽象话
</button>
<div class="form-group">
<label for="imei">
转换结果
</label>
<input type="text" class="form-control" id="resultText">
</div>
<button class="btn btn-primary btn-block btn-outline-primary" id="d_clip_button"
data-clipboard-target="#resultText">
复制结果
</button>
<br/>
<div class="form-group">
<label for="imei">
新功能:还原抽象话到拼音(只支持还原本工具转换的结果)
</label>
<input type="text" class="form-control" id="chouxiangText">
</div>
<button class="btn btn-primary btn-block btn-outline-primary" onclick="retrenResult()">
还原抽象话到拼音
</button>
<br /><br /><br />
</div>
</div>
</div>
<script src="https://utteranc.es/client.js" repo="chenxuuu/chouxianghua" issue-number="1" theme="github-light"
crossorigin="anonymous" async>
</script>
by <a href="https://www.chenxublog.com/" target="_blank">晨旭</a> |
<a href="https://github.com/chenxuuu/chouxianghua" target="_blank">GitHub源码(欢迎star)</a>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script>
$("#create").attr({"disabled":"disabled"});
$("#create").text("加载中,请稍候。。。");
function getResult() {
if(document.getElementById('rawText').value == ""){
document.getElementById("resultText").value = "👇🈹🌶里转🈳7⃣呢¿敲🐔🈹字8⃣❕";
}
else
{
document.getElementById("resultText").value = "生成中,请稍候。。。";
document.getElementById("resultText").value = chouxiang(document.getElementById('rawText').value);
}
}
function retrenResult() {
if(document.getElementById('chouxiangText').value == ""){
document.getElementById("resultText").value = "你搁那里转空气呢?敲几个字吧!";
}
else
{
document.getElementById("resultText").value = "还原中,请稍候。。。";
document.getElementById("resultText").value = dechouxiang(document.getElementById('chouxiangText').value);
}
}
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js"></script>
<script>
var btn = document.getElementById('d_clip_button');
var clipboard = new ClipboardJS(btn);
clipboard.on('success', function (e) {
alert("复制成功~");
});
clipboard.on('error', function (e) {
alert("复制失败了呢,你还是手动复制吧");
});
</script>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?5762197b261e8aa1c5033c7d7b146ecd";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
(function () {
var hm = document.createElement("script");
hm.src = "https://cxh.papapoi.com/js/grapheme-splitter.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
(function () {
var hm = document.createElement("script");
hm.src = "https://cxh.papapoi.com/js/cxh.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>