Team:ETH Zurich/labblog/buttons
From 2014.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
$("article").show(); | $("article").show(); | ||
- | $("a#insidelink, | + | $("a#insidelink, filter, button").on("click", function(){ |
var filtertag = $(this).attr('class'); | var filtertag = $(this).attr('class'); | ||
$("article").hide().filter('.' + filtertag).show(); | $("article").hide().filter('.' + filtertag).show(); | ||
Line 36: | Line 36: | ||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="50%" y="0px" width="200" height="200" viewBox="200 0 1000 1000" enable-background="new 200 0 1000 1000" xml:space="preserve"> | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="50%" y="0px" width="200" height="200" viewBox="200 0 1000 1000" enable-background="new 200 0 1000 1000" xml:space="preserve"> | ||
- | < | + | <filter class="all" id="bred" style="text-decoration:none;"> |
- | <rect | + | <rect style="cursor: pointer" x="200" width="500" height="500"></rect> |
- | <text | + | <text x="290" y="270" style="cursor: pointer" fill="#FFFFFF" font-size="100">View all</text> |
- | </ | + | </filter> |
- | < | + | <filter class="lab" id="bgreen" style="text-decoration:none;"> |
- | <rect | + | <rect style="cursor: pointer" x="700" width="500" height="500"></rect> |
- | <text | + | <text x="850" y="270" style="cursor: pointer" fill="#FFFFFF" font-size="100">Lab</text> |
- | </ | + | </filter> |
- | < | + | <filter class="modeling" href="#" id="bblue" style="text-decoration:none;"> |
- | <rect | + | <rect style="cursor: pointer" x="200" y="500" width="500" height="500"></rect> |
- | <text | + | <text x="270" y="770" style="cursor: pointer" fill="#FFFFFF" font-size="100">Modeling</text> |
- | </ | + | </filter> |
- | < | + | <filter class="meetings" href="#" id="bred" style="text-decoration:none;"> |
- | <rect | + | <rect style="cursor: pointer" x="700" y="500" width="500" height="500"></rect> |
- | <text | + | <text x="260" y="710" style="cursor: pointer" fill="#FFFFFF" font-size="100"> |
<tspan x="760">Weekly</tspan> | <tspan x="760">Weekly</tspan> | ||
<tspan x="760" dy="150">Meetings</tspan> | <tspan x="760" dy="150">Meetings</tspan> | ||
</text> | </text> | ||
- | </ | + | </filter> |
</svg> | </svg> |
Revision as of 12:57, 3 September 2014