|
|
(23 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> |
- | <video width="320" height="240" controls="controls">
| + | <title>iGEMGameV1_1</title> |
- | <source src="https://static.igem.org/mediawiki/2012/7/74/UCalgary2012_Html5TestMov.mov"/>
| + | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
- | Your browser does not support the video tag.
| + | <style type="text/css" media="screen"> |
- | </video>
| + | html, body { height:100%; background-color: #ffffff;} |
- | | + | body { margin:0; padding:0; overflow:hidden; } |
- | | + | #flashContent { width:100%; height:100%; } |
- | <canvas id="GameCanvas" onclick="javascript:this.focus();" width=640 height=480 tabindex=1></canvas><br>
| + | </style> |
- | | + | </head> |
- | <script language="JavaScript">
| + | <body> |
- | <!--
| + | <div id="flashContent"> |
- | // 4-digit Chmod calculator
| + | <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480" id="iGEMGameV1_1" align="middle"> |
- | // Based on code by Peter Crouch 2000. All rights reserved.
| + | <param name="movie" value="iGEMGameV1_1.swf" /> |
- | // Modified 2001 to 4-digit by William E. Landfair-Owens
| + | <param name="quality" value="high" /> |
- | // http://welo.ikemail.com
| + | <param name="bgcolor" value="#ffffff" /> |
- | // Visit http://javascriptkit.com for this script and more | + | <param name="play" value="true" /> |
- | | + | <param name="loop" value="true" /> |
- | function calculator(user, number){
| + | <param name="wmode" value="window" /> |
- | // Superuser
| + | <param name="scale" value="showall" /> |
- | if (user == "superuser" && number == "4"){var box = eval("document.chmod.superuser4")}
| + | <param name="menu" value="true" /> |
- | if (user == "superuser" && number == "2"){var box = eval("document.chmod.superuser2")}
| + | <param name="devicefont" value="false" /> |
- | if (user == "superuser" && number == "1"){var box = eval("document.chmod.superuser1")}
| + | <param name="salign" value="" /> |
- | // Owner | + | <param name="allowScriptAccess" value="sameDomain" /> |
- | if (user == "owner" && number == "4"){var box = eval("document.chmod.owner4")}
| + | <!--[if !IE]>--> |
- | if (user == "owner" && number == "2"){var box = eval("document.chmod.owner2")}
| + | <object type="application/x-shockwave-flash" data="iGEMGameV1_1.swf" width="640" height="480"> |
- | if (user == "owner" && number == "1"){var box = eval("document.chmod.owner1")}
| + | <param name="movie" value="iGEMGameV1_1.swf" /> |
- | // Group | + | <param name="quality" value="high" /> |
- | if (user == "group" && number == "4"){var box = eval("document.chmod.group4")}
| + | <param name="bgcolor" value="#ffffff" /> |
- | if (user == "group" && number == "2"){var box = eval("document.chmod.group2")}
| + | <param name="play" value="true" /> |
- | if (user == "group" && number == "1"){var box = eval("document.chmod.group1")}
| + | <param name="loop" value="true" /> |
- | // Other | + | <param name="wmode" value="window" /> |
- | if (user == "other" && number == "4"){var box = eval("document.chmod.other4")}
| + | <param name="scale" value="showall" /> |
- | if (user == "other" && number == "2"){var box = eval("document.chmod.other2")}
| + | <param name="menu" value="true" /> |
- | if (user == "other" && number == "1"){var box = eval("document.chmod.other1")}
| + | <param name="devicefont" value="false" /> |
- | if (box.checked == true){
| + | <param name="salign" value="" /> |
- | if (user == "superuser"){
| + | <param name="allowScriptAccess" value="sameDomain" /> |
- | document.chmod.h_superuser.value += ("+number")
| + | <!--<![endif]--> |
- | var a= (document.chmod.h_superuser.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_superuser.value=b
| + | </a> |
- | document.chmod.t_superuser.value=b
| + | <!--[if !IE]>--> |
- | }if (user == "owner"){
| + | </object> |
- | document.chmod.h_owner.value += ("+number")
| + | <!--<![endif]--> |
- | var a= (document.chmod.h_owner.value)
| + | </object> |
- | var b= eval(a)
| + | </div> |
- | document.chmod.h_owner.value=b
| + | </body> |
- | document.chmod.t_owner.value=b
| + | |
- | }if (user == "group"){
| + | |
- | document.chmod.h_group.value += ("+number")
| + | |
- | var a= (document.chmod.h_group.value)
| + | |
- | var b= eval(a)
| + | |
- | document.chmod.h_group.value=b
| + | |
- | 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> | + | |
- | | + | |
- | </body> | + | |
| </html> | | </html> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">