-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
364 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,6 +199,7 @@ table { | |
|
||
color: #333; | ||
float: right; | ||
margin-right: 15px; | ||
|
||
font-size: 14px; | ||
text-align: center; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#login_slider { | ||
width: 500px; | ||
height: 310px; | ||
background-color: #3E4243; | ||
} | ||
|
||
#login_container { | ||
width: 380px; | ||
height: 240px; | ||
margin-top: 100px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#reg_slider { | ||
width: 500px; | ||
height: 310px; | ||
background-color: #3E4243; | ||
} | ||
|
||
#reg_container { | ||
width: 380px; | ||
height: 240px; | ||
margin-top: 70px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div id="footer"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div id="header"> | ||
<div id="logo"> | ||
<a title="爱语记"> | ||
<img src="img/logo.png" /> | ||
<a target="_blank" href="about.html">关于我</a> | ||
</a> | ||
</div> | ||
|
||
<div id="user" style="display: {if empty($user)}none{/if};"> | ||
<label>{$user.username}</label> | ||
<div id="u_cnt"> | ||
<a target="_blank" data-label="查看总数" href="/mine?type=played">累积收听<span id="rec_played">5206</span>首</a> | ||
<a target="_blank" data-label="记录总数" href="/mine?type=played">累积收听<span id="rec_played">5206</span>首</a> | ||
<a target="_blank" data-label="关闭总数" href="/mine?type=played">累积收听<span id="rec_played">5206</span>首</a> | ||
</div> | ||
</div> | ||
|
||
<div id="anony" style="display: {if !empty($user)}none{/if};"> | ||
<a href="/login.php?back={$back}" onclick="s_ga_click('main_login');">登录</a> | ||
<a href="/reg.php?back={$back}" onclick="s_ga_click('main_reg');">现在注册</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//用户登录 | ||
function s_login_check() { | ||
var form, username, password; | ||
|
||
if (!( username = $('#username').val() )) { | ||
return $('#username').wrong(); | ||
} | ||
|
||
if (!( password = $('#password').val() )) { | ||
return $('#password').wrong('请输入您的登录密码'); | ||
} | ||
|
||
return true; | ||
} | ||
|
||
|
||
|
||
$(function() { | ||
$('#login_form').human(); | ||
$('#login_submit').on('click', s_login_check); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,3 @@ | ||
//检查用户的账号及昵称是否注册 | ||
function s_reg_has() { | ||
if ($('#rnickname').val() | ||
|| $('#rusername').val() | ||
) { | ||
//查看服务器是否已注册 | ||
$.getJSON('has.php', $("#reg_form").serialize(), function(ret) { | ||
if (ret.username) { | ||
return $('#rusername').wrong('您的账号已被注册'); | ||
} | ||
|
||
if (ret.nickname) { | ||
return $('#rusername').wrong('您的昵称已被注册'); | ||
} | ||
}); | ||
} | ||
} | ||
|
||
|
||
//提交用户注册信息 | ||
function s_reg_check() { | ||
|
||
if (!$('#rusername').val()) { | ||
return $('#rusername').wrong('您可以用邮箱或者手机号来登录'); | ||
} | ||
|
||
if (!$('#rpassword').val()) { | ||
return $('#rpassword').wrong('为了您账号的安全请输入密码'); | ||
} | ||
|
||
if (!$('#rnickname').val()) { | ||
return $('#rnickname').wrong(); | ||
} | ||
|
||
|
||
return true; | ||
} | ||
|
||
|
||
//用户登录 | ||
function s_login_check() { | ||
var form, username, password; | ||
|
||
if (!( username = $('#username').val() )) { | ||
return $('#username').wrong(); | ||
} | ||
|
||
if (!( password = $('#password').val() )) { | ||
return $('#password').wrong('请输入您的登录密码'); | ||
} | ||
|
||
return true; | ||
} | ||
|
||
|
||
|
||
$(function() { | ||
$('#reg_form').human(); | ||
$('#login_form').human(); | ||
|
||
$('#btn_nav_login').on('click', function() { | ||
$("#login_dialog").pop(); | ||
}); | ||
|
||
$('#login_submit').on('click', s_login_check); | ||
|
||
|
||
$('#btn_nav_reg').on('click', function() { | ||
$("#reg_dialog").pop(); | ||
}); | ||
|
||
$('#reg_submit').on('click', s_reg_check); | ||
|
||
//检查用户账号及用户昵称 | ||
$('#rusername').on('blur', s_reg_has); | ||
//$('#rnickname').on('blur', s_reg_has); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
//检查用户的账号及昵称是否注册 | ||
function s_reg_has() { | ||
if ($('#rnickname').val() | ||
|| $('#rusername').val() | ||
) { | ||
//查看服务器是否已注册 | ||
$.getJSON('has.php', $("#reg_form").serialize(), function(ret) { | ||
if (ret.username) { | ||
return $('#rusername').wrong('您的账号已被注册'); | ||
} | ||
|
||
if (ret.nickname) { | ||
return $('#rusername').wrong('您的昵称已被注册'); | ||
} | ||
}); | ||
} | ||
} | ||
|
||
|
||
//提交用户注册信息 | ||
function s_reg_check() { | ||
var ret = true; | ||
|
||
if (!$('#username').val()) { | ||
ret = $('#username').wrong('您可以用邮箱或者手机号来登录'); | ||
} | ||
|
||
if (!$('#password').val()) { | ||
ret = $('#password').wrong('请输入5位以上的密码'); | ||
} | ||
|
||
if (!$('#nickname').val()) { | ||
ret = $('#nickname').wrong(); | ||
} | ||
|
||
return ret; | ||
} | ||
|
||
$(function() { | ||
$('#reg_submit').on('click', s_reg_check); | ||
|
||
//检查用户账号及用户昵称 | ||
$('#username').on('blur', s_reg_has); | ||
$('#nickname').on('blur', s_reg_has); | ||
}); |
Oops, something went wrong.