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 ="您的長度必須有6個字元長,必須包含一個數字和一個英文字母寬 "
     notify.id = "notify";
   
     var body = document.getElementById("body");
     body.appendChild(notify);
 </html>
   }
  }
 };
      </script>

lab9


lab7



2014年3月3日 星期一

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

Lab4

WR=0.2×Rank(S)+0.5×Rank(V)+0.15×Rank(R)+0.15×Rank(Sc)
中原cycu
 (3,200,000+224,000)*0.2+5033*0.5+112,000*0.15+11,500*0.15=705041.5
中正ccu
( 6,830,000+225,000)*0.2+9858*0.5+239,000*0.15+18,500*0.15=1453554
台大ntu
 (61,400,000+840,000)*0.2+32664*0.5 +1890000*0.15+62700*0.15=1705237
元智yzu
 ( 4,910,000+183,000)*0.2+4208*0.5+127,000*0.15+ 5,840*0.15=1065630
所以    台大>中正>元智>中原