Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
use pre el
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Feb 27, 2017
1 parent 6c4734c commit 66e39a7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js",
"build": "browserify static/scripts/client.js > static/scripts/bundle.js"
"build": "browserify ./static/scripts/client.js > ./static/scripts/bundle.js",
"watch": "watchify ./static/scripts/client.js -o ./static/scripts/bundle.js"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<header id="header">
<h1>Streamlet</h1>
<hgroup>
<small>share this url. nothing is stored, only streamed.</small>
<small>nothing is stored, only streamed. you can use any path name for the share url below.</small>
<input id="share-url" type="text" placeholder="share url" />
</hgroup>
</header>
Expand Down
4 changes: 3 additions & 1 deletion static/scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -9194,8 +9194,10 @@ stream.pipe(through(data => {
el.appendChild(dv);
}
} else {
const d = create(`pre`);
const t = create(`text`)(data);
el.appendChild(t);
d.appendChild(t);
el.appendChild(d);
}

el.appendChild(dt);
Expand Down
4 changes: 3 additions & 1 deletion static/scripts/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ stream.pipe(through(data => {
el.appendChild(dv);
}
} else {
const d = create(`pre`);
const t = create(`text`)(data);
el.appendChild(t);
d.appendChild(t);
el.appendChild(d);
}

el.appendChild(dt);
Expand Down
1 change: 1 addition & 0 deletions static/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ h1 {
font-size: 12px;
margin: 15px 0 0 0;
text-align: right;
color: #999;
}

#output img {
Expand Down

0 comments on commit 66e39a7

Please sign in to comment.