Update screenshots.html

This commit is contained in:
Guido Tapia 2011-12-07 10:48:06 +11:00
parent 88174fe136
commit 98c2bd638e

View File

@ -252,7 +252,10 @@
}); });
$('base').attr('href',urlParts.protocol+"//"+urlParts.hostname+"/"); $('base').attr('href',urlParts.protocol+"//"+urlParts.hostname+"/");
html = html.replace("<head>","<head><base href='"+urlParts.protocol+"//"+urlParts.hostname+"/' />"); var base = "<base href='"+urlParts.protocol+"//"+urlParts.hostname+"/' />";
var headIdx = html.indexOf('<head');
var endHeadIdx = html.indexOf('>', headIdx);
html = html.substring(0, endHeadIdx + 1) + base + html.substring(endHeadIdx + 1);
if ($("#disablejs").prop('checked')){ if ($("#disablejs").prop('checked')){
html = html.replace(/\<script/gi,"<!--<script"); html = html.replace(/\<script/gi,"<!--<script");
html = html.replace(/\<\/script\>/gi,"<\/script>-->"); html = html.replace(/\<\/script\>/gi,"<\/script>-->");