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>
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>
2014年3月3日 星期一
lab6
中原CYCU: 1).newsbox.jsp
2).runinfo.jsp
3).cse.js?cx=006671915706355032179:lepk4kd-ype
Youtube: 1).cb=gapi.loaded_0
2).photo.jpg
3).cb=gapi.loaded_1
Udacity: 1).fonts.css
2).udacity.min.js?4353f3facd4c92187fd07d419bgddaca6
3).seg?add=789705&t=2
2).runinfo.jsp
3).cse.js?cx=006671915706355032179:lepk4kd-ype
Youtube: 1).cb=gapi.loaded_0
2).photo.jpg
3).cb=gapi.loaded_1
Udacity: 1).fonts.css
2).udacity.min.js?4353f3facd4c92187fd07d419bgddaca6
3).seg?add=789705&t=2
lab4
谷歌 雅虎 谷歌
中原
size=(3,200,000+220,000)*0.2 + 5033*0.5 + 112,000*0.15 + 11,500*0.15 =705041.5
元智yzu
size=(4,910,000+308,000)*0.2 + 4208*0.5 + 127,000*0.15 + 5840*0.15 =1065630
中正ccu
size=(6,830,000+220,000)*0.2 + 9858*0.5 + 239,000*0.15 + 18500*0.15 =1453554
台大ntu
size=(61,400,000+840,000)*0.2 + 32664*0.5 + 1,890,000*0.15 + 62700*0.15 =1705237
所以 -> 台大ntu > 中正ccu > 元智yzu > 中原cycu
中原
size=(3,200,000+220,000)*0.2 + 5033*0.5 + 112,000*0.15 + 11,500*0.15 =705041.5
元智yzu
size=(4,910,000+308,000)*0.2 + 4208*0.5 + 127,000*0.15 + 5840*0.15 =1065630
中正ccu
size=(6,830,000+220,000)*0.2 + 9858*0.5 + 239,000*0.15 + 18500*0.15 =1453554
台大ntu
size=(61,400,000+840,000)*0.2 + 32664*0.5 + 1,890,000*0.15 + 62700*0.15 =1705237
所以 -> 台大ntu > 中正ccu > 元智yzu > 中原cycu
訂閱:
文章 (Atom)