This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
246 lines (237 loc) · 9.26 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>MDZZ.SPACE</title>
<meta name="description" content="欢迎来到 MDZZ 空间,你是 MM 还是 GG。" />
<meta name="keywords" content="MDZZ.SPACE,妈的智障空间,MDZZ" />
<link rel="stylesheet" href="css/css.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link href="https://q.qlogo.cn/g?b=qq&nk=774024602@qq.com&s=100" mce_href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script>
<script>
if(!-[1,]){
var ck;
ck=confirm("本网站不支持IE内核所有浏览器!\r\n点击确定下载Google浏览器"); //在页面上弹出对话框
if(ck==true)window.open("http://browsehappy.osfipin.com/down/win/chrome.html");
}
</script>
<style>
body,h1 {font-family: "Montserrat", sans-serif;}
img{margin-bottom:-7px ;}
a{text-decoration: none;}
.w3-row-padding img {margin-bottom:12px}
.wb{margin: 0 auto;padding: 4px;text-align: center;font-weight:normal;}
.bq{width: 302px;margin: 0 auto;}
.bq p{background-color: #fff;}
@media (max-width:920px){.w3-third{width:100%}}
</style>
<body>
<nav class="w3-sidenav w3-black w3-card-2 w3-animate-top w3-center w3-xxlarge" style="display:none;padding-top:220px">
<a href="javascript:void(0)" onclick="mdzzc()" class="w3-closenav w3-jumbo w3-right w3-display-topright w3-padding-xxlarge">×</a>
<a href="javascript:void(0)" class="w3-text-grey w3-hover-black">M</a>
<a href="javascript:void(0)" class="w3-text-grey w3-hover-black">D</a>
<a href="javascript:void(0)" class="w3-text-grey w3-hover-black">Z</a>
<a href="javascript:void(0)" class="w3-text-grey w3-hover-black">Z</a>
</nav>
<div class="w3-content" style="max-width:1500px">
<div class="w3-container w3-padding-jumbo w3-center w3-opacity w3-margin-bottom">
<span class="w3-opennav w3-xxlarge w3-right" onclick="mdzzo()">≡</span>
<div class="w3-clear"></div>
<h1>MDZZ.SPACE</h1>
<p>欢迎来到 MDZZ 空间,你是 MM 还是 GG。</p>
<div class="w3-small"><strong>点下面文字开始记仇仇</br>提示:本网站不支持IE内核所有浏览器!</strong></div>
<p>
<input class="w3-check" type="checkbox" name="vehicle" value="粗体" onclick="jc();" /> 粗体
<input class="w3-check" type="checkbox" name="vehicle" value="居中" checked="checked" onclick="jz();" /> 居中
</p>
</div>
<div class="mdzzbq">
<!--第一列-->
<div class="w3-third w3-center">
<!--记仇-->
<div class="w3-card bq">
<div id="capture">
<img src="img/1.jpg" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;" />
<p class="wb" id="text" contenteditable="true">
点击这里修改文字,然后再点击生成。
</p>
</div>
</div>
<button class="w3-btn w3-margin-16" onclick="sc('o');draw('');">生成</button>
<!--记仇end-->
<!--记仇嘲笑-->
<div class="w3-card bq">
<div id="capture2">
<img src="img/2.jpg" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;" />
<p class="wb" id="text" contenteditable="true">
点击这里修改文字,然后再点击生成。
</p>
</div>
</div>
<button class="w3-btn w3-margin-16" onclick="sc('o');draw('2');">生成</button>
<!--记仇嘲笑end-->
</div>
<!--第一列end-->
<!--第二列-->
<div class="w3-third w3-center">
<!--写代码-->
<div class="w3-card bq">
<div id="capture3">
<img src="img/3.jpg" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;" />
<p class="wb" id="text" contenteditable="true">
点击这里修改文字,然后再点击生成。
</p>
</div>
</div>
<button class="w3-btn w3-margin-16" onclick="sc('o');draw('3');">生成</button>
<!--写代码end-->
<!--伤身体-->
<div class="w3-card bq">
<div id="capture4">
<img src="img/4.jpg" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;" />
<p class="wb" id="text" contenteditable="true">
点击这里修改文字,然后再点击生成。
</p>
</div>
</div>
<button class="w3-btn w3-margin-16" onclick="sc('o');draw('4');">生成</button>
<!--伤身体end-->
</div>
<!--第二列end-->
<!--第三列-->
<div class="w3-third w3-center">
<!--写代码-->
<div class="w3-card bq">
<div id="capture5">
<img src="img/5.jpg" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;" />
<p class="wb" id="text" contenteditable="true">
点击这里修改文字,然后再点击生成。
</p>
</div>
</div>
<button class="w3-btn w3-margin-16" onclick="sc('o');draw('5');">生成</button>
<!--写代码end-->
<!--伤身体-->
<div class="w3-card bq">
<div id="capture6">
<img src="img/6.jpg" oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;" />
<p class="wb" id="text" contenteditable="true">
点击这里修改文字,然后再点击生成。
</p>
</div>
</div>
<button class="w3-btn w3-margin-16" onclick="sc('o');draw('6');">生成</button>
<!--伤身体end-->
</div>
<!--第三列end-->
</div></div>
<div class="w3-clear"></div><br><br>
<div id="id01" class="w3-modal">
<div class="w3-modal-content">
<div class="w3-container">
<span onclick="document.getElementById('id01').style.display='none'" class="w3-closebtn">×</span>
<div class="w3-center">
<p><img id="downPic" src="" class="w3-card"></p>
<p>
<button class="w3-btn" onclick="sc('c');">关闭</button>
</p>
<p class="w3-small">(右键保存、长按保存即可)</p>
</div>
</div>
</div>
</div>
<!-- footer -->
<footer class="w3-container w3-padding-64 w3-light-grey w3-center w3-margin-top w3-opacity">
<div class="w3-xlarge w3-padding-32">
<a href="http://tamshen.com" target="_blank" class="w3-hover-text-indigo w3-show-inline-block"><img height="16px" src="https://tamshen.com/usr/themes/DONG/img/TAMSHEN.svg" /></a>
</div>
<p style="font-weight:normal">© <a href="https://github.com/Tamshen/MDZZ.SPACE">MDZZ.SPACE(20180517)</a></p>
</footer>
<script>
function mdzzo() {
document.getElementsByClassName("w3-sidenav")[0].style.width = "100%";
document.getElementsByClassName("w3-sidenav")[0].style.display = "block";
}
function mdzzc() {
document.getElementsByClassName("w3-sidenav")[0].style.display = "none";
}
var day2 = new Date();
day2.setTime(day2.getTime());
var s2 = day2.getFullYear()+"年" + (day2.getMonth()+1) + "月" + day2.getDate() + "日";
var day3 = new Date();
day3.setTime(day3.getTime()+24*60*60*1000);
var s3 = day3.getDate();
var day4 = new Date();
day4.setTime(day4.getTime()+48*60*60*1000);
var s4 = day4.getDate();
var day5 = new Date();
day5.setTime(day5.getTime()+72*60*60*1000);
var s5 = day5.getDate();
//自定义
var zdwz = document.getElementsByClassName('mdzzbq').item(0).getElementsByTagName('p');
zdwz[0].innerHTML = s2 + ",今天要写日记,等我把日记记完再跟你们玩";
zdwz[1].innerHTML = "别写了,今天写了,还有" + s3 + "号," + s4 + "号," + s5 + "号的作业,走,去玩" ;
zdwz[2].innerHTML = "正在使用TNT写代码中:" ;
zdwz[3].innerHTML = "不了不了,这伤身体" ;
zdwz[4].innerHTML = "整天记记记,记你大爷,</br>这么能记咋不去写小说啊?" ;
zdwz[5].innerHTML = "就你那两下还能阻止我记仇?" ;
//生成和关闭
function sc(cs){
if(cs=="o"){
document.getElementById('id01').style.display='block';
}
else{
document.getElementById('id01').style.display='none';
var imageElement = document.getElementById("downPic");
imageElement.src = "";
}
}
//加粗 会玄学报错
function jc(){
var check = document.getElementsByTagName('input')[0];
var jczt = document.getElementsByClassName('mdzzbq').item(0).getElementsByTagName('p');
if(check.checked){
for(var item in jczt){
jczt[item].style.fontWeight ="bold";
}
}
else{
for(var item in jczt){
jczt[item].style.fontWeight = "normal";
}
}
}
//居中
function jz(){
var check2 = document.getElementsByTagName('input')[1];
var jczt = document.getElementsByClassName('mdzzbq').item(0).getElementsByTagName('p');
if(check2.checked){
for(var item in jczt){
jczt[item].style.textAlign = "center";
}
}
else{
for(var item in jczt){
jczt[item].style.textAlign = "left";
}
}
}
//截图渲染转换
function draw(bh){
html2canvas(document.querySelector("#capture" + bh)).then(canvas => {
var myImage = canvas.toDataURL("image/png");
var imageElement = document.getElementById("downPic");
imageElement.src = myImage;
});
}
console.log("\n %c © MDZZ.SPACE(20180517) | TAMSHEN ","color:#ffffff; background-image: linear-gradient(to right, #2aa8f2, #9db1fa);line-height: 3;padding:5px 0;border-radius:5px;")
console.log("\n提示:错误已经全部屏蔽\n欢迎提交反馈和星星 :https://github.com/Tamshen/MDZZ.SPACE ")
//屏蔽掉错误,调试请关闭
window.onerror=function(){return true;}
</script>
</body>
</html>