Browse Source

improved overview input field

master
mort 6 years ago
parent
commit
110dd25798
2 changed files with 27 additions and 20 deletions
  1. 26
    19
      data/onload.js
  2. 1
    1
      package.json

+ 26
- 19
data/onload.js View File

@@ -83,31 +83,38 @@ var blobList = {

createContainer: function() {
var container = document.createElement("div");
container.style =
"pointer-events: none;"+
"display: none;"+
"position: absolute;"+
"top: 0px;"+
"left: 0px;"+
"z-index: 2147483647"; //Max z-index value in most browsers
container.style = [
"pointer-events: none",
"display: none",
"position: absolute;",
"top: 0px",
"left: 0px",
"z-index: 2147483647",
"box-sizing: content-box",
""
].join(" !important;");
document.body.appendChild(container);
blobList.container = container;
},

createOverview: function() {
var overview = document.createElement("div");
overview.style =
"position: fixed;"+
"top: 0px;"+
"left: 0px;"+
"background-color: white;"+
"border-bottom: 2px solid black;"+
"border-right: 2px solid black;"+
"color: black;"+
"font-size: 8pt;"+
"padding: 3px;"+
"height: 15px;"+
"z-index: 2147483647"; //Max z-index value in most browsers
overview.style = [
"position: fixed",
"top: 0px",
"left: 0px",
"background-color: white",
"border-bottom: 2px solid black",
"border-right: 2px solid black",
"color: black",
"font: 8pt sans-serif",
"padding: 3px",
"height: 15px",
"line-height: 15px",
"z-index: 2147483647",
"box-sizing: content-box",
""
].join(" !important;");
blobList.container.appendChild(overview);
blobList.overview = overview;
},

+ 1
- 1
package.json View File

@@ -1,7 +1,7 @@
{
"title": "Mouseless",
"name": "mouseless",
"version": "0.3.1",
"version": "0.3.2",
"description": "For a mouseless future.",
"main": "index.js",
"author": "Martin Dørum Nygaard",

Loading…
Cancel
Save