Line 14: | Line 14: | ||
<script src='https://2017.igem.org/Team:William_and_Mary/Outreach_DB/scripts/tabletop?action=raw&ctype=text/javascript'></script> | <script src='https://2017.igem.org/Team:William_and_Mary/Outreach_DB/scripts/tabletop?action=raw&ctype=text/javascript'></script> | ||
<script src="https://2017.igem.org/Team:William_and_Mary/Outreach_DB/scripts/alasql?action=raw&ctype=text/javascript"></script> | <script src="https://2017.igem.org/Team:William_and_Mary/Outreach_DB/scripts/alasql?action=raw&ctype=text/javascript"></script> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<script src='outreach_db.js' type='text/javascript'></script> | <script src='outreach_db.js' type='text/javascript'></script> | ||
Line 140: | Line 136: | ||
$('#show-details').html(datastring); | $('#show-details').html(datastring); | ||
obj = JSON.parse(datastring); | obj = JSON.parse(datastring); | ||
+ | padInt5 = function ( i ){ | ||
+ | i.toString().padStart(5, '0') | ||
+ | }); | ||
+ | obj.id = padInt5(obj.id); | ||
console.log(obj) | console.log(obj) | ||
show_details(obj) | show_details(obj) |
Revision as of 21:13, 28 October 2017