程式碼
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input id="examplePass" type="text" />
<input type="submit" />
</form>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$/;
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 = "請輸入正確的網址";
notify.id ="notify";
var body =document.getElementById("exampleForm");
body.appendChild(notify);
}
}
};
</script>
2014年3月17日 星期一
lab13
程式碼
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input id="examplePass" type="text" />
<input type="submit" />
</form>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$/;
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 = "請輸入正確的網址";
notify.id ="notify";
var body =document.getElementById("exampleForm");
body.appendChild(notify);
}
}
};
</script>
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input id="examplePass" type="text" />
<input type="submit" />
</form>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$/;
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 = "請輸入正確的網址";
notify.id ="notify";
var body =document.getElementById("exampleForm");
body.appendChild(notify);
}
}
};
</script>
lab12
<html>
<title>lab12</title>
<body>
<form action="http://maps.google.com/maps" method="get" name="f" onsubmit="return check()">
<input name="q" type="text" /><br />
<input name="send" type="submit" value="search" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit =function() {
var passwordRegex = /^[-|+]*[\d]*[.|\d][\d]*[,][-|+]*[\d]*[.|\d][\d]*$/;
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 = "你不是正確的"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
<title>lab12</title>
<body>
<form action="http://maps.google.com/maps" method="get" name="f" onsubmit="return check()">
<input name="q" type="text" /><br />
<input name="send" type="submit" value="search" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit =function() {
var passwordRegex = /^[-|+]*[\d]*[.|\d][\d]*[,][-|+]*[\d]*[.|\d][\d]*$/;
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 = "你不是正確的"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
lab12
<html>
<title>lab12</title>
<body>
<form action="http://maps.google.com/maps" method="get" name="f" onsubmit="return check()">
<input name="q" type="text" /><br />
<input name="send" type="submit" value="search" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit =function() {
var passwordRegex = /^[-|+]*[\d]*[.|\d][\d]*[,][-|+]*[\d]*[.|\d][\d]*$/;
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 = "你不是正確的"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
<title>lab12</title>
<body>
<form action="http://maps.google.com/maps" method="get" name="f" onsubmit="return check()">
<input name="q" type="text" /><br />
<input name="send" type="submit" value="search" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit =function() {
var passwordRegex = /^[-|+]*[\d]*[.|\d][\d]*[,][-|+]*[\d]*[.|\d][\d]*$/;
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 = "你不是正確的"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
Lab10
程式碼
<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 = /^[-]*[\d]*[.][\d]*$/;
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 = "你不是整數或小數。"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
Lab10
程式碼
<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 = /^[-]*[\d]*[.][\d]*$/;
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 = "你不是整數或小數。"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2014年3月10日 星期一
Lab8
Lab8
密碼按錯,下面出現didn't match
密碼按對
程式碼
<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]{4,}$/;
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 at least 6位元 第一位元須為數任意字母 第二須為符號 "
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
密碼按錯,下面出現didn't match
密碼按對
程式碼
<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]{4,}$/;
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 at least 6位元 第一位元須為數任意字母 第二須為符號 "
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
lab7
lab7
程式碼
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="passord" id="examplePass"/>
<input type="submit /">
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit=function(){
var passwordRegex=/^[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.textCintent = "Passwords at least 6
characters long and consist of uppercase character, lowercase
characters,and digits only."
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
程式碼
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="passord" id="examplePass"/>
<input type="submit /">
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit=function(){
var passwordRegex=/^[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.textCintent = "Passwords at least 6
characters long and consist of uppercase character, lowercase
characters,and digits only."
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2014年3月9日 星期日
Homework
Boby Language
原本一開始,我以為只是單純的解說Boby Language,沒想到最後居然是有關姿勢,讓我相當吃驚,一直以來都沒發現原來姿勢可以改變一個人如此的大。讓我很信服她的原因是,這姿勢是有做過實驗的,看完這段影片,讓我想到之前面試的經歷,我總是自己一個縮在椅子上,苦苦想著等等要如何應對,等等該如何回答,沒想到小小一個姿勢居然是讓我變得更加緊張擔心,我想下次再面對面試,報告,或是要面對人時,我會借用這個方法,讓自己成功。
另外他還說到"假裝"這件事情,我覺得很有趣,看著影片我自己都笑了,原來要當你很緊張時,或是不敢面對時,都要假裝自己很行,自己可以應付,等到真正成功時,那份假裝就會卸掉,因為你已經融入在假裝裡面了。
原本一開始,我以為只是單純的解說Boby Language,沒想到最後居然是有關姿勢,讓我相當吃驚,一直以來都沒發現原來姿勢可以改變一個人如此的大。讓我很信服她的原因是,這姿勢是有做過實驗的,看完這段影片,讓我想到之前面試的經歷,我總是自己一個縮在椅子上,苦苦想著等等要如何應對,等等該如何回答,沒想到小小一個姿勢居然是讓我變得更加緊張擔心,我想下次再面對面試,報告,或是要面對人時,我會借用這個方法,讓自己成功。
另外他還說到"假裝"這件事情,我覺得很有趣,看著影片我自己都笑了,原來要當你很緊張時,或是不敢面對時,都要假裝自己很行,自己可以應付,等到真正成功時,那份假裝就會卸掉,因為你已經融入在假裝裡面了。
2014年3月3日 星期一
LAB6
中元前三名
major_L02.jpg
major_L03.png
footer.css
Youtube前三名
mqdefault.jpg
1.jpg
mqdefault.jpg
udacity前三名
seg?add=789705&t=2
major_L02.jpg
major_L03.png
footer.css
Youtube前三名
mqdefault.jpg
1.jpg
mqdefault.jpg
udacity前三名
seg?add=789705&t=2
secure.adnxs.com
pxj?bidder=172&seg=802787&action=setuid(%27YzNkNjY4MTkyZTUzMjYzN2VmMzIyNTY4MDg1ZmM4MWY%27)
ib.adnxs.com
partner-nvidia.png
LAB4
size score
中原(1320000+79500)20% 279900
元智(1030000+61000)20% 218200
台大(31500000+528000) 20% 6405600
中正(1430000+91500) 20% 304300
visibility
中原5033 50 % 2516.5
元智4208 50 % 2104
台大32664 50 % 16332
中正9858 50 % 4929
rich files
中原16300 15 % 2430
元智12700 15 % 2800
台大429000 15 % 85400
中正29300 15 % 5900
google scholar
中原11400 15 % 1710
元智2210 15 % 330.5
台大266000 15 % 39900
中正9530 15 % 1429.5
加總
中原 286556.5
元智 283435.5
台大 6547232
中正 316558.5
台大>中正>中原>元智
訂閱:
文章 (Atom)