diff --git a/playground/script.js b/playground/script.js index 9a71bca..9774b57 100644 --- a/playground/script.js +++ b/playground/script.js @@ -50,11 +50,11 @@ const showCode = () => { const codeText = document.createElement('code'); let codeString = `${codeDefaultText}'${state.character}', { - colour: '${state.colour}', - size: ${state.size}${state.flip ? ',' : ''}`; - codeString += state.flip ? `
    flip: ${state.flip}` : '';codeString += state.outline ? ',' : ''; - codeString += state.outline ? `
    outline: ${state.outline}` : '';codeString += state.animate ? ',' : ''; - codeString += state.animate ? `
    animate: ${state.animate}` : ''; + colour: '${state.colour}', + size: ${state.size}${state.flip ? ',' : ''}`; + codeString += state.flip ? `
    flip: ${state.flip}` : '';codeString += state.outline ? ',' : ''; + codeString += state.outline ? `
    outline: ${state.outline}` : '';codeString += state.animate ? ',' : ''; + codeString += state.animate ? `
    animate: ${state.animate}` : ''; codeString += '
});'; codeText.innerHTML = codeString;