Skip to content

Commit bc10905

Browse files
committed
add ids for extraction later
1 parent accaa17 commit bc10905

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
file = file.split('%css%').join(bin.css);
7373
} else {
7474
// is there head tag?
75-
css = '<style>\n' + css + '\n</style>\n';
75+
css = '<style id="jsbin-css">\n' + css + '\n</style>\n';
7676
var head = insert(file, '</head>', css);
7777
if (head) {
7878
file = head;
@@ -104,7 +104,7 @@
104104
file = file.split('%code%').join(javascript);
105105
} else {
106106
// is there head tag?
107-
javascript = '<script>\n' + javascript + '\n</script>';
107+
javascript = '<script id="jsbin-javascript">\n' + javascript + '\n</script>';
108108
var body = insert(file, '</body>', javascript + '\n');
109109
if (body) {
110110
file = body;
@@ -123,7 +123,7 @@
123123
}
124124
var content = safeForHTML(source[type]);
125125
if (content) {
126-
return '\n<script id="jsbin-panel-' + type + '" type="text/' + (processors[type] || type) + '">\n' + content + '</script>';
126+
return '\n<script id="jsbin-source-' + type + '" type="text/' + (processors[type] || type) + '">\n' + content + '</script>';
127127
}
128128
}).join('\n');
129129

0 commit comments

Comments
 (0)