<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>
最新留言
Loading...
最新留言
Loading...
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 = "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
訂閱:
文章 (Atom)