Difference between revisions of "Team:ETH Zurich"

Line 1: Line 1:
 
{{ETH_Zurich}}
 
{{ETH_Zurich}}
 
<html>
 
<html>
 +
<!--[if lt IE 8]>
 +
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
 +
<![endif]-->
 +
  
 
<style>
 
<style>
Line 226: Line 230:
 
}
 
}
 
</style>
 
</style>
<script>
 
/* jQuery IE pseudo-selector hack */
 
(function($)
 
{
 
 
var patterns = {
 
text: /^['"]?(.+?)["']?$/,
 
url: /^url\(["']?(.+?)['"]?\)$/
 
};
 
 
function clean(content) {
 
if(content && content.length) {
 
var text = content.match(patterns.text)[1],
 
url = text.match(patterns.url);
 
return url ? '<img src="' + url[1] + '" />': text;
 
}
 
}
 
 
function inject(prop, elem, content) {
 
if(prop != 'after') prop = 'before';
 
if(content = clean(elem.currentStyle[prop])) {
 
$(elem)[prop == 'before' ? 'prepend' : 'append'](
 
$(document.createElement('span')).addClass(prop).html(content)
 
);
 
}
 
}
 
 
$.pseudo = function(elem) {
 
inject('before', elem);
 
inject('after', elem);
 
elem.runtimeStyle.behavior = null;
 
};
 
 
if(document.createStyleSheet) {
 
var o = document.createStyleSheet(null, 0);
 
o.addRule('.dummy','display: static;');
 
o.cssText = 'html, head, head *, body, *.before, *.after, *.before *, *.after * { behavior: none; } * { behavior: expression($.pseudo(this)); }';
 
}
 
 
})(jQuery);
 
</script>
 
  
 
<script>
 
<script>

Revision as of 07:11, 11 September 2015

"What I cannot create I do not understand."
- Richard Feynmann

The microbial beacon        for cancer detection

We would like to thank our sponsors