Alignment and quotes
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -71,7 +71,6 @@ button.btn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.codepen-btn {
|
&.codepen-btn {
|
||||||
margin: 0.5rem auto;
|
margin-top: 0.5rem;
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,8 +18,8 @@ snippets.forEach(snippet => {
|
|||||||
var data = {
|
var data = {
|
||||||
css : css.textContent,
|
css : css.textContent,
|
||||||
title: snippet.querySelector('h3 > span').textContent,
|
title: snippet.querySelector('h3 > span').textContent,
|
||||||
html: html ? html.textContent.replace(/"/g, "'") : '',
|
html: html ? html.textContent : '',
|
||||||
js: js ? js.textContent.replace(/"/g, "'") : ''
|
js: js ? js.textContent : ''
|
||||||
}
|
}
|
||||||
codepenInput.value = JSON.stringify(data);
|
codepenInput.value = JSON.stringify(data);
|
||||||
codepenForm.appendChild(codepenInput);
|
codepenForm.appendChild(codepenInput);
|
||||||
|
|||||||
Reference in New Issue
Block a user