Team:TU-Delft/SynBioData

From 2013.igem.org

(Difference between revisions)
Line 4: Line 4:
{{:Team:TU-Delft/Templates/Logo}}
{{:Team:TU-Delft/Templates/Logo}}
-
 
-
<!DOCTYPE HTML>
 
<html>
<html>
-
<head>
 
-
<script type="text/javascript">
 
-
var db = openDatabase('mydb', '1.0', 'Test DB', 2 * 1024 * 1024);
 
-
var msg;
 
-
db.transaction(function (tx) {
 
-
  tx.executeSql('CREATE TABLE IF NOT EXISTS LOGS (id unique, log)');
 
-
  tx.executeSql('INSERT INTO LOGS (id, log) VALUES (1, "foobar")');
 
-
  tx.executeSql('INSERT INTO LOGS (id, log) VALUES (2, "logmsg")');
 
-
  msg = '<p>Log message created and row inserted.</p>';
 
-
  document.querySelector('#status').innerHTML =  msg;
 
-
});
 
-
db.transaction(function (tx) {
+
<table width="100%">
-
  tx.executeSql('SELECT * FROM LOGS', [], function (tx, results) {
+
<tr>
-
  var len = results.rows.length, i;
+
<td>
-
  msg = "<p>Found rows: " + len + "</p>";
+
 
-
  document.querySelector('#status').innerHTML +=  msg;
+
<div style="width:300px;border:1px solid #c0c0c0;text-align:center; padding:15px;background-color:#f0f0f0;">
-
  for (i = 0; i < len; i++){
+
<b>First Semester Result Published</b><br/><br/>
-
    msg = "<p><b>" + results.rows.item(i).log + "</b></p>";
+
Roll No: <input type="text" id="rollNum" onKeyUp="checkEnter(event.keyCode)"> &nbsp;
-
    document.querySelector('#status').innerHTML += msg;
+
<input type="button" value="Show" onClick="showModalWindow(document.getElementById('rollNum').value)">
 +
</div>
 +
<br/><br/>
 +
 
 +
<iframe id="iframeResDis" width="100%" frameborder="0" style="border:none; height:100px;display:none;"></iframe>
 +
dd
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
 
 +
<script language="JavaScript">
 +
 
 +
  var data;
 +
  function showModalWindow(data)
 +
  {
 +
      var url1="https://docs.google.com/spreadsheet/pub?key=0ArsDNt8sj-LBdEdCREdxUTFmVXpPaTVnZm43d0RTdmc&single=true&gid=0&output=html";
 +
      document.getElementById('iframeResDis').style.display="block";
 +
      document.getElementById('iframeResDis').src=url1;
   }
   }
-
}, null);
+
function checkEnter(code){
-
});
+
if(code==13){
-
</script>
+
showModalWindow(document.getElementById('Title').value);
-
</head>
+
}
-
<body>
+
}
-
<div id="status" name="status">Status Message</div>
+
  </script>
-
</body>
+
</html>
</html>

Revision as of 11:01, 2 September 2013

First Semester Result Published

Roll No:  


dd