Difference between revisions of "Dev/Awards2"

Line 51: Line 51:
  
 
function load_these_items ( source_page , destination_div ) {
 
function load_these_items ( source_page , destination_div ) {
 +
 +
var links = "";
  
 
$("#"+destination_div ).load( source_page , function() {   
 
$("#"+destination_div ).load( source_page , function() {   
 +
  
 
$( "li" ).each(function( index ) {
 
$( "li" ).each(function( index ) {
  
$( this ).prepend("<div><a href=\"https://2017.igem.org/Team:\"+$( this ).text()+ ">" );
+
links = "<a href=\'https://2017.igem.org/Team:" + $( this ).text() + "'\";
 +
$( this ).prepend("<div>"+links+"</div>");
  
 
});
 
});

Revision as of 18:29, 6 November 2017

MENU

Awards demo