Browse Source

improved overview input field

master
mort 8 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



createContainer: function() { createContainer: function() {
var container = document.createElement("div"); 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); document.body.appendChild(container);
blobList.container = container; blobList.container = container;
}, },


createOverview: function() { createOverview: function() {
var overview = document.createElement("div"); 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.container.appendChild(overview);
blobList.overview = overview; blobList.overview = overview;
}, },

+ 1
- 1
package.json View File

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

Loading…
Cancel
Save