File tree Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -67,34 +67,46 @@ <h2>PlayGround</h2>
6767
6868< p > Let's run these JS on this page.</ p >
6969
70- < code-block language ="js ">
70+ < code-block language ="js " controls >
7171< textarea > {
7272 const value = `< div >
73- < h2 > Hello world</ h2 >
73+ < h2 > Hello world</ h2 >
7474
75- < p > This is sample markup.</ p >
76- </ div > `
75+ < p class =" example " > This is sample markup.</ p >
76+ </ div > `;
7777
7878 cb.value = value;
7979 cb.language = 'html';
8080}</ textarea >
8181</ code-block >
8282
83- < code-block language ="js ">
83+ < code-block language ="js " controls >
8484< textarea > {
8585 const value = `{
86- "items": [
87- 100,
88- null,
89- "this is sample json"
90- ]
91- }`
86+ "items": [
87+ 100,
88+ null,
89+ "This is sample json"
90+ ]
91+ }`;
9292
9393 cb.value = value;
9494 cb.language = 'json';
9595}</ textarea >
9696</ code-block >
9797
98+ < code-block language ="js " controls >
99+ < textarea > {
100+ const value = `body {
101+ /* This is sample css */
102+ font-size: 100px;
103+ }`;
104+
105+ cb.value = value;
106+ cb.language = 'css';
107+ }</ textarea >
108+ </ code-block >
109+
98110</ main >
99111< script >
100112window . cb = document . getElementById ( 'cb' ) ;
You can’t perform that action at this time.
0 commit comments