2014年3月17日 星期一
2014年3月10日 星期一
lab8
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="password" id="examplePass" />
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function() {
//R
var passwordRegex = /^[\D]+[\W_]+[A-Za-z\d]{6,}$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if(notify === null) {
notify = document.createElement("p");
notify.textContent = "需大於6個位元,至少要有1個英文字母一個非英文字母."
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="password" id="examplePass" />
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function() {
//R
var passwordRegex = /^[\D]+[\W_]+[A-Za-z\d]{6,}$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if(notify === null) {
notify = document.createElement("p");
notify.textContent = "需大於6個位元,至少要有1個英文字母一個非英文字母."
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
lab7
html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="password" id="examplePass" />
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex = /^[A-Za-z\d]{6,8}$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if (notify === null ){
notify =document.createElement("p");
notify.textContent = "Passwords need to be between 6 and 8 charcters long and consist of uppercase characters,lowercase charcters, and digits only"
notify.id="notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="password" id="examplePass" />
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex = /^[A-Za-z\d]{6,8}$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if (notify === null ){
notify =document.createElement("p");
notify.textContent = "Passwords need to be between 6 and 8 charcters long and consist of uppercase characters,lowercase charcters, and digits only"
notify.id="notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2014年3月3日 星期一
lab4
中原
(1)網頁規模 1290000
(2)能見度 1109
(3)教學檔案 16400
(4)學術文件 11300
元智
(1)網頁規模 276000
(2)能見度 5
(3)教學檔案 14100
(4)學術文件 2210
台大
(1)網頁規模 817000
(2)能見度 39
(3)教學檔案 429000
(4)學術文件 269000
中正
(1)網頁規模 1420000
(2)能見度 9
(3)教學檔案 24500
(4)學術文件 9630
(1)網頁規模 1290000
(2)能見度 1109
(3)教學檔案 16400
(4)學術文件 11300
元智
(1)網頁規模 276000
(2)能見度 5
(3)教學檔案 14100
(4)學術文件 2210
台大
(1)網頁規模 817000
(2)能見度 39
(3)教學檔案 429000
(4)學術文件 269000
中正
(1)網頁規模 1420000
(2)能見度 9
(3)教學檔案 24500
(4)學術文件 9630
訂閱:
文章 (Atom)