Line 9: | Line 9: | ||
<script> | <script> | ||
var imagesArray = new Array(); | var imagesArray = new Array(); | ||
− | imagesArray[0] = {image:"0.png", pulls:0, wins:0, score:0}; | + | imagesArray[0] = {image:"https://static.igem.org/mediawiki/2017/0/05/0.png", pulls:0, wins:0, score:0}; |
− | imagesArray[1] = {image:" | + | imagesArray[1] = {image:"https://static.igem.org/mediawiki/2017/f/f6/Ratemygel_1.png", pulls:0, wins:0, score:0}; |
− | imagesArray[2] = {image:" | + | imagesArray[2] = {image:"https://static.igem.org/mediawiki/2017/b/b3/Ratemygel_2.png", pulls:0, wins:0, score:0}; |
− | imagesArray[3] = {image:" | + | imagesArray[3] = {image:"https://static.igem.org/mediawiki/2017/f/ff/Ratemygel_3.png", pulls:0, wins:0, score:0}; |
− | imagesArray[4] = {image:" | + | imagesArray[4] = {image:"https://static.igem.org/mediawiki/2017/9/97/Ratemygel_4.png", pulls:0, wins:0, score:0}; |
− | imagesArray[5] = {image:"5.png", pulls:0, wins:0, score:0}; | + | imagesArray[5] = {image:"https://static.igem.org/mediawiki/2017/5/56/Ratemygel_5.png", pulls:0, wins:0, score:0}; |
− | imagesArray[6] = {image:" | + | imagesArray[6] = {image:"https://static.igem.org/mediawiki/2017/9/9a/Ratemygel_6.png", pulls:0, wins:0, score:0}; |
− | imagesArray[7] = {image:" | + | imagesArray[7] = {image:"https://static.igem.org/mediawiki/2017/a/ad/Ratemygel_7.png", pulls:0, wins:0, score:0}; |
− | imagesArray[8] = {image:"8.png", pulls:0, wins:0, score:0}; | + | imagesArray[8] = {image:"https://static.igem.org/mediawiki/2017/8/88/Ratemygel_8.png", pulls:0, wins:0, score:0}; |
− | imagesArray[9] = {image:" | + | imagesArray[9] = {image:"https://static.igem.org/mediawiki/2017/6/68/Ratemygel_9.png", pulls:0, wins:0, score:0}; |
− | imagesArray[10] = {image:" | + | imagesArray[10] = {image:"https://static.igem.org/mediawiki/2017/b/b2/Ratemygel_10.png", pulls:0, wins:0, score:0}; |
var numl; | var numl; | ||
Line 54: | Line 54: | ||
copy.sort(function(a, b){return parseFloat(b.score)-parseFloat(a.score)}); | copy.sort(function(a, b){return parseFloat(b.score)-parseFloat(a.score)}); | ||
document.first.src=copy[0].image; | document.first.src=copy[0].image; | ||
+ | document.getElementById('first_score').innerHTML = copy[0].score * 100 | ||
document.second.src=copy[1].image; | document.second.src=copy[1].image; | ||
+ | document.getElementById('second_score').innerHTML = copy[1].score *100 | ||
document.third.src=copy[2].image; | document.third.src=copy[2].image; | ||
+ | document.getElementById('third_score').innerHTML = copy[2].score *100 | ||
$("#results").show(); | $("#results").show(); | ||
} | } | ||
Line 135: | Line 138: | ||
<hr /> | <hr /> | ||
<img name="first" style="width:100%; height: 100%; object-fit: contain" /> | <img name="first" style="width:100%; height: 100%; object-fit: contain" /> | ||
+ | <br> | ||
+ | <p> score=</p><p id="first_score"></p><p>%</p> | ||
<ht /> | <ht /> | ||
<p>Second Place:</p> | <p>Second Place:</p> | ||
<hr /> | <hr /> | ||
<img name="second" style="width:100%; height: 100%; object-fit: contain" /> | <img name="second" style="width:100%; height: 100%; object-fit: contain" /> | ||
+ | <br> | ||
+ | <p> score=</p><p id="second_score"></p><p>%</p> | ||
<ht /> | <ht /> | ||
<p>Third Place:</p> | <p>Third Place:</p> | ||
<hr /> | <hr /> | ||
<img name="third" style="width:100%; height: 100%; object-fit: contain" /> | <img name="third" style="width:100%; height: 100%; object-fit: contain" /> | ||
+ | <br> | ||
+ | <p> score=</p><p id="third_score"></p><p>%</p> | ||
</div> | </div> | ||
</div> | </div> |
Revision as of 03:26, 3 September 2017