2014年3月22日 星期六
2014年3月10日 星期一
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()
{
var passwordRegex = /^[A-Za-z\d]{6,8}$/;
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月3日 星期一
Lab 6:Using Chrome
一.www.cycu.edu.tw
1.cycu_honer.jpg2.newsbox.jsp
3.runinfo.jsp
二.www.youtube.com
1.http://www.youtube.com/2.http://csi.gstatic.com/csi?v=2&s=youtube&action=gli&pt=951&e=912307,939935,916625,934227,937417,937416,913434,936910,936913,902907,3300026,3300113,3300133,3300137,3300161,3310366,3310629,3310646&yt_lt=cold&yt_li=1&yt_spf=0&ei=oXcUU4fGFof2mAWQg4CgBA&srt=843&rt=ce.258,cl.259,bf.311,hr.335,je.446,jl.449,ol.668,aft.668&it=st.507,req_.730,rcv_.31
3.http://www.youtube.com/v/r1W3cXrWg5s?autoplay=0&version=3&showinfo=0&fs=1&rel=0&autohide=1&iv%5Fload%5Fpolicy=1&cc%5Fload%5Fpolicy=0&modestbranding=1&theme=dark&color=red&adformat=1%5F8
三.www.udacity.com
1.https://www.udacity.com/media/js/udacity/udacity.min.js?4353f3facd4c92187fd07d419bddaca6 2.https://ib.adnxs.com/pxbidder=172&seg=802787&action=setuid(%27MTI3ZmUxZDAwMDE2YmQwMDFjNGU3OGJmMjRiOTIzM2E%27)3.B784D162680968198.css
訂閱:
文章 (Atom)