<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input id="examplePass" type="text" />
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit =function() {
var passwordRegex = /^[\d]*[.]*[\d]*[.]*[\d]*[.]*[\d]|*\w{1,}*[.]*\w{1,}*[.]*\w{1,}*[.]*(\w{1,})$/;
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 = "not 正確的。"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2014年3月17日 星期一
lab 12
<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 = "not 正確的。"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
lab11
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="text" id="examplePass" />
<input type="submit" />
</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 = "not 整數 or 小數 逗號 整數或小數。"
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 = "not 整數 or 小數。"
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2014年3月10日 星期一
Lab 8 Using browsers for programming II
<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 >= 6 characters long and a 小寫英文與非字母 排序第一個為字母第二個為符號."
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
Lab 7 Using browsers for programming
<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 = /^[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 = "Passwords need to be between 6 and 8 characters long and consist of uppercase characters,lowercase characters, and digits only."
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2014年3月9日 星期日
homework Amy Cuddy: Your body language shapes who you are
今天我看的是"Amy Cuddy: Your body language shapes who you are"
在她的演講之中我覺得最重要的就是"Fake it 'til you become it"
假裝你是直到你真的是。當你成績很差可是很努力考上一間很好的學校的時候,你可能會覺得我不配在這間學校,
但是就算這樣想也要"假裝"你真的在這間學校你很有power很有能力。持續的做直到她化到你骨子裡。
很小的動作也可能會影響你的一生,在面試等等之前做一個假裝你很有權勢的動作兩分鐘,或許在你面試當中你會真的變成那樣。
現在之後我想每天做一次她提供的意見。"tiny tweaks>big change" 小調整 大改變,
這句真的可能會改變你得一生
2014年3月3日 星期一
Using Chrome
cycu前3名:
1.http://s10026205.blogspot.tw/2014/03/using-chrome.html
2 m13.jpg
3 m10.jpg
youtube前3名:
1engagement_wizard_ajax?feature=ew
2 mq1.jpg
3.photo.jpg
udacity前3名:
1.seg?add=789705&t=2
2.fonts.css
3/pxj?bidder=172&seg=8027
破解網路大學排名DIY
網頁數
google yahoo score
cycu(中原) (1,320,000+79,500) = 279900
yzu(元智) (1,030,000+61,000) = 218200
ccu(中正) (1,430,000+91,500) = 304300
ntu(台大) (31,500,000+528,000) = 6405600
link
cycu 5,033 = 2516.5
yzu 4208 = 2104
ccu 9858 = 4929
ntu 32664 = 16332
檔案數
cycu filetype:pdf 16,200 = 2430
yzu filetype:pdf 14,000 =2800
ccu filetype:pdf 29,500 =5900
ntu filetype:pdf 427,000 =85400
Google Scholar
cycu 11400 =1710
yzu 2210 =331.5
ccu 9530 =1429.5
ntu 266000 =39900
summary
cycu 279900+2516.5+2430+1710 =286556.5
yzu 278200+2104+2800+331.5 =283435.5
ccu 304300+4929+5900+1429.5 =316558.5
ntu 6405600+85400+39900+16332=6547232
so
ntu>ccu>cycu>yzu
訂閱:
文章 (Atom)