Skip to content

Commit

Permalink
Move initial playground source to HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
remino committed Aug 20, 2024
1 parent f925966 commit 23b5d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { dracula } from 'thememirror'

class PlaygroundApp extends HTMLElement {
connectedCallback() {
const doc = this.innerHTML

this.innerHTML = `
<nav>
<menu>
Expand All @@ -22,7 +24,6 @@ class PlaygroundApp extends HTMLElement {
`

const iframes = this.querySelectorAll('iframe')
const doc = '<h1>Hello!</h1>\n\n<p>Edit me!</p>Proident proident amet magna nisi adipisicing ullamco amet in.Proident proident amet magna nisi adipisicing ullamco amet in.Proident proident amet magna nisi adipisicing ullamco amet in.Proident proident amet magna nisi adipisicing ullamco amet in.Proident proident amet magna nisi adipisicing ullamco amet in.\n'

iframes[0].srcdoc = `
<!DOCTYPE html>
Expand Down
3 changes: 3 additions & 0 deletions source/semcss/playground.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
h1 Playground

playground-app
| <h1>Hello!</h1>

<p>Edit me!</p>

nav
a[href="#"] Back to Top

0 comments on commit 23b5d55

Please sign in to comment.