2014年6月16日 星期一
2014年6月9日 星期一
lab12
<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*$/;
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 = " ERROR ";
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="text" id="examplePass" />
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit =function() {
var passwordRegex = /^[+-]?\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 = " ERROR ";
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
lab19
<html>
<body>
<form name="find" action="http://google.com/search" method="get">
find:<input type="text" name="q" value=""><br>
<input type="submit" value="search">
</body>
</html>
<body>
<form name="find" action="http://google.com/search" method="get">
find:<input type="text" name="q" value=""><br>
<input type="submit" value="search">
</body>
</html>
lab18
<img border="0" src="http://www.google.com.tw/imgres?imgurl=http://upload.wikimedia.org/wikipedia/zh/2/22/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2.jpg&imgrefurl=http://zh.wikipedia.org/wiki/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2&h=267&w=189&tbnid=Ur-NOVibOla8SM:&zoom=1&tbnh=186&tbnw=131&usg=__VyasXC4u0I8XinqvFmBQlkmcVzo=&docid=qO2KgAtB18z_4M&itg=1&sa=X&ei=YK6VU8f5FMGIkQXhhICYDQ&ved=0CJ4BEPwdMA0" height="228" onmouseout="src='http://www.google.com.tw/imgres?imgurl=http://upload.wikimedia.org/wikipedia/zh/2/22/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2.jpg&imgrefurl=http://zh.wikipedia.org/wiki/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2&h=267&w=189&tbnid=Ur-NOVibOla8SM:&zoom=1&tbnh=186&tbnw=131&usg=__VyasXC4u0I8XinqvFmBQlkmcVzo=&docid=qO2KgAtB18z_4M&itg=1&sa=X&ei=YK6VU8f5FMGIkQXhhICYDQ&ved=0CJ4BEPwdMA0'" onmouseover="src='http://www.google.com.tw/imgres?imgurl=http://upload.wikimedia.org/wikipedia/zh/2/22/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2.jpg&imgrefurl=http://zh.wikipedia.org/wiki/%25E8%259C%2598%25E8%259B%259B%25E4%25BA%25BA2&h=267&w=189&tbnid=Ur-NOVibOla8SM:&zoom=1&tbnh=186&tbnw=131&usg=__VyasXC4u0I8XinqvFmBQlkmcVzo=&docid=qO2KgAtB18z_4M&itg=1&sa=X&ei=YK6VU8f5FMGIkQXhhICYDQ&ved=0CJ4BEPwdMA0'" width="304" alt="This is a picture, it will change itself when you point it by your mouse." />
2014年5月26日 星期一
lab33
Results of Group A
Brazil versus Scotland
Played on 10-Jun-1998
Result: Brazil2 , Scotland1
Morocco versus Norway
Played on 10-Jun-1998
Result: Morocco2 , Norway2
Scotland versus Norway
Played on 16-Jun-1998
Result: Scotland1 , Norway1
Brazil versus Morocco
Played on 16-Jun-1998
Result: Brazil3 , Morocco0
Brazil versus Norway
Played on 23-Jun-1998
Result: Brazil1 , Norway2
Scotland versus Morocco
Played on 23-Jun-1998
Result: Scotland0 , Morocco3
2014年5月19日 星期一
2014年5月12日 星期一
2014年5月5日 星期一
2014年4月14日 星期一
2014年4月7日 星期一
2014年3月17日 星期一
LAB11
<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*[,][+-]?\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
<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 = "Passwords need to >= 6 characters long and a 小寫英文與非字母 排序第一個是字母第二個是非字母."
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 = "Passwords need to >= 6 characters long and a 小寫英文與非字母 排序第一個是字母第二個是非字母."
notify.id = "notify";
var body = document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2014年3月3日 星期一
Lab 4:破解網路大學排名DIY
網頁數:
google yahoo search 中原cycu (1,340,000+79,500) = 289900
元智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
google yahoo search 中原cycu (1,340,000+79,500) = 289900
元智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
Lab 6:Using Chrome
CYCU:
1.btn6_1.gif
2.btn10_1.gif
3.btn10_1.gif
YOUTUBE:
1.watchtime?cc=-&el=embedded&fmt=160&et=15.032&ldpj=-23&len=32.8&euri=https%3A%2F%2Fwww.youtube.com%2F&rt=27.121&fs=0&state=paused&hl=en_US&st=15.032&plid=AATzsw364vVHLhdb&cpn=BfsuUgPY-KFrP7JP&autoplay=1&idpj=-4&cver=as3&docid=r1W3cXrWg5s&ei=mncUU4XtAsbEkwXy7ICgAQ&ns=yt&ver=2&cmt=15.032&fexp=930005,935705,921907,916807,914087,942205,937417,937416,913434,936910,936913,902907,3300061,3300116,3300134,3300137,3300161,3310366,3310626,3310649&c=web&rtn=47&rti=26
s.youtube.com/api/stats
2.watchtime?cc=-&el=embedded&fmt=160&et=15.032&ldpj=-23&len=32.8&euri=https%3A%2F%2Fwww.youtube.com%2F&rt=27.121&fs=0&state=paused&hl=en_US&st=15.032&plid=AATzsw364vVHLhdb&cpn=BfsuUgPY-KFrP7JP&autoplay=1&idpj=-4&cver=as3&docid=r1W3cXrWg5s&ei=mncUU4XtAsbEkwXy7ICgAQ&ns=yt&ver=2&cmt=15.032&fexp=930005,935705,921907,916807,914087,942205,937417,937416,913434,936910,936913,902907,3300061,3300116,3300134,3300137,3300161,3310366,3310626,3310649&c=web&rtn=47&rti=26
s.youtube.com/api/stats
3.watchtime?cc=-&el=embedded&fmt=160&et=15.032&ldpj=-23&len=32.8&euri=https%3A%2F%2Fwww.youtube.com%2F&rt=27.121&fs=0&state=paused&hl=en_US&st=15.032&plid=AATzsw364vVHLhdb&cpn=BfsuUgPY-KFrP7JP&autoplay=1&idpj=-4&cver=as3&docid=r1W3cXrWg5s&ei=mncUU4XtAsbEkwXy7ICgAQ&ns=yt&ver=2&cmt=15.032&fexp=930005,935705,921907,916807,914087,942205,937417,937416,913434,936910,936913,902907,3300061,3300116,3300134,3300137,3300161,3310366,3310626,3310649&c=web&rtn=47&rti=26
s.youtube.com/api/stats
www.udacity.com:
1.https://secure.adnxs.com/bounce?%2Fseg%3Fadd%3D789705%26t%3D2
2.pxj?bidder=172&seg=802787&action=setuid(%27ZGUwOTVmYjQ0MWFhZDViNmE5ZWQ2OWQzYzBhNmY0ZTI%27)
ib.adnxs.com
3.adsct?p_user_id=ZGUwOTVmYjQ0MWFhZDViNmE5ZWQ2OWQzYzBhNmY0ZTI&p_id=823423
analytics.twitter.com/i
2014年2月24日 星期一
訂閱:
文章 (Atom)