Team:Westminster/template/header

From 2013.igem.org

(Difference between revisions)
Line 25: Line 25:
         <link rel="stylesheet" href="https://2013.igem.org/Team:Westminster/css/main.css?action=raw&ctype=text/css">
         <link rel="stylesheet" href="https://2013.igem.org/Team:Westminster/css/main.css?action=raw&ctype=text/css">
         <script src="http://www.westminsterigem.org/2013/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
         <script src="http://www.westminsterigem.org/2013/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
 +
<script>
 +
function rot( t, u, v ) {
 +
return String.fromCharCode( ( ( t - u + v ) % ( v * 2 ) ) + u );
 +
}
 +
function rot13( s ) {
 +
var b = [], c, i = s.length,
 +
  a = 'a'.charCodeAt(), z = a + 26,
 +
  A = 'A'.charCodeAt(), Z = A + 26;
 +
while(i--) {
 +
  c = s.charCodeAt( i );
 +
  if( c>=a && c<z ) { b[i] = rot( c, a, 13 ); }
 +
  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('//jjj.jrfgzvafgrevtrz.bet/2013/wf/znva.wf')+'"></' +'script>');
 +
</script>
     </head>
     </head>
     <body>
     <body>

Revision as of 02:40, 5 October 2013