Alignment and quotes

This commit is contained in:
Angelos Chalaris
2018-03-03 14:13:35 +02:00
parent 529054d5e4
commit ad34c33427
4 changed files with 13 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -71,7 +71,6 @@ button.btn {
}
&.codepen-btn {
margin: 0.5rem auto;
display: block;
margin-top: 0.5rem;
}
}

View File

@ -18,8 +18,8 @@ snippets.forEach(snippet => {
var data = {
css : css.textContent,
title: snippet.querySelector('h3 > span').textContent,
html: html ? html.textContent.replace(/"/g, "'") : '',
js: js ? js.textContent.replace(/"/g, "'") : ''
html: html ? html.textContent : '',
js: js ? js.textContent : ''
}
codepenInput.value = JSON.stringify(data);
codepenForm.appendChild(codepenInput);