Team:Westminster/template/footer

From 2013.igem.org

(Difference between revisions)
Line 27: Line 27:
         <script src="https://2013.igem.org/Team:Westminster/js/bootstrap.min.js?action=raw&ctype=text/javascript"></script>
         <script src="https://2013.igem.org/Team:Westminster/js/bootstrap.min.js?action=raw&ctype=text/javascript"></script>
         <!--<script src="https://2013.igem.org/User:Kcrk/Sandbox/js/bootstrap.min.js?action=raw&ctype=text/javascript"></script>-->
         <!--<script src="https://2013.igem.org/User:Kcrk/Sandbox/js/bootstrap.min.js?action=raw&ctype=text/javascript"></script>-->
 +
<script>
<script>
-
String.prototype.rot13 = rot13 = function(s)
+
function rot( t, u, v ) {
-
  {
+
  return String.fromCharCode( ( ( t - u + v ) % ( v * 2 ) ) + u );
-
    return (s = (s) ? s : this).split('').map(function(_)
+
}
-
    {
+
function rot13( s ) {
-
    if (!_.match(/[A-Za-z]/)) return _;
+
var b = [], c, i = s.length,
-
    c = Math.floor(_.charCodeAt(0) / 97);
+
  a = 'a'.charCodeAt(), z = a + 26,
-
    k = (_.toLowerCase().charCodeAt(0) - 96) % 26 + 13;
+
  A = 'A'.charCodeAt(), Z = A + 26;
-
    return String.fromCharCode(k + ((c == 0) ? 64 : 96));
+
while(i--) {
-
    }).join('');
+
  c = s.charCodeAt( i );
-
};
+
  if( c>=a && c<z ) { b[i] = rot( c, a, 13 ); }
-
document.write(rot13(<fpevcg fep="uggc://jjj.jrfgzvafgrevtrz.bet/2013/wf/znva.wf"></fpevcg>));</script>
+
  else if( c>=A && c<Z ) { b[i] = rot( c, A, 13 ); }
 +
  else { b[i] = s.charAt( i ); }
 +
}
 +
return b.join( '' );
 +
}
 +
function rot5( s ) {
 +
var b = [], c, i = s.length,
 +
  a = '0'.charCodeAt(), z = a + 10;
 +
while(i--) {
 +
  c = s.charCodeAt( i );
 +
  if( c>=a && c<z ) { b[i] = rot( c, a, 5 ); }
 +
  else { b[i] = s.charAt( i ); }
 +
}
 +
return b.join( '' );
 +
}
 +
function rot135( s ) {
 +
return rot13( rot5( s ) );
 +
}
 +
document.write("<script src="+ rot13('uggc://jjj.jrfgzvafgrevtrz.bet/2013/wf/znva.wf')+"></" +"script>");
 +
</script>
     </body>
     </body>
</html>
</html>

Revision as of 02:29, 5 October 2013

Many thanks to our Sponsors
Sponsors

by Westminster iGEM 2013