Difference between revisions of "Template:NTNU Trondheim/Notebook/javascript"
m |
|||
Line 1: | Line 1: | ||
<html> | <html> | ||
− | <script | + | <script> |
+ | /* Modernizr 2.6.0 (Custom Build) | MIT & BSD | ||
+ | * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-cssclasses-teststyles-prefixes-ie8compat-load | ||
+ | */ | ||
+ | ;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(m.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}var d="2.6.0",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k=b.createElement("div"),l=b.body,m=l?l:b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),k.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),k.id=h,(l?k:m).innerHTML+=f,m.appendChild(k),l||(m.style.background="",g.appendChild(m)),i=c(k,a),l?k.parentNode.removeChild(k):m.parentNode.removeChild(m),!!i},v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var C in o)w(o,C)&&(t=C.toLowerCase(),e[t]=o[C](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){a!="img"&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),a!="img"&&(r||y[c]===2?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,i){var j=b(a),l=j.autoCallback;j.url.split(".").pop().split("?").shift(),j.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]||h),j.instead?j.instead(a,e,f,g,i):(y[j.url]?j.noexec=!0:y[j.url]=1,f.load(j.url,j.forceCSS||!j.forceJS&&"css"==j.url.split(".").pop().split("?").shift()?"c":c,j.noexec,j.attrs,j.timeout),(d(e)||d(l))&&f.load(function(){k(),e&&e(j.origUrl,i,g),l&&l(j.origUrl,i,g),y[j.url]=2})))}function i(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var j,l,m=this.yepnope.loader;if(e(a))g(a,0,m,0);else if(w(a))for(j=0;j<a.length;j++)l=a[j],e(l)?g(l,0,m,0):w(l)?B(l):Object(l)===l&&i(l,m);else Object(a)===a&&i(a,m)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7}); | ||
+ | </script> | ||
<script> | <script> | ||
Line 73: | Line 78: | ||
</script--> | </script--> | ||
− | <script type="text/javascript" | + | <script type="text/javascript"> |
+ | function loadHref() { | ||
+ | if(document.location != "https://2014.igem.org/Team:NTNU_Trondheim/Notebook") { | ||
+ | var href = document.location.href; | ||
+ | var i = href.substring(href.indexOf("#")+23); | ||
+ | document.getElementById('week' + i + 'entry').style.display = 'block'; | ||
+ | if(i != 'A') { | ||
+ | document.getElementById('weekAentry').style.display = 'none'; | ||
+ | document.getElementById('weekA').className = ''; | ||
+ | } | ||
+ | document.getElementById('week' + i ).className = 'active'; | ||
+ | } | ||
+ | var techb = document.getElementsByClassName('nb-onetech-i'); | ||
+ | for(var i = techb.length-1; i >= 0; i--) { | ||
+ | techb[i].onclick = function() { | ||
+ | showTech(this); | ||
+ | } | ||
+ | var teche = techb[i].parentNode.parentNode.children[1]; | ||
+ | if(teche.innerHTML == "" || teche.innerHTML.indexOf("{{{tech}}}") != -1){ | ||
+ | techb[i].className = 'nb-onetech-disabled'; | ||
+ | teche.className = 'nb-tech-disabled'; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | //NAVIGATION | ||
+ | // var nav = document.getElementsByClassName("nav"); | ||
+ | // nav[0].id = "weekA"; | ||
+ | // nav[1].id = "week2"; | ||
+ | } | ||
+ | function filter(that) { | ||
+ | var ele = that.children[0]; | ||
+ | var show = ele.style.display == 'none'; | ||
+ | ele.style.display= (show ? 'block' : 'none'); | ||
+ | that.parentNode.children[1].className = (show ? 'nb-only' : 'nb-only-i'); | ||
+ | all(); | ||
+ | var list = document.getElementsByClassName('nb-' + ele.id); | ||
+ | for (var i = 0; i < list.length; i++) { | ||
+ | list[i].style.display = (show ? 'block' : 'none'); | ||
+ | } | ||
+ | } | ||
+ | function onlyFilter(that) { | ||
+ | var filt = that.parentNode; | ||
+ | var row = filt.parentNode; | ||
+ | |||
+ | for(var i=1; i<row.children.length-1; i++) | ||
+ | { | ||
+ | var hide = true; | ||
+ | if(row.children[i] == filt) hide = false; | ||
+ | |||
+ | row.children[i].children[0].children[0].style.display = (hide ? 'none' : 'block'); | ||
+ | row.children[i].children[1].className = (hide ? 'nb-only-i' : 'nb-only'); | ||
+ | |||
+ | var list = document.getElementsByClassName('nb-' + row.children[i].children[0].children[0].id); | ||
+ | for (var j = 0; j < list.length; j++) { | ||
+ | list[j].style.display = (hide ? 'none' : 'block'); | ||
+ | } | ||
+ | } | ||
+ | all(); | ||
+ | } | ||
+ | function all() { | ||
+ | var all = true; | ||
+ | var allbut = document.getElementById('nb-all'); | ||
+ | var row = document.getElementById('wet-only').parentNode.parentNode; | ||
+ | for(var i=1; i<row.children.length-1; i++) | ||
+ | { if(row.children[i].children[1].className == 'nb-only-i') all = false; } | ||
+ | allbut.className = (all ? 'nb-all' : 'nb-all-i'); | ||
+ | } | ||
+ | function showAll() { | ||
+ | var all = true; | ||
+ | var allbut = document.getElementById('nb-all'); | ||
+ | var row = document.getElementById('wet-only').parentNode.parentNode; | ||
+ | for(var i=1; i<row.children.length-1; i++) | ||
+ | { | ||
+ | row.children[i].children[0].children[0].style.display = 'block'; | ||
+ | row.children[i].children[1].className = 'nb-only'; | ||
+ | } | ||
+ | allbut.className = (all ? 'nb-all' : 'nb-all-i'); | ||
+ | var list = document.getElementsByClassName("entry"); | ||
+ | for (var i = 0; i < list.length; i++) { | ||
+ | list[i].style.display = 'block'; | ||
+ | } | ||
+ | } | ||
+ | function weekFilter(that) { | ||
+ | for(var i = -4; i<25; i++) { | ||
+ | var c = (i > 0 ? "" + i : String.fromCharCode(69 + i)); | ||
+ | var ele = document.getElementById('week' + c); | ||
+ | if(ele != null) ele.className = (that.id.substr(4) == c ? 'active' : ''); | ||
+ | } | ||
+ | //NAVIGATION | ||
+ | // var nav = document.getElementsByClassName("nav"); | ||
+ | // nav[0].id = "week" + (that.id.substr(4) - 1); | ||
+ | // nav[1].id = "week" + (that.id.substr(4) + 1); | ||
+ | |||
+ | var filt = that.id + "entry"; | ||
+ | var all = document.getElementsByClassName('nb-week'); | ||
+ | for(var i = 0; i<all.length; i++) { | ||
+ | if(all[i].tagName == 'DIV') all[i].style.display = 'none'; | ||
+ | } | ||
+ | |||
+ | document.getElementById(filt).style.display = 'block'; | ||
+ | } | ||
+ | function showAllTech() { | ||
+ | var techbut = document.getElementById('nb-alltech'); | ||
+ | var all = techbut.className == 'nb-all-i'; | ||
+ | techbut.className = (all ? 'nb-all' : 'nb-all-i'); | ||
+ | var row = document.getElementsByClassName('nb-tech'); | ||
+ | for(var i=0; i<row.length; i++) { | ||
+ | row[i].style.display = (all ? 'block' : 'none'); | ||
+ | } | ||
+ | var techs = document.getElementsByClassName(all ? 'nb-onetech-i' : 'nb-onetech'); | ||
+ | for(var i= techs.length -1; i >= 0; i--) { | ||
+ | techs[i].className = (all ? 'nb-onetech' : 'nb-onetech-i'); | ||
+ | } | ||
+ | } | ||
+ | function showTech(that) { | ||
+ | var show = that.className == 'nb-onetech'; | ||
+ | that.className = show ? 'nb-onetech-i' : 'nb-onetech'; | ||
+ | that.parentNode.parentNode.children[1].style.display = show ? 'none' : 'block'; | ||
+ | } | ||
+ | |||
+ | function findNames() { | ||
+ | <!-- KEYWORDS HERE --> | ||
+ | var info = [ //don't use Lorem. I don't know why, but it murders kittens every time. | ||
+ | <!-- NAMES --> | ||
+ | ["Tim", "Tim Abbot", | ||
+ | "https://static.igem.org/mediawiki/2013/6/62/Abbott_tim.jpg", | ||
+ | "Wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#abbot" | ||
+ | ], | ||
+ | ["Hannah", "Hannah Ajmani", | ||
+ | "https://static.igem.org/mediawiki/2013/1/18/Ajmani_hannah.jpg", | ||
+ | "Human practices and outreach coordinator and presenter", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#ajmani" | ||
+ | ], | ||
+ | ["Eric Appel", "Eric Appel", | ||
+ | "https://static.igem.org/mediawiki/2013/2/28/Appel_e.jpg", | ||
+ | "Animations...?", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#appel" | ||
+ | ], | ||
+ | ["Ryan", "Ryan Ashley", | ||
+ | "https://static.igem.org/mediawiki/2013/e/ea/Ashley_ryan.jpg", | ||
+ | "Wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#ashley" | ||
+ | ], | ||
+ | ["Nupur", "Nupur Bhatt", | ||
+ | "https://static.igem.org/mediawiki/2013/c/cf/Bhatt_nupur.jpg", | ||
+ | "Wiki developer, wetlab member, professional gamer", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#bhatt" | ||
+ | ], | ||
+ | ["Arun", "Arun Chakravorty", | ||
+ | "https://static.igem.org/mediawiki/2013/c/c6/Chakravorty_arun.jpg", | ||
+ | "Wetlab taskforce leader, presenter, and overall awesome guy", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#chakravorty" | ||
+ | ], | ||
+ | ["Jonlin", "Jonlin Chen", | ||
+ | "https://static.igem.org/mediawiki/2013/4/49/Chen_jonlin.jpg", | ||
+ | "Wetlab member and miniprep master", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#chen" | ||
+ | ], | ||
+ | ["Rebecca", "Rebecca Chew", | ||
+ | "https://static.igem.org/mediawiki/2013/c/c0/Chew_rebecca.jpg", | ||
+ | "Drylab member and wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#chew" | ||
+ | ], | ||
+ | ["Sharlene", "Sharlene Dong", | ||
+ | "https://static.igem.org/mediawiki/2013/1/17/Dong_sharlene.jpg", | ||
+ | "Wetlab taskforce leader", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#dong" | ||
+ | ], | ||
+ | ["Sara", "Sara Gregg", | ||
+ | "https://static.igem.org/mediawiki/2013/e/e4/Gregg_sara.jpg", | ||
+ | "Drylab member and wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#gregg" | ||
+ | ], | ||
+ | ["Alex", "Alex Han", | ||
+ | "https://static.igem.org/mediawiki/2013/4/4e/Han_alex.jpg", | ||
+ | "Wetlab taskforce leader", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#han" | ||
+ | ], | ||
+ | ["Eric", "Eric Holmes", | ||
+ | "https://static.igem.org/mediawiki/2013/9/94/Holmes_eric.jpg", | ||
+ | "Wetlab taskforce leader and presenter", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#holmes" | ||
+ | ], | ||
+ | ["Danielle", "Danielle Huang", | ||
+ | "https://static.igem.org/mediawiki/2013/5/5b/Huang_danielle.jpg", | ||
+ | "Human practices and outreach coordinator", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#huang" | ||
+ | ], | ||
+ | ["Daniel", "Daniel Leach", | ||
+ | "https://static.igem.org/mediawiki/2013/b/b8/Leach_dan.jpg", | ||
+ | "Wetlab taskforce leader", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#leach" | ||
+ | ], | ||
+ | ["Rafael", "Rafael Lizarralde", | ||
+ | "https://static.igem.org/mediawiki/igem.org/6/61/Rafael_Lizarralde_small.jpg", | ||
+ | "Wetlab supervisor, wiki master, and wice president", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#lizarralde" | ||
+ | ], | ||
+ | ["Oat", "Oat Luengvarinkul", | ||
+ | "https://static.igem.org/mediawiki/2013/0/07/Luengvarinkul_oat.jpg", | ||
+ | "Design team leader", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#luengvarinkul" | ||
+ | ], | ||
+ | ["Jeffrey", "Jeffrey Ly", | ||
+ | "https://static.igem.org/mediawiki/2013/7/7a/Ly_jeffrey.jpg", | ||
+ | "Wetlab member and energizer bunny", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#ly" | ||
+ | ], | ||
+ | ["Ritvik", "Ritvik Sarkar", | ||
+ | "https://static.igem.org/mediawiki/2013/9/9d/Sarkar_ritvik.jpg", | ||
+ | "Drylab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#sarkar" | ||
+ | ], | ||
+ | ["Mac", "Mac Sennett", | ||
+ | "https://static.igem.org/mediawiki/2013/a/af/Sennett_mac.jpg", | ||
+ | "Drylab team leader", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#sennet" | ||
+ | ], | ||
+ | ["Prashant", "Prashant Sharma", | ||
+ | "https://static.igem.org/mediawiki/2013/d/d5/Sharma_prashant.jpg", | ||
+ | "Wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#sharma" | ||
+ | ], | ||
+ | ["Mark", "Mark Simpson", | ||
+ | "https://static.igem.org/mediawiki/2013/1/12/Simpson_mark.jpg", | ||
+ | "Wetlab manager and god of electric competent stocks", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#simpson" | ||
+ | ], | ||
+ | ["Christine", "Christine Soong", | ||
+ | "https://static.igem.org/mediawiki/2013/6/68/Soong_christine.jpg", | ||
+ | "Drylab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#soong" | ||
+ | ], | ||
+ | ["Olya", "Olya Spassibojko", | ||
+ | "https://static.igem.org/mediawiki/2013/c/ca/Spassibojko_olya.jpg", | ||
+ | "Wetlab taskforce leader", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#spassibojko" | ||
+ | ], | ||
+ | ["Tina", "Tina Su", | ||
+ | "https://static.igem.org/mediawiki/2013/5/5b/Su_tina.jpg", | ||
+ | "Wetlab member and sponsorship team leader", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#su" | ||
+ | ], | ||
+ | ["Swati", "Swati Sureka", | ||
+ | "https://static.igem.org/mediawiki/2013/b/b7/Sureka_swati.jpg", | ||
+ | "The Boss", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#sureka" | ||
+ | ], | ||
+ | ["Yoshi", "Yoshiko Toyoda", | ||
+ | "https://static.igem.org/mediawiki/2013/5/54/Toyoda_yoshi.jpg", | ||
+ | "Wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#toyoda" | ||
+ | ], | ||
+ | ["Yoshiko", "Yoshiko Toyoda", | ||
+ | "https://static.igem.org/mediawiki/2013/5/54/Toyoda_yoshi.jpg", | ||
+ | "Wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#toyoda" | ||
+ | ], | ||
+ | ["Lydia", "Lydia Wang", | ||
+ | "https://static.igem.org/mediawiki/2013/3/35/Wang_lydia.jpg", | ||
+ | "Drylab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#wang" | ||
+ | ], | ||
+ | ["Kyle", "Kyle Wheeler", | ||
+ | "https://static.igem.org/mediawiki/2013/4/4c/Wheeler_kyle.jpg", | ||
+ | "Wetlab member", | ||
+ | "https://2013.igem.org/Team:Cornell/team/bios#wheeler" | ||
+ | ], | ||
+ | <!-- PLASMIDS --> | ||
+ | ["pAK13AA", "pAK13AA", "", "PT7 + crtE in pSB1AK8", ""], | ||
+ | ["pAK13AB", "pAK13AB", "", "PT7 + crtB in pSB1AK8", ""], | ||
+ | ["pAK13AC", "pAK13AC", "", "PT7 + crtI in pSB1AK8", ""], | ||
+ | ["pAK13AD", "pAK13AD", "", "PT7 + crtY in pSB1AK8", ""], | ||
+ | ["pC13AE", "pC13AE", "", "PT7 + crtE in pSB1C3", ""], | ||
+ | ["pC13AF", "pC13AF", "", "PT7 + crtB in pSB1C3", ""], | ||
+ | ["pC13AG", "pC13AG", "", "PT7 + crtI in pSB1C3", ""], | ||
+ | ["pC13AH", "pC13AH", "", "PT7 + crtY in pSB1C3", ""], | ||
+ | ["pC13AI", "pC13AI", "", "lox site in pSB1C3", ""], | ||
+ | ["pA13AJ", "pA13AJ", "", "lox site in pSB1A2", ""], | ||
+ | ["pC13AK", "pC13AK", "", "mRFP (coding sequence only) in pSB1C3", ""], | ||
+ | ["pK13AL", "pK13AL", "", "mRFP (coding sequence only) in pSB2K3", ""], | ||
+ | ["pA13AM", "pA13AM", "", "Strongest Anderson constitutive promoter + mRFP in BBa_J61002", ""], | ||
+ | ["pAK13AN", "pAK13AN", "", "PT7 + GFP in pSB1AK8", ""], | ||
+ | ["pAK13AO", "pAK13AO", "", "PT7 + mRFP in pSB1AK8", ""], | ||
+ | ["pAK13AP", "pAK13AP", "", "PT7 + bar in pSB1AK8", ""], | ||
+ | ["pC13AQ", "pC13AQ", "", "PT7 + GFP in pSB1C3", ""], | ||
+ | ["pC13AR", "pC13AR", "", "PT7 + mRFP in pSB1C3", ""], | ||
+ | ["pC13AS", "pC13AS", "", "PT7 + bar in pSB1C3", ""], | ||
+ | ["pC13AT", "pC13AT", "", "PtrpC + GFP in pSB1C3", ""], | ||
+ | ["pC13AU", "pC13AU", "", "PtrpC + mRFP in pSB1C3", ""], | ||
+ | ["pC13AV", "pC13AV", "", "PtrpC + bar in pSB1C3", ""], | ||
+ | ["pA13AW", "pA13AW", "", "Anderson promoter + T7 polymerase from BBa_J61002", ""], | ||
+ | ["pK13AX", "pK13AX", "", "Anderson promoter + T7 polymerase in pSB2K3", ""], | ||
+ | ["pC13AY", "pC13AY", "", "PtrpC + T7 polymerase in pSB1C3", ""], | ||
+ | ["pC13AZ", "pC13AZ", "", "Anderson promoter + T7 polymerase in pSB1C3", ""], | ||
+ | |||
+ | ["pC13BA", "pC13BA", "", "afp1 in pSB1C3", ""], | ||
+ | ["pAK13BB", "pAK13BB", "", "PT7 + nptII biobrick in pSB1AK8", ""], | ||
+ | ["pC13BC", "pC13BC", "", "PT7 + nptII biobrick in pSB1C3", ""], | ||
+ | ["pC13BD", "pC13BD", "", "PtrpC + crtI in pSB1C3", ""], | ||
+ | ["pA13BE", "pA13BE", "", "PpelA, flanked by KpnI and BamHI cutsites in pHPG", ""], | ||
+ | ["pC13BF", "pC13BF", "", "PpelA in pSB1C3", ""], | ||
+ | ["pC13BG", "pC13BG", "", "A. nidulans PgpdA in pSB1C3", ""], | ||
+ | ["pC13BH", "pC13BH", "", "G. lucidum PgpdA in pSB1C3", ""], | ||
+ | ["pC13BI", "pC13BI", "", "G. lucidum PgpdA biobrick in pSB1C3", ""], | ||
+ | ["pC13BJ", "pC13BJ", "", "100bp left region of homology of G. lucidum PgpdA in pSB1C3", ""], | ||
+ | ["pC13BK", "pC13BK", "", "200bp left region of homology of G. lucidum PgpdA in pSB1C3", ""], | ||
+ | ["pC13BL", "pC13BL", "", "100bp right region of homology of G. lucidum PgpdA in pSB1C3", ""], | ||
+ | ["pC13BM", "pC13BM", "", "200bp right region of homology of G. lucidum PgpdA in pSB1C3", ""], | ||
+ | ["pC13BN", "pC13BN", "", "lox [cutsite 1] [cutsite 2] lox in pSB1C3", ""], | ||
+ | ["pC13BO", "pC13BO", "", "short homology regions flanking two unique cutsites in pSB1C3", ""], | ||
+ | ["pC13BP", "pC13BP", "", "long homology regions flanking two unique cutsites in pSB1C3", ""], | ||
+ | ["pC13BQ", "pC13BQ", "", "A. nidulans PgpdA + nptII biobrick in pSB1C3", ""], | ||
+ | ["pC13BR", "pC13BR", "", "A. nidulans PgpdA + hph biobrick in pSB1C3", ""], | ||
+ | ["pC13BS", "pC13BS", "", "G. lucidum PgpdA biobrick + nptII biobrick in pSB1C3", ""], | ||
+ | ["pC13BT", "pC13BT", "", "G. lucidum Pgpd biobrick + hph biobrick in pSB1C3", ""], | ||
+ | ["pAK13BU", "pAK13BU", "", "PT7 + hph biobrick in pSB1AK8", ""], | ||
+ | ["pC13BV", "pC13BV", "", "PT7 + hph biobrick in pSB1C3", ""], | ||
+ | ["pA13BW", "pA13BW", "", "CMV Cre in pBS185", ""], | ||
+ | ["pC13BX", "pC13BX", "", "Cre recombinase in pSB1C3", ""], | ||
+ | ["pC13BY", "pC13BY", "", "PpelA + Cre in pSB1C3", ""], | ||
+ | ["pC13BZ", "pC13BZ", "", "PpelA + GFP in pSB1C3", ""], | ||
+ | |||
+ | ["pC13CA", "pC13CA", "", "PpelA + mRFP in pSB1C3", ""], | ||
+ | ["pC13CB", "pC13CB", "", "PT7 + GFP + PtrpC + nptII biobrick in pSB1C3", ""], | ||
+ | ["pC13CC", "pC13CC", "", "PtrpC + nptII biobrick + TtrpC in pSB1C3", ""], | ||
+ | ["pC13CD", "pC13CD", "", "PtrpC + hph biobrick in pSB1C3", ""], | ||
+ | ["pC13CE", "pC13CE", "", "PtrpC + hph biobrick + TtrpC in pSB1C3", ""], | ||
+ | ["pC13CF", "pC13CF", "", "A. nidulans PgpdA + GFP in pSB1C3", ""], | ||
+ | ["pC13CG", "pC13CG", "", "A. nidulans PgpdA + mRFP in pSB1C3", ""], | ||
+ | ["pC13CH", "pC13CH", "", "G. lucium PgpdA + GFP in pSB1C3", ""], | ||
+ | ["pC13CI", "pC13CI", "", "G. lucidum PgpdA + mRFP in pSB1C3", ""], | ||
+ | ["pC13CJ", "pC13CJ", "", "Limonene synthase in pSB1C3", ""], | ||
+ | ["pAK13CK", "pAK13CK", "", "PT7 + Limonene Synthase in pSB1AK8", ""], | ||
+ | ["pC13CL", "pC13CL", "", "Cht1_2 in pSB1C3", ""], | ||
+ | ["pC13CM", "pC13CM", "", "PpelA + Cht1_2 in pSB1C3", ""], | ||
+ | ["pS13CN", "pS13CN", "", "Lambda Holin in BBa_K112950", ""], | ||
+ | ["pC13CO", "pC13CO", "", "Lambda Holin in pSB1C3", ""], | ||
+ | ["pC13CP", "pC13CP", "", "PpelA + Lambda Holin in pSB1C3", ""], | ||
+ | ["pAK13CQ", "pAK13CQ", "", "PT7 + rbs + crtE in pSB1AK8", ""], | ||
+ | ["pAK13CR", "pAK13CR", "", "PT7 + rbs + crtB in pSB1AK8", ""], | ||
+ | ["pAK13CS", "pAK13CS", "", "PT7 + rbs + crtI in pSB1AK8", ""], | ||
+ | ["pAK13CT", "pAK13CT", "", "PT7 + rbs + crtY in pSB1AK8", ""], | ||
+ | ["pC13CU", "pC13CU", "", "PT7 + rbs + crtE in pSB1C3", ""], | ||
+ | ["pC13CV", "pC13CV", "", "PT7 + rbs + crtB in pSB1C3", ""], | ||
+ | ["pC13CW", "pC13CW", "", "PT7 + rbs + crtI in pSB1C3", ""], | ||
+ | ["pC13CX", "pC13CX", "", "PT7 + rbs + crtY in pSB1C3", ""], | ||
+ | ["pAK13CY", "pAK13CY", "", "PT7 + rbs + GFP in pSB1AK8", ""], | ||
+ | ["pA13CZ", "pA13CZ", "", "Strong RBS in pSB1A2", ""], | ||
+ | |||
+ | ["pAK13DA", "pAK13CA", "", "PT7 + rbs + mRFP in pSB1AK8", ""], | ||
+ | ["pA13DB", "pA13DB", "", "RBS + GFP in pSB1A2", ""], | ||
+ | ["pA13DC", "pA13DC", "", "RBS + mRFP in pSB1A2", ""], | ||
+ | ["pC13DD", "pC13DD", "", "PT7 + limonene synthase in pSB1C3", ""], | ||
+ | ["pC13DE", "pC13DE", "", "lox + PtrpC + nptII biobrick + lox in pSB1C3", ""], | ||
+ | ["pC13DF", "pC13DF", "", "lox + A. nidulans PgpdA + nptII biobrick + lox in pSB1C3", ""], | ||
+ | ["pC13DG", "pC13DG", "", "lox + A.nidulans PgpdA + hph biobrick + lox in pSB1C3", ""], | ||
+ | ["pC13DH", "pC13DH", "", "lox + PtrpC + hph biobrick + lox in pSB1C3", ""], | ||
+ | ["pC13DI", "pC13DI", "", "PtrpC + hph biobrick + GFP in pSB1C3", ""], | ||
+ | ["pC13DJ", "pC13DJ", "", "PT7 + crtB + PT7 + crtI in pSB1C3", ""], | ||
+ | ["pC13DK", "pC13DK", "", "PT7 + crtE + PT7 + crtB + PT7 + crtI in pSB1C3", ""], | ||
+ | ["pC13DL", "pC13DL", "", "PT7 + crtE + PT7 + crtB + PT7 + crtI + PT7 + nptII biobrick in pSB1C3", ""], | ||
+ | ["pC13DM", "pC13DM", "", "PT7 + rbs + crtB + PT7 + rbs + crtI in pSB1C3", ""], | ||
+ | ["pC13DN", "pC13DN", "", "PT7 + rbs + crtE + PT7 + rbs + crtB + PT7 + rbs + crtI in pSB1C3", ""], | ||
+ | ["pC13DO", "pC13DO", "", "G. lucidum PgpdA + crtE in pSB1C3", ""], | ||
+ | ["pC13DP", "pC13DP", "", "A. nidulans PgpdA + crtB in pSB1C3", ""], | ||
+ | ["pC13DQ", "pC13DQ", "", "A. nidulans PgpdA + crtB + PtrpC + crtI in pSB1C3", ""], | ||
+ | ["pC13DR", "pC13DR", "", "G. lucidum PgpdA + crtE + A. nidulans PgpdA + crtB + PtrpC + crtI in pSB1C3", ""], | ||
+ | ["pC13DS", "pC13DS", "", "G. lucidum PgpdA + crtE + A. nidulans PgpdA + crtB + PtrpC + crtI + resistance", ""], | ||
+ | ["pC13DT", "pC13DT", "", "T7 + crtE + crtB + crtI", ""], | ||
+ | ["pC13DU", "pC13DU", "", "Lhom + PtrpC + nptIIBB + Rhom in pSB1C3", ""], | ||
+ | ["pC13DV", "pC13DV", "", "Lhom + PgpdA + nptIIBB + Rhom in pSB1C3", ""], | ||
+ | ["pC13DW", "pC13DW", "", "Lhom + PgpdA + hphBB + Rhom in pSB1C3", ""], | ||
+ | ["pS13DX", "pS13DX", "", "Lhom + PtrpC + nptIIBB + Rhom in pS13EB", ""], | ||
+ | ["pS13DY", "pS13DY", "", "Lhom + PgpdA + nptIIBB + Rhom in pS13EB", ""], | ||
+ | ["pS13DZ", "pS13DZ", "", "Lhom + PgpdA + hphBB + Rhom in pS13EB", ""], | ||
+ | |||
+ | ["pAh13EA", "pAh13EA", "", "hph + C. heterostrophus Pgpd in pHG", ""], | ||
+ | ["pS13EB", "pS13EB", "", "pOSCAR backbone for transformation into agrobacterium", ""], | ||
+ | |||
+ | ["pC13A", "pC13A", "", "crtE + crtB + crtI in pSB1C3", ""], | ||
+ | ["pC13B", "pC13B", "", "crtY in PSB1C3", ""], | ||
+ | ["pA13C", "pA13C", "", "T7 promoter and terminator in pIVEX2.3d", ""], | ||
+ | ["pAK13D", "pAK13D", "", "T7 promoter in PSB1AK8", ""], | ||
+ | ["pC13E", "pC13E", "", "T7 polymerase in pSB1C3", ""], | ||
+ | ["pC13F", "pC13F", "", "mRFP in pSB1C3", ""], | ||
+ | ["pAh13G", "pAh13G", "", "PtrpC + hph + TtrpC in pUCATPH", ""], | ||
+ | ["pAg13H", "pAg13H", "", "Pgpd (C.h.) + nptII in pNG", ""], | ||
+ | ["pC13I", "pC13I", "", "crtE in pSB1C3", ""], | ||
+ | ["pC13J", "pC13J", "", "rbs + crtE in pSB1C3", ""], | ||
+ | ["pC13K", "pC13K", "", "crtI in pSB1C3", ""], | ||
+ | ["pC13L", "pC13L", "", "rbs + crtI in pSB1C3", ""], | ||
+ | ["pC13M", "pC13M", "", "crtB in pSB1C3", ""], | ||
+ | ["pC13N", "pC13N", "", "rbs + crtB in pSB1C3", ""], | ||
+ | ["pC13O", "pC13O", "", "rbs + crtY in pSB1C3", ""], | ||
+ | ["pC13P", "pC13P", "", "trpC promoter in pSB1C3", ""], | ||
+ | ["pC13Q", "pC13Q", "", "trpC terminator in pSB1C3", ""], | ||
+ | ["pCg13R", "pCg13R", "", "nptII in pSB1C3", ""], | ||
+ | ["pCg13S", "pCg13S", "", "nptII biobrick in pSB1C3", ""], | ||
+ | ["pAb13T", "pAb13T", "", "PtrpC + bar + Ttrpc + PgpdA + lox in pBARGPE1", ""], | ||
+ | ["pCg13U", "pCg13U", "", "nptII biobrick + TtrpC in pSB1C3", ""], | ||
+ | ["pCh13V", "pCh13V", "", "hph in pSB1C3", ""], | ||
+ | ["pCh13W", "pCh13W", "", "hph biobrick in pSB1C3", ""], | ||
+ | ["pCp13X", "pCp13X", "", "bar in pSB1C3", ""], | ||
+ | ["pCg13Y", "pCg13Y", "", "PtrpC + nptII biobrick in pSB1C3", ""], | ||
+ | ["pC13Z", "pC13Z", "", "GFP + LVA in pSB1C3", ""] | ||
+ | |||
+ | ]; | ||
+ | |||
+ | var parents = document.getElementsByClassName("entry"); | ||
+ | for(var pi = 0; pi < parents.length; pi++) | ||
+ | { | ||
+ | var eles = [parents[pi].children[0].children[1], parents[pi].children[0].children[2]]; | ||
+ | for(var ti = 0; ti < 2; ti++) | ||
+ | { | ||
+ | var ele = eles[ti]; | ||
+ | var text = ele.innerHTML; | ||
+ | for(var i = 0; i < info.length; i++) | ||
+ | { | ||
+ | var p = info[i]; | ||
+ | var name = p[0]; | ||
+ | var full = p[1]; | ||
+ | var img = p[2]; | ||
+ | var desc = p[3]; | ||
+ | var href = p[4]; | ||
+ | |||
+ | var content = ''; | ||
+ | var after = text; | ||
+ | var pos = after.toLowerCase().indexOf(p[0].toLowerCase()); | ||
+ | while(pos != -1) | ||
+ | { | ||
+ | var before = after.substring(0, pos); | ||
+ | var actualName = after.substring(pos, pos + name.length); | ||
+ | var middle = actualName; | ||
+ | after = after.substring(pos + name.length); | ||
+ | if( ( before.length == 0 || before.match(/[^a-zA-Z]$/) ) && | ||
+ | ( after.length == 0 || after.match(/^[^a-zA-Z]/) ) && | ||
+ | (name != 'Eric' || !after.match(/^ Appel/) ) ) | ||
+ | { | ||
+ | var image = img ? '<img src="' + img + '">' : ''; | ||
+ | middle = '<div class="author-hover"><a href="' + href + '">' + actualName + '</a></div><div class="author-hover-pic"><div class="author-desc">' + image + '<div><h5>' + full + '</h5><p>' + desc + '</p></div></div></div>'; | ||
+ | } | ||
+ | content = content + before + middle; | ||
+ | pos = after.toLowerCase().indexOf(p[0].toLowerCase()); | ||
+ | } | ||
+ | text = content ? content + after : text; | ||
+ | } | ||
+ | ele.innerHTML = text; | ||
+ | } | ||
+ | } | ||
+ | // | ||
+ | // var hovers = document.getElementsByClassName("author-hover"); | ||
+ | // var hoverpics = document.getElementsByClassName("author-hover-pic"); | ||
+ | // for(var i = 0; i < hovers.length; i++) | ||
+ | // { | ||
+ | // alert(hovers[i].offsetWidth); | ||
+ | // hoverpics[i].style.marginLeft = 0 - hovers[i].offsetWidth; | ||
+ | // } | ||
+ | } | ||
+ | |||
+ | function isDelimiter(ch) | ||
+ | { | ||
+ | return ch == ' ' || ch == '.'; | ||
+ | } | ||
+ | </script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(window).load(function() { | $(window).load(function() { |
Revision as of 09:37, 22 June 2015