Difference between revisions of "Team:Pasteur Paris/test"
Line 61: | Line 61: | ||
//Fonction de détection d'un changement dans le champ recherche | //Fonction de détection d'un changement dans le champ recherche | ||
$(".chosen").chosen().change(function(event) { | $(".chosen").chosen().change(function(event) { | ||
− | //Hide everything | + | //Hide everything before doing things |
hideALL(); | hideALL(); | ||
+ | //Extract filters Tags | ||
var filters = $("#select-chosen").chosen().val(); | var filters = $("#select-chosen").chosen().val(); | ||
for (var filter in filters) { | for (var filter in filters) { | ||
− | // | + | //Select all elements with class with filter |
− | + | ||
var elems = document.querySelectorAll('.'+filters[filter]); | var elems = document.querySelectorAll('.'+filters[filter]); | ||
+ | //for each elemnts containing the tag, show it in the document | ||
for(i = 0; i < elems.length; i++){ | for(i = 0; i < elems.length; i++){ | ||
var week = elems.item(i); | var week = elems.item(i); | ||
week.style.display = "inline"; | week.style.display = "inline"; | ||
− | |||
} | } | ||
} | } | ||
− | |||
}); | }); | ||
</script> | </script> |
Revision as of 11:51, 17 July 2015
Notebook
Search for a content:
- June :
- July :
- August :
- September :
06/01 - 06/05 :
Tags:06/08 - 06/12 :
Tags:06/15 - 06/19 :
Tags: PCR, Wiki06/22 - 06/26 :
Tags:06/29 - 07/03 :
Tags: Wiki07/06 - 07/10 :
Tags:07/13 - 07/17 :
Tags:07/20 - 07/24 :
Tags: Sequencing Wiki07/27 - 07/31 :
Tags: Sequencing08/03 - 08/07 :
Tags: PCR08/10 - 08/14 :
Tags:08/17 - 08/21 :
Tags:08/24 - 08/28 :
Tags:08/31 - 09/04 :
Tags:09/07 - 09/11 :
Tags: