-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowserActionCode.js
69 lines (49 loc) · 1.8 KB
/
browserActionCode.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//var url = "http://www.teritree.com/";
//window.open(url,'_blank');
// JavaScript Document
var body=document.body;
var iconSrc = chrome.extension.getURL("Logo20.png");
var closeImage = chrome.extension.getURL("close.jpg");
var website = location.hostname;
var windowHeight = window.innerHeight;
var bodyWidth = document.body.style.width;
document.body.style.width="80%";
var id = 0;
//var store = new Array();
//var alts = new Array();
//alert(document.images.length);
/*
$( document ).ready(function() {
alert("bingo!");
});
*/
/*
var pickForm = document.createElement("form");
pickForm.setAttribute("name", "pickform");
pickForm.setAttribute("method","post");
pickForm.setAttribute("action","bingo.php");
*/
var maindiv = document.createElement("div");
maindiv.setAttribute("id", "mainDiv");
maindiv.setAttribute("align", "right");
maindiv.style.position="fixed";
maindiv.style.display="table";
maindiv.style.height="700px";
//maindiv.style.overflowY="scroll";width: 40%; padding-right: 0px; vertical-align: middle; display: table-cell;
//maindiv.style.overflowX="hidden";
maindiv.style.zIndex="+1000000";
maindiv.style.right="0px";
maindiv.style.top="0px";
//maindiv.style.bottom="5px";
maindiv.style.width="203px";
maindiv.style.border="2px solid #6E6E6E";
maindiv.style.backgroundColor="#F2F2F2";
maindiv.style.color="#000000";
maindiv.style.borderCollapse="seperate";
maindiv.style.borderSpacing="5px";
//but.addEventListener("click", function() {document.body.style.width=bodyWidth; mainDiv.parentNode.removeChild(mainDiv);}, false);
//pickForm.appendChild(maindiv);
//pickButDiv.addEventListener("click", function() {alert("bingo");}, false);
//document.body.appendChild(pickForm);
document.body.insertBefore(maindiv,document.body.firstChild);
//document.body.insertBefore(pickForm,document.body.firstChild);