Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
ah01 committed Dec 26, 2016
1 parent ffc9c2b commit 15cc631
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
29 changes: 2 additions & 27 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// MQTT server to connect (must support websocket protocol)
server: {
//host: "test.mosquitto.org", port: 8080, path: ""
host: "localhost", port: 8080, path: "/"
},

Expand Down Expand Up @@ -54,33 +53,9 @@
</div>
</div>

<div id="toast">
<!--
<div class="toast-item info">
Information, huray
</div>
-->
</div>

<section class="messages">
<!--
<article class="message">
<header>
<h2>/dotgrid/text</h2><span class="mark retain">R</span><span class="mark counter">123</span>
</header>
<p>1234</p>
</article>
<div id="toast"></div>

<article class="message">
<header>
<h2>/dotgrid/text2/assdasda/sda</h2><span class="mark counter">8888</span>
</header>
<p>Nějaká hodně dlouhý<br>více řádkový<br>text</p>
</article>
-->
</section>
<section class="messages"></section>

<div id="footer">
<p class="status">
Expand Down
28 changes: 27 additions & 1 deletion src/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ html, body{
}
}

/*
Toast code:
<div id="toast">
<div class="toast-item info">
Information, huray
</div>
</div>
*/
#toast {
position: absolute;
top: 0;
Expand Down Expand Up @@ -101,6 +110,24 @@ html, body{
}
}

/*
Messages code:
<section class="messages">
<article class="message">
<header>
<h2>/dotgrid/text</h2><span class="mark retain">R</span><span class="mark counter">123</span>
</header>
<p>1234</p>
</article>
<article class="message">
<header>
<h2>/dotgrid/text2/assdasda/sda</h2><span class="mark counter">8888</span>
</header>
<p>Nějaká hodně dlouhý<br>více řádkový<br>text</p>
</article>
</section>
*/
.messages {
padding-top: 2.4em; // height of header

Expand Down Expand Up @@ -208,4 +235,3 @@ html, body{
}
}
}

0 comments on commit 15cc631

Please sign in to comment.