CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 8: | Line 8: | ||
"data": {} | "data": {} | ||
}).done(function(data, textStatus, jqxhr) { | }).done(function(data, textStatus, jqxhr) { | ||
− | $('# | + | $('#description_content').html(data); |
$('#mode').val('simple'); | $('#mode').val('simple'); | ||
$('#label').html('Scientist Mode'); | $('#label').html('Scientist Mode'); | ||
Line 29: | Line 29: | ||
"data": {} | "data": {} | ||
}).done(function(data, textStatus, jqxhr) { | }).done(function(data, textStatus, jqxhr) { | ||
− | $('# | + | $('#description_content').html(data); |
$('#mode').val('scientific'); | $('#mode').val('scientific'); | ||
$('#label').html('General Mode'); | $('#label').html('General Mode'); |
Revision as of 18:18, 5 October 2017
function importScientific(){
$.ajax({ "url": 'https://static.igem.org/mediawiki/2017/2/25/Back.txt', "type": "GET", "dataType": "text", "timeout": 10000, "data": {}
}).done(function(data, textStatus, jqxhr) {
$('#description_content').html(data); $('#mode').val('simple'); $('#label').html('Scientist Mode'); console.log('This is from console alone' + data);
}).fail(function(jqxhr, textStatus, errorThrown) {
//Write code to be executed when the request FAILS.
});
$('#results').removeClass('grayscale');
}
function importGeneral(){
$.ajax({ "url": 'https://static.igem.org/mediawiki/2017/2/24/GreeKom_front.txt', //'https://static.igem.org/mediawiki/2017/2/23/Front.txt', "type": "GET", "dataType": "text", "timeout": 10000, "data": {}
}).done(function(data, textStatus, jqxhr) {
$('#description_content').html(data); $('#mode').val('scientific'); $('#label').html('General Mode'); console.log('This is from console alone' + data);
}).fail(function(jqxhr, textStatus, errorThrown) {
//Write code to be executed when the request FAILS.
});
$('#results').addClass('grayscale');
}