Team:Valencia Biocampus/Team

From 2013.igem.org

(Difference between revisions)
Line 291: Line 291:
     <script type="text/javascript">
     <script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
-
// add a hash to the URL when the user clicks on a tab
 
-
$('a[data-toggle="tab"]').on('click', function(e) {
 
-
history.pushState(null, null, $(this).attr('href'));
 
-
});
 
-
// navigate to a tab when the history changes
 
-
window.addEventListener("popstate", function(e) {
 
-
var activeTab = $('[href=' + location.hash + ']');
 
-
if (activeTab.length) {
 
-
activeTab.tab('show');
 
-
} else {
 
-
$('.nav-tabs a:first').tab('show');
 
-
}
 
-
});
 
-
});
 
-
 
// cache the id
// cache the id
var navbox = $('#myTab');
var navbox = $('#myTab');
// activate tab on click
// activate tab on click
navbox.on('click', 'a', function (e) {
navbox.on('click', 'a', function (e) {
 +
// add a hash to the URL when the user clicks on a tab
 +
  history.pushState(null, null, $(this).attr('href'));
   var $this = $(this);
   var $this = $(this);
   // prevent the Default behavior
   // prevent the Default behavior
Line 317: Line 304:
   // activate the clicked tab
   // activate the clicked tab
   $this.tab('show');
   $this.tab('show');
-
return false;
+
  return false;
})
})
Line 324: Line 311:
   // show right tab on load (read hash from address bar)
   // show right tab on load (read hash from address bar)
   $('a[href="'+window.location.hash+'"]').tab('show');
   $('a[href="'+window.location.hash+'"]').tab('show');
-
  $(window).scrollTop(0);
+
}
-
}
+
// navigate to a tab when the history changes
 +
  window.addEventListener("popstate", function(e) {
 +
    var activeTab = $('[href=' + location.hash + ']');
 +
    if (activeTab.length) {
 +
        activeTab.tab('show');
 +
    } else {
 +
        $('.nav-tabs a:first').tab('show');
 +
    }
 +
  });
 +
});
     </script>
     </script>
</html>
</html>

Revision as of 11:56, 20 September 2013

Show/hide wiki menu

Valencia Biocampus

We are the Valencia Biocampus Team, a group of 10 students from the University of Valencia and the Politechnical University of Valencia.

If you want to contact us, become a sponsor or you liked the idea, please address us using the button below:
The team

Team - Advisors

  • Lucas J. Morales

    Lucas J. Morales

  • Alejandro Vignoni

    Alejandro Vignoni

  • Gabi Chacón

    Gabi Chacón

  • Cristina Vilanova

    Cristina Vilanova

  • Sergio López

    Sergio López

Team - Universities

logo UPV

University of Valencia

University of Valencia

Our university, founded over five centuries ago by the Juries of Valencia, has become a modern, public university that teaches all areas of knowledge: social, economic and legal sciences, experimental sciences, engineering, health sciences, educational sciences and humanities.


The university community is committed to being a university of reference: we are ranked second in Europe in receiving Erasmus students and fourth among Spanish universities in research. According to the most prestigious international rankings, we are ranked fourth in Spain.

logo UPV

Polytechnic University of Valencia

Polytechnic University of Valencia

The Polytechnic University of Valencia (UPV) is a public educational institution that offers modern, flexible degrees that are designed to meet the demands of society, as well as official postgraduate programmes that are subject to demanding educational quality control systems.


It has three campus sites: Vera (inside the city of Valencia), Alcoy and Gandia, with a total of 36.186 students, 2.843 members of teaching and research staff, and 2.396 administrative and services staff.