-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates tasks with working description auto-height and status dropdow…
…ns. Also eliminates user list section.
- Loading branch information
1 parent
409dcde
commit 2dcf45c
Showing
4 changed files
with
113 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Test</title> | ||
<script src="https://code.jquery.com/jquery-2.2.4.min.js" charset="utf-8"></script> | ||
<script type="text/javascript"> | ||
function tellEveryone() | ||
{ | ||
var payload = {}; | ||
payload.user = $('#user').val(); | ||
payload.content = $('#message').val(); | ||
|
||
$.post({ | ||
url : 'http://localhost/api/', | ||
data: JSON.stringify(payload), | ||
contentType: 'application/json', | ||
success: function(serialId) { | ||
console.log("Uploaded serial: " + serialId); | ||
} | ||
}); | ||
} | ||
|
||
var lastSID = 0; | ||
function update() | ||
{ | ||
console.log('Waiting for news...'); | ||
|
||
$.get({ | ||
url : 'http://localhost/api/' + lastSID, | ||
contentType: 'application/json', | ||
success: function(message) { | ||
$('#messages').append('<div>' + message.content + '<br>(By ' + message.user + ')</div>'); | ||
lastSID++; | ||
update(); | ||
} | ||
}); | ||
} | ||
|
||
update(); | ||
</script> | ||
</head> | ||
<body> | ||
<div class=""> | ||
<input type="text" id="user" name="user" value="" placeholder="User"> | ||
<input type="text" id="message" name="message" value="" placeholder="Message"> | ||
<input type="button" value="Submit" onclick="tellEveryone();"> | ||
</div> | ||
<div id="messages"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,11 @@ | |
width: 100%; | ||
} | ||
|
||
textarea | ||
{ | ||
min-height: 1.2em; | ||
} | ||
|
||
.overflow | ||
{ | ||
color: #db2828 !important; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters