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'); | ||
- | |||
var reg = new RegExp('^(\/wiki\/images)\/thumb'); | var reg = new RegExp('^(\/wiki\/images)\/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