Team:Heidelberg/languageIntroTest

From 2013.igem.org

(Difference between revisions)
m
m
Line 6: Line 6:
<div class="btn-group lang">
<div class="btn-group lang">
   <button data-target=".french" type="button" class="btn btn-default"><img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png"></button>
   <button data-target=".french" type="button" class="btn btn-default"><img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png"></button>
-
   <button data-target="italian" class="btn btn-default"><img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png"></button>
+
   <button data-target=".italian" class="btn btn-default"><img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png"></button>
   <button type="button" class="btn btn-default"><img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png"></button>
   <button type="button" class="btn btn-default"><img style="max-width:10px;" src="https://static.igem.org/mediawiki/2013/b/b8/Heidelberg_start_flags_France.png"></button>
</div>
</div>
Line 33: Line 33:
$( document ).ready(function() {
$( document ).ready(function() {
$(".lang button").click(function(e){
$(".lang button").click(function(e){
 +
  console.log("I was clicked");
   btn = $(e.target);
   btn = $(e.target);
   btnLang = btn.attr("data-target");
   btnLang = btn.attr("data-target");

Revision as of 11:08, 4 October 2013