Skip to content

Commit

Permalink
Final Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DucHung59 committed Apr 11, 2024
1 parent f4abda2 commit fed113c
Show file tree
Hide file tree
Showing 16 changed files with 210 additions and 210 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/BTL_Web_DictionaryOnline/v17/.suo
Binary file not shown.
346 changes: 149 additions & 197 deletions .vs/BTL_Web_DictionaryOnline/v17/DocumentLayout.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion BTL_Web_DictionaryOnline/App_Data/userAccounts/db.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"Name":"Admin","Username":"admin","Password":"admin"},{"Name":"Duc Hung","Username":"hung","Password":"1"},{"Name":"Vu Ha","Username":"ha","Password":"2"},{"Name":"Tien Khoi","Username":"khoi","Password":"3"}]
[{"Name":"Admin","Username":"admin","Password":"admin"},{"Name":"Duc Hung","Username":"hung","Password":"1"},{"Name":"Vu Ha","Username":"ha","Password":"2"},{"Name":"Tien Khoi","Username":"khoi","Password":"3"},{"Name":"Hung5923","Username":"1","Password":"1"}]
6 changes: 3 additions & 3 deletions BTL_Web_DictionaryOnline/MainLayout.Master
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
<h3 class="footer__heading">Dictionary ECOSYSTEM</h3>
<ul class="footer-list">
<li class="footer-item">
<a href="" class="footer-item__link"> Dictionary Grammar </a>
<a href="" class="footer-item__link">Dictionary Grammar </a>
</li>
<li class="footer-item">
<a href="" class="footer-item__link"> Dictionary Tự học </a>
<a href="https://dictionary.cambridge.org/" class="footer-item__link">Dictionary Tự học </a>
</li>
<li class="footer-item">
<a href="" class="footer-item__link"> Kiến thức IELTS tổng hợp </a>
<a href="https://www.toeicmoingay.com/" class="footer-item__link">Kiến thức TOEIC tổng hợp </a>
</li>
</ul>
</div>
Expand Down
2 changes: 2 additions & 0 deletions BTL_Web_DictionaryOnline/css/loginStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ h4 {

.input-group:focus {
outline: none;
background: red;
color: white;
}

.btn-group {
Expand Down
46 changes: 44 additions & 2 deletions BTL_Web_DictionaryOnline/js/loginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function checkLength(input, err, leng) {
}
}


var checkSignup = () => {
let name = document.getElementById('name').value.trim();
let user = document.getElementById('user').value.trim();
Expand All @@ -18,7 +17,7 @@ var checkSignup = () => {
let checkPass = document.getElementById('checkPass');

if (name == "") {
checkYourName.innerText = 'không được để trống!';
err.push( 'không được để trống!');
} else {
checkLength(name, checkYourName, 15);
}
Expand All @@ -39,6 +38,49 @@ var checkSignup = () => {
return false;
};


/*var checkSignup = () => {
let name = document.getElementById('name').value.trim();
let user = document.getElementById('user').value.trim();
let pass = document.getElementById('pass').value.trim();
let checkYourName = document.getElementById('checkYourName');
let checkUserName = document.getElementById('checkUserName');
let checkPass = document.getElementById('checkPass');
let err = [];
if (name == "") {
err.push('không được để trống!');
} else {
checkLength(name, checkYourName, 15);
}
if (user == "") {
err.push('không được để trống!');
} else {
checkLength(user, checkUserName, 8);
}
if (pass == "") {
err.push('không được để trống!');
} else {
checkLength(pass, checkPass, 8);
}
if (err.length > 0) {
var errSum = document.getElementById('errorSummary');
var errList = document.getElementById('errList');
errList.innerHTML = "";
err.forEach((err) => {
var li = document.createElement('li');
li.textContent = err;
errList.appendChild(li);
})
errSum.style.display = 'block';
return false
}
return true;
}*/

var checkLogin = () => {
let user = document.getElementById('username').value.trim();
let pass = document.getElementById('password').value.trim();
Expand Down
6 changes: 3 additions & 3 deletions BTL_Web_DictionaryOnline/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h3 class="footer__heading">Dictionary Online</h3>
<h3 class="footer__heading">Theo dõi chúng tôi</h3>
<ul class="footer-list">
<li class="footer-item">
<a href="https://www.youtube.com/" class="footer-item__link">
<a href="" class="footer-item__link">
<i class="footer-icon fa-brands fa-facebook"></i>
Facebock
</a>
Expand All @@ -84,10 +84,10 @@ <h3 class="footer__heading">Dictionary ECOSYSTEM</h3>
<a href="" class="footer-item__link"> Dictionary Grammar </a>
</li>
<li class="footer-item">
<a href="" class="footer-item__link"> Dictionary Tự học </a>
<a href="https://dictionary.cambridge.org/" class="footer-item__link"> Dictionary Tự học </a>
</li>
<li class="footer-item">
<a href="" class="footer-item__link"> Kiến thức IELTS tổng hợp </a>
<a href="https://www.toeicmoingay.com/" class="footer-item__link"> Kiến thức TOEIC tổng hợp </a>
</li>
</ul>
</div>
Expand Down
12 changes: 8 additions & 4 deletions BTL_Web_DictionaryOnline/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
</nav>

<div style="display: flex; margin-bottom: 90px;">
<div style="display: flex; margin-bottom: 90px">
<div class="container">
<form action="signup.aspx" method="post" class="signup" onsubmit="return checkSignup()">
<h4>Sign up</h4>
Expand All @@ -32,7 +32,11 @@ <h4>Sign up</h4>
<div id="checkUserName" class="check" name="checkUserName"></div>
<input type="password" id="pass" name="pass" class="login-group input-group" placeholder="Password..." />
<div id="checkPass" class="check" name="checkPass"></div>
<button type="submit" class="login-group btn-group" id="btnSignup">Sign Up</button>
<button type="submit" class="login-group btn-group" id="btnSignup" >Sign Up</button>
<details id="errorSummary" style="color:red; font-size: 12px; display:none">
<summary>Cảnh báo: </summary>
<ul id="errList"></ul>
</details>
<div class="vertical-bar"></div>
<span id="Login"><a href="login.html">Have an account?</a></span>
</form>
Expand Down Expand Up @@ -87,10 +91,10 @@ <h3 class="footer__heading">Dictionary ECOSYSTEM</h3>
<a href="" class="footer-item__link"> Dictionary Grammar </a>
</li>
<li class="footer-item">
<a href="" class="footer-item__link"> Dictionary Tự học </a>
<a href="https://dictionary.cambridge.org/" class="footer-item__link"> Dictionary Tự học </a>
</li>
<li class="footer-item">
<a href="" class="footer-item__link"> Kiến thức IELTS tổng hợp </a>
<a href="https://www.toeicmoingay.com/" class="footer-item__link"> Kiến thức TOEIC tổng hợp </a>
</li>
</ul>
</div>
Expand Down

0 comments on commit fed113c

Please sign in to comment.