summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-02-24 17:17:56 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-02-24 17:17:56 +0100
commit48fdf4cb3b39fdce585582d8714e18784d3f4b68 (patch)
treeba71cdfd4efd133d2661f714ca6a3864e798b4cd
parent48cd878e5a0cfaedae93fc515148e784e1534fbd (diff)
parente7865e55ee83c9260adc738327f29a996edfe8ef (diff)
Merge branch 'master' of https://git.oftal.dk/munia
-rw-r--r--munia.html44
1 files changed, 28 insertions, 16 deletions
diff --git a/munia.html b/munia.html
index 46feb61..2a833eb 100644
--- a/munia.html
+++ b/munia.html
@@ -2,20 +2,38 @@
<html lang="en">
<head>
<title>Munia</title>
+<style>
+body {
+cursor: default;
+}
+
+.task {
+-webkit-touch-callout: none;
+-webkit-user-select: none;
+-khtml-user-select: none;
+-moz-user-select: none;
+-ms-user-select: none;
+-o-user-select: none;
+user-select: none;
+cursor: move;
+background-color: grey;
+border-style: solid;
+border-width: medium;
+border-radius: 15px;
+padding: 4px;
+}
+
+.task:hover
+{
+background-color:yellow;
+}
+</style>
</head>
<body id="body">
-<select id="color" onchange="update_color();">
- <option value="#000000">Black</option>
- <option value="#0000ff">Blue</option>
- <option value="#20ff20">Green</option>
- <option value="#802020">Dark Red</option>
-</select>
<div id="wslm_status">Not initialized</div>
-<div id="wslm_lastmsg"></div>
-<div id="wslm_drawing"></div>
-<div id="box" style="position: absolute;">Hello World</div>
<input type="text" id="input_data" value="add title description 100 100" onfocus="clear()"/>
<input type="button" value="submit" onclick="submit()"/>
+<div id="wslm_lastmsg"></div>
</div>
<script>
var BrowserDetect = {
@@ -156,6 +174,7 @@ try {
else if (i[0] == "add") {
var task = document.createElement("div");
task.name = "task";
+ task.setAttribute("class", "task");
task.id = "task_" + i[1];
var taskText = document.createTextNode(i[2] + ": " + i[3] + " :" + task.id);
@@ -164,11 +183,6 @@ try {
task.style.position = "absolute";
task.style.left = i[4] + "px";
task.style.top = i[5] + "px";
- task.style.backgroundColor = "grey";
- task.style.borderStyle= "solid";
- task.style.borderWidth= "medium";
- task.style.borderRadius= "15px";
- task.style.padding = "4px";
task.setAttribute("onMouseDown", "dragged = '" + i[1] + "';");
var dlButton = document.createElement("input");
@@ -200,8 +214,6 @@ canvas.height = 600;
canvas.width = 800;
ctx = canvas.getContext("2d");
-document.getElementById('wslm_drawing').appendChild(canvas);
-
document.addEventListener('mousemove', ev_mousemove, false);
document.addEventListener('mouseup', ev_mouseup, false);
/*