CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 10: | Line 10: | ||
$('#description_content').html(data); | $('#description_content').html(data); | ||
$('#mode').val('simple'); | $('#mode').val('simple'); | ||
− | $('#label').html(' | + | $('#label').html('At a glance'); |
$('#label').css('right', '210px'); | $('#label').css('right', '210px'); | ||
console.log('This is from console alone' + data); | console.log('This is from console alone' + data); | ||
Line 32: | Line 32: | ||
$('#description_content').html(data); | $('#description_content').html(data); | ||
$('#mode').val('scientific'); | $('#mode').val('scientific'); | ||
− | $('#label').html(' | + | $('#label').html('In depth'); |
$('#label').css('right', '199px'); | $('#label').css('right', '199px'); | ||
console.log('This is from console alone' + data); | console.log('This is from console alone' + data); |
Revision as of 22:34, 22 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('At a glance'); $('#label').css('right', '210px'); console.log('This is from console alone' + data);
}).fail(function(jqxhr, textStatus, errorThrown) {
//Write code to be executed when the request FAILS.
});
$('#Description').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('In depth'); $('#label').css('right', '199px'); console.log('This is from console alone' + data);
}).fail(function(jqxhr, textStatus, errorThrown) {
//Write code to be executed when the request FAILS.
});
$('#Description').addClass('grayscale');
}