forked from lbsadmin/nodeMessageBoard
Compare commits
3 Commits
reorder_ht
...
master
Author | SHA1 | Date | |
---|---|---|---|
fd183a7d4f | |||
de0480b859 | |||
236cae183a |
@ -137,7 +137,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<h2>Send an SMS with a message to <span class="number" style="color:#3399ff;"></span></h2>
|
||||
<h2 style="display: none;">Send an SMS with a message to <span class="number" style="color:#3399ff;"></span></h2>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
91
demo.html
91
demo.html
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=320, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Chat</title>
|
||||
<script src="/js/jquery-1.12.1.min"></script>
|
||||
<script src="/js/jquery-ui.js"></script>
|
||||
@ -80,8 +80,9 @@
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
@import url('https://fonts.googleapis.com/css?family=Noto+Sans');
|
||||
* {
|
||||
font-family: "Arial";
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
@ -97,7 +98,7 @@
|
||||
|
||||
#chat_box {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
height: calc(100% - 50px);
|
||||
overflow: auto;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
@ -116,14 +117,18 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#user { width: 20%; }
|
||||
#message { width: 68%; }
|
||||
#number {
|
||||
width: 20%;
|
||||
max-width: 240px;
|
||||
}
|
||||
#message {
|
||||
width: calc(90% - 360px);
|
||||
}
|
||||
|
||||
#send_btn {
|
||||
width: 10%;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
width: 120px;
|
||||
position: relative;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.content {
|
||||
@ -140,20 +145,23 @@
|
||||
input[type="text"] {
|
||||
background-color: #146EA8;
|
||||
padding: 3px 10px;
|
||||
margin: 2px;
|
||||
max-width: 92%;
|
||||
}
|
||||
|
||||
input[type="button"] {
|
||||
background-color: #f39c12;
|
||||
border-right: 2px solid #e67e22;
|
||||
border-bottom: 2px solid #e67e22;
|
||||
border-right: 1px solid #e67e22;
|
||||
border-bottom: 1px solid #e67e22;
|
||||
min-width: 70px;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
input[type="button"]:hover {
|
||||
background-color: #e67e22;
|
||||
border-right: 2px solid #f39c12;
|
||||
border-bottom: 2px solid #f39c12;
|
||||
border-right: 1px solid #f39c12;
|
||||
border-bottom: 1px solid #f39c12;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@ -165,23 +173,54 @@
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@media(max-width: 1000px) {
|
||||
@media screen and (max-width: 1000px) {
|
||||
.content { width: 90%; }
|
||||
#send_btn {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 780px) {
|
||||
#footer { height: 91px; }
|
||||
#chat_box { padding-bottom: 91px; }
|
||||
|
||||
#user { width: 100%; }
|
||||
#message { width: 80%; }
|
||||
@media screen and (max-width: 780px) {
|
||||
#footer {
|
||||
height: 91px;
|
||||
}
|
||||
#chat_box {
|
||||
padding-bottom: 91px;
|
||||
height: calc(100% - 91px);
|
||||
}
|
||||
|
||||
@media(max-width: 400px) {
|
||||
#footer { height: 135px; }
|
||||
#chat_box { padding-bottom: 135px; }
|
||||
#number {
|
||||
width: 100%;
|
||||
}
|
||||
#message {
|
||||
min-width: 60%;
|
||||
}
|
||||
#send_btn {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 3px;
|
||||
margin: 0;
|
||||
width: 10%;
|
||||
}
|
||||
}
|
||||
|
||||
#message { width: 100%; }
|
||||
@media screen and (max-width: 400px) {
|
||||
#footer {
|
||||
height: 135px;
|
||||
}
|
||||
#chat_box {
|
||||
padding-bottom: 135px;
|
||||
height: calc(100% - 135px);
|
||||
|
||||
}
|
||||
|
||||
#number {
|
||||
max-width: none;
|
||||
width: 93%;
|
||||
}
|
||||
#message {
|
||||
width: 93%;
|
||||
}
|
||||
#send_btn {
|
||||
position: relative;
|
||||
margin-top: 3px;
|
||||
@ -197,7 +236,7 @@
|
||||
<div id="footer">
|
||||
<div class="content">
|
||||
<input type="text" id="number" value="+4301234567890" />
|
||||
<input type="text" id="message" onkeypress="return submitEnter(event)" placeholder="Enter a Test Message! (Or emoji!, google if if you don't know how)" />
|
||||
<input type="text" id="message" onkeypress="return submitEnter(event)" placeholder="Enter a Message" />
|
||||
<input type="button" id="send_btn" value="Send" onclick="sendMessage()">
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,7 +4,6 @@
|
||||
"description": "A SMS Messageboard built using node and express",
|
||||
"main": "app.js",
|
||||
"dependencies": {
|
||||
"async": "^2.0.0-rc.6",
|
||||
"emojize": "^0.2.0",
|
||||
"lowdb": "^0.12.5",
|
||||
"serialport": "^4.0.5",
|
||||
|
Reference in New Issue
Block a user