Template:Team:HokkaidoU Japan/script

From 2011.igem.org

(Difference between revisions)
Line 50: Line 50:
     $('img').each(function(){
     $('img').each(function(){
         var thumb = $(this).attr('src');
         var thumb = $(this).attr('src');
-
        //thumb = '/wiki/images/thumb/1/13/HokkaidoU_HP_1.JPG/600px-HokkaidoU_HP_1.JPG'
 
         var reg = new RegExp('^(\/wiki\/images)\/thumb');
         var reg = new RegExp('^(\/wiki\/images)\/thumb');
-
        console.log(thumb);
 
         if(thumb.match(reg)){
         if(thumb.match(reg)){
             var image = thumb.replace(reg, '$1');
             var image = thumb.replace(reg, '$1');

Revision as of 02:18, 6 October 2011