Team:Heidelberg/languageIntroTest

From 2013.igem.org

(Difference between revisions)
m
m
Line 4: Line 4:
<div class="row" style="margin-top:10%">
<div class="row" style="margin-top:10%">
-
<div class="btn-group">
+
<div class="btn-group lang">
-
   <button onclick="showLang()" 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>
Line 30: Line 30:
<script type="text/javascript">
<script type="text/javascript">
-
function showLang() {
+
function showLang(e) {
-
  console.log(this);
+
  console.log(e.target);
}
}
 +
 +
$( document ).ready(function() {
 +
$(".lang button").click(showLang(e));
 +
});
</script>
</script>
</html>
</html>

Revision as of 10:54, 4 October 2013