Skip to content
Permalink
Browse files

demos: view source should show the actual full source, not just the j…

…avascript
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jan 24, 2009
1 parent 7b38012 commit 90c53fab7c216c7f85a0c62694e36281392e2368
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/index.html
@@ -153,7 +153,7 @@
function loadDemo(path) {
var directory = path.match(/([^\/]+)\/[^\/\.]+\.html$/)[1];
$.get(path, function(data) {
var source = data.match(/<script.*>.*<\/script>/ig)[1];
var source = data;
data = data.replace(/<script.*>.*<\/script>/ig,""); // Remove script tags
data = data.replace(/<\/?link.*>/ig,""); //Remove link tags
data = data.replace(/<\/?html.*>/ig,""); //Remove html tag

0 comments on commit 90c53fa

Please sign in to comment.
You can’t perform that action at this time.