Team:Calgary/VGSandbox

From 2012.igem.org

(Difference between revisions)
 
(22 intermediate revisions not shown)
Line 1: Line 1:
-
<html>
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
<body>
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-
 
+
<head>
-
 
+
<title>iGEMGameV1_1</title>
-
 
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<script language="JavaScript">
+
<style type="text/css" media="screen">
-
<!--
+
html, body { height:100%; background-color: #ffffff;}
-
// 4-digit Chmod calculator
+
body { margin:0; padding:0; overflow:hidden; }
-
// Based on code by Peter Crouch 2000. All rights reserved.
+
#flashContent { width:100%; height:100%; }
-
// Modified 2001 to 4-digit by William E. Landfair-Owens
+
</style>
-
// http://welo.ikemail.com
+
</head>
-
// Visit http://javascriptkit.com for this script and more
+
<body>
-
 
+
<div id="flashContent">
-
function calculator(user, number){
+
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480" id="iGEMGameV1_1" align="middle">
-
// Superuser
+
<param name="movie" value="iGEMGameV1_1.swf" />
-
if (user == "superuser" && number == "4"){var box = eval("document.chmod.superuser4")}
+
<param name="quality" value="high" />
-
if (user == "superuser" && number == "2"){var box = eval("document.chmod.superuser2")}
+
<param name="bgcolor" value="#ffffff" />
-
if (user == "superuser" && number == "1"){var box = eval("document.chmod.superuser1")}
+
<param name="play" value="true" />
-
// Owner
+
<param name="loop" value="true" />
-
if (user == "owner" && number == "4"){var box = eval("document.chmod.owner4")}
+
<param name="wmode" value="window" />
-
if (user == "owner" && number == "2"){var box = eval("document.chmod.owner2")}
+
<param name="scale" value="showall" />
-
if (user == "owner" && number == "1"){var box = eval("document.chmod.owner1")}
+
<param name="menu" value="true" />
-
// Group
+
<param name="devicefont" value="false" />
-
if (user == "group" && number == "4"){var box = eval("document.chmod.group4")}
+
<param name="salign" value="" />
-
if (user == "group" && number == "2"){var box = eval("document.chmod.group2")}
+
<param name="allowScriptAccess" value="sameDomain" />
-
if (user == "group" && number == "1"){var box = eval("document.chmod.group1")}
+
<!--[if !IE]>-->
-
// Other
+
<object type="application/x-shockwave-flash" data="iGEMGameV1_1.swf" width="640" height="480">
-
if (user == "other" && number == "4"){var box = eval("document.chmod.other4")}
+
<param name="movie" value="iGEMGameV1_1.swf" />
-
if (user == "other" && number == "2"){var box = eval("document.chmod.other2")}
+
<param name="quality" value="high" />
-
if (user == "other" && number == "1"){var box = eval("document.chmod.other1")}
+
<param name="bgcolor" value="#ffffff" />
-
if (box.checked == true){
+
<param name="play" value="true" />
-
if (user == "superuser"){
+
<param name="loop" value="true" />
-
document.chmod.h_superuser.value += ("+number")
+
<param name="wmode" value="window" />
-
var a= (document.chmod.h_superuser.value)
+
<param name="scale" value="showall" />
-
var b= eval(a)
+
<param name="menu" value="true" />
-
document.chmod.h_superuser.value=b
+
<param name="devicefont" value="false" />
-
document.chmod.t_superuser.value=b
+
<param name="salign" value="" />
-
}if (user == "owner"){
+
<param name="allowScriptAccess" value="sameDomain" />
-
document.chmod.h_owner.value += ("+number")
+
<!--<![endif]-->
-
var a= (document.chmod.h_owner.value)
+
<a href="http://www.adobe.com/go/getflash">
-
var b= eval(a)
+
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
-
document.chmod.h_owner.value=b
+
</a>
-
document.chmod.t_owner.value=b
+
<!--[if !IE]>-->
-
}if (user == "group"){
+
</object>
-
document.chmod.h_group.value += ("+number")
+
<!--<![endif]-->
-
var a= (document.chmod.h_group.value)
+
</object>
-
var b= eval(a)
+
</div>
-
document.chmod.h_group.value=b
+
</body>
-
document.chmod.t_group.value=b
+
-
}if (user == "other"){
+
-
document.chmod.h_other.value += ("+number")
+
-
var a= (document.chmod.h_other.value)
+
-
var b= eval(a)
+
-
document.chmod.h_other.value=b
+
-
document.chmod.t_other.value=b
+
-
}
+
-
}
+
-
if (box.checked == false){
+
-
if (user == "superuser"){
+
-
if (document.chmod.h_superuser.value == ""){
+
-
document.chmod.t_superuser.value=""
+
-
}else {
+
-
var a=(document.chmod.h_superuser.value);
+
-
b=a-(number);
+
-
c=eval(b);
+
-
document.chmod.h_superuser.value=c
+
-
document.chmod.t_superuser.value=c
+
-
}}if (user == "owner"){
+
-
if (document.chmod.h_owner.value == ""){
+
-
document.chmod.t_owner.value=""
+
-
}else {
+
-
var a=(document.chmod.h_owner.value);
+
-
b=a-(number);
+
-
c=eval(b);
+
-
document.chmod.h_owner.value=c
+
-
document.chmod.t_owner.value=c
+
-
}}if (user == "group"){
+
-
if (document.chmod.h_group.value == ""){
+
-
document.chmod.t_group.value=""
+
-
}else {
+
-
var a=(document.chmod.h_group.value);
+
-
b=a-(number);
+
-
c=eval(b);
+
-
document.chmod.h_group.value=c
+
-
document.chmod.t_group.value=c
+
-
}}if (user == "other"){
+
-
if (document.chmod.h_other.value == ""){
+
-
document.chmod.t_other.value=""
+
-
}else {
+
-
var a=(document.chmod.h_other.value);
+
-
b=a-(number);
+
-
c=eval(b);
+
-
document.chmod.h_other.value=c
+
-
document.chmod.t_other.value=c
+
-
}}
+
-
}}
+
-
// -->
+
-
</script>
+
-
<form name="chmod">
+
-
<input name="h_superuser" type="hidden"><input name="h_owner" type="hidden"><input name="h_group" type="hidden"><input name="h_other" type="hidden">
+
-
<table bgcolor="black" cellpadding="5" cellspacing="1">
+
-
<tr bgcolor="white">
+
-
<td colspan="6">
+
-
<center>
+
-
<font face="Verdana" size="3"><b>4-digit Chmod</b></font></center>
+
-
</td>
+
-
</tr>
+
-
<tr bgcolor="white" align="center">
+
-
<td colspan="2"><font face="Verdana" size="2"><b>Superuser</b></font></td>
+
-
<td><font face="Verdana" size="2"><b>Permission</b></font></td>
+
-
<td><font face="Verdana" size="2"><b>Owner</b></font></td>
+
-
<td><font face="Verdana" size="2"><b>Group</b></font></td>
+
-
<td><font face="Verdana" size="2"><b>Other</b></font></td>
+
-
</tr>
+
-
<tr bgcolor="white" align="center">
+
-
<td><font face="Verdana" size="2"><b>setuid</b></font></td>
+
-
<td><input type="checkbox" name="superuser4" value="4" onclick="calculator('superuser', 4)"></td>
+
-
<td><font face="Verdana" size="2"><b>Read</b></font></td>
+
-
<td><input type="checkbox" name="owner4" value="4" onclick="calculator('owner', 4)"></td>
+
-
<td><input type="checkbox" name="group4" value="4" onclick="calculator('group', 4)"></td>
+
-
<td><input type="checkbox" name="other4" value="4" onclick="calculator('other', 4)"></td>
+
-
</tr>
+
-
<tr bgcolor="white" align="center">
+
-
<td><font face="Verdana" size="2"><b>setgid</b></font></td>
+
-
<td><input type="checkbox" name="superuser2" value="2" onclick="calculator('superuser', 2)"></td>
+
-
<td><font face="Verdana" size="2"><b>Write</b></font></td>
+
-
<td><input type="checkbox" name="owner2" value="2" onclick="calculator('owner', 2)"></td>
+
-
<td><input type="checkbox" name="group2" value="2" onclick="calculator('group', 2)"></td>
+
-
<td><input type="checkbox" name="other2" value="2" onclick="calculator('other', 2)"></td>
+
-
</tr>
+
-
<tr bgcolor="white" align="center">
+
-
<td><font face="Verdana" size="2"><b>stickybit</b></font></td>
+
-
<td><input type="checkbox" name="superuser1" value="1" onclick="calculator('superuser', 1)"></td>
+
-
<td><font face="Verdana" size="2"><b>Execute</b></font></td>
+
-
<td><input type="checkbox" name="owner1" value="1" onclick="calculator('owner', 1)"></td>
+
-
<td><input type="checkbox" name="group1" value="1" onclick="calculator('group', 1)"></td>
+
-
<td><input type="checkbox" name="other1" value="1" onclick="calculator('other', 1)"></td>
+
-
</tr>
+
-
<tr bgcolor="white" align="center">
+
-
<td><font face="Verdana" size="2"><b>Value</b></font></td>
+
-
<td><input type="text" name="t_superuser" size="1"></td>
+
-
<td><b>+</b></td>
+
-
<td><input type="text" name="t_owner" size="1"></td>
+
-
<td><input type="text" name="t_group" size="1"></td>
+
-
<td><input type="text" name="t_other" size="1"></td>
+
-
</tr>
+
-
</table>
+
-
</form>
+
-
<p><font face="arial" size="1">This free script provided by</font><br>
+
-
<a href="http://javascriptkit.com"><font face="arial,helvetica" size="1">JavaScript Kit</font></a></p>
+
-
 
+
-
 
+
-
 
+
-
<video width="320" height="240" controls="controls">
+
-
  <source src="https://static.igem.org/mediawiki/2012/7/74/UCalgary2012_Html5TestMov.mov"/>
+
-
Your browser does not support the video tag.
+
-
</video>
+
-
 
+
-
 
+
-
</body>
+
</html>
</html>

Latest revision as of 21:54, 7 September 2012

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> iGEMGameV1_1