aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/index.html b/demos/index.html
index 59246426d..81f3ddd45 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -164,7 +164,9 @@
data = data.replace(/<title.*>.*<\/title>/ig,""); // Remove title tags
data = data.replace(/((href|src)=["'])(?!(http|#))/ig, "$1" + directory + "/");
+ $('#demo-style').remove();
$('#demo-frame').empty().html(data);
+ $('#demo-frame style').clone().appendTo('head').attr('id','demo-style');
$('#demo-link a').attr('href', path);
updateDemoNotes();
});