This repository has been archived by the owner on Sep 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.php
52 lines (52 loc) · 2.58 KB
/
index.php
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
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Server酱</title>
<link href="favicon.ico" rel="shortcut icon">
<script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
<link rel="stylesheet" href="css/serverchan.min.css" type="text/css" />
<link rel="stylesheet" href="css/tip.min.css" type="text/css" />
<!-- 自定义背景 -->
<style>
body:before{
background: url(img/bg_wide.jpg) no-repeat bottom center
}
@media screen and (max-width: 980px){
body:before{
background-image: url(img/bg_narrow.jpg);
background-position: top center;
}
}
#form-bg{
background: #FFF url(img/bg_form.png) no-repeat bottom right;
}
<?php
if(isset($_GET["nobg"])){
echo("body:before{display: none !important}");
}
?>
</style>
</head>
<body>
<div id="form-bg" style="">
<form role="form" action="sc.php" method="post" id="send_form" class="well">
<h4 style="text-align: center;margin-top: 0 !important;">发送消息</h4>
<div class="form-group">
<label for="text">消息标题</label>
<input type="text" class="form-control" id="text" name="text" placeholder="必填,最长256字节" onkeydown="if(event.keyCode==13) return false;" value="" required>
</div>
<div class="form-group">
<label for="contact">联系邮箱</label>
<input type="email" class="form-control" id="contact" name="contact" placeholder="选填,如果需要我回复请填上邮箱" onkeydown="if(event.keyCode==13) return false;" value="">
</div>
<div class="form-group">
<label for="desp">消息内容</label>
<textarea class="form-control" id="desp" row="3" placeholder="消息内容,最长64K,选填,支持MarkDown" name="desp"></textarea>
</div>
<button type="submit" id="submit-btn" class="btn btn-primary">发送消息</button>
<button type="reset" class="btn btn-primary" onclick="$('input').val('');$('textarea').html('')"> 重置 </button>
</form>
</div>
<script src="js/submit.min.js"></script>
</body>
</html>