Difference between revisions of "Team:Warwick/Medals"

Line 609: Line 609:
 
             var target = $(this).data('target');
 
             var target = $(this).data('target');
  
             // First collapse all of them
+
             if (first) {
            for (var i = 0; i < medals.length; i++) {
+
                first = false;
                var collapseElementSelector = '#' + medals[i] + '-collapse';
+
                $('#' + target).collapse('show');
                console.log('hiding ' + collapseElementSelector)
+
            } else {
                $(collapseElementSelector).collapse('hide');
+
                // First collapse all of them
 +
                for (var i = 0; i < medals.length; i++) {
 +
                    var collapseElementSelector = '#' + medals[i] + '-collapse';
 +
                    console.log('hiding ' + collapseElementSelector)
 +
                    $(collapseElementSelector).collapse('hide');
  
                // prevents html moving around on the page, show the collapse when the last one is closed
+
                    // prevents html moving around on the page, show the collapse when the last one is closed
                if (first) {
+
                    first = false;
+
                    $('#' + target).collapse('show');
+
                } else {
+
 
                     if (i == medals.length - 1) {
 
                     if (i == medals.length - 1) {
 
                         console.log('queueing show collapse');
 
                         console.log('queueing show collapse');

Revision as of 00:06, 21 October 2019

Medals

Bronze Medal
Silver Medal
Gold Medal
Special Medal

Bronze

Silver

Gold

Special

Sponsors

wellcome trust
Qiagen
BBSRC
WISB
New England Biolabs
Science Facutly Grant
School of Life Sciences
Nanopore
IDT Sponsor
EPSRC Sponsor
Warwick Global Research
SnapGene
eppendorf
Twist Bioscience