summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/applications/spoken-map-ticker.xhtml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-29 09:52:14 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-29 09:52:14 (GMT)
commit442204d0f510cb033cb75a542b010f4f90cbd2a3 (patch)
treea243159f780aa77d53d2523a0dea7a365613ae21 /test/samples/uscxml/applications/spoken-map-ticker.xhtml
parentafda86c8ba1f2ce3dc89a56bf9bccc62c52ff240 (diff)
downloaduscxml-442204d0f510cb033cb75a542b010f4f90cbd2a3.zip
uscxml-442204d0f510cb033cb75a542b010f4f90cbd2a3.tar.gz
uscxml-442204d0f510cb033cb75a542b010f4f90cbd2a3.tar.bz2
Some bug-fixes and enhancements to build-process
Diffstat (limited to 'test/samples/uscxml/applications/spoken-map-ticker.xhtml')
-rw-r--r--test/samples/uscxml/applications/spoken-map-ticker.xhtml8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/samples/uscxml/applications/spoken-map-ticker.xhtml b/test/samples/uscxml/applications/spoken-map-ticker.xhtml
index 98df9ea..ace8724 100644
--- a/test/samples/uscxml/applications/spoken-map-ticker.xhtml
+++ b/test/samples/uscxml/applications/spoken-map-ticker.xhtml
@@ -68,7 +68,7 @@
markers[message.id].feature.popupContentHTML = "<h3>" + message.id + "</h3>" + message.html;
}
- if (message.lastMsg && message.lastMsg.length > 0) {
+ if (message.message && message.message.length > 0) {
var messageDiv = $("#message")[0];
if (message.timeStamp > lastUpdateTime + 3000) {
var timeRuler = document.createElement("div");
@@ -82,7 +82,11 @@
console.log(lastUpdateTime);
var messagePara = document.createElement("p");
- messagePara.innerHTML += message.lastMsg; // + messageDiv.innerHTML;
+ if (message.severity > 7) {
+ messagePara.setAttribute("style", "color:red; font-weight:bold;");
+ }
+ messagePara.innerHTML += message.message; // + messageDiv.innerHTML;
+
messageDiv.appendChild(messagePara);
messagePara.addEventListener("mousedown", function() {
var marker = markers[message.id].marker;