");
insert(0, 0x5b);
// insert(0x190,0x1E3);
// insert(0x320,0x369);
// insert(0x4B0,0x553);
// insert(0x7D0,0x83C);
// insert(0x960, 0x988);
// insert(0xAF0, 0xBA2);
// insert(0xE10,0xE70);
mywall();
}
function insert(a, b) {
// alert('fsdfdsf');
var s = '';
var j = 0;
for (var i = a; i <= b; i++) {
if (j % 10 == 0) {
s += "
";
}
j++;
var hex = decimalToHex(i, 3);
// s += "þ" + hex + ";"; // + ",FE" + hex + "," + toUtf16(i);
s += '.';
}
icons.innerHTML = s;
}
function send(a, b) {
tocopy.style.visibility = "visible";
tocopy1.innerHTML += '';
div.innerHTML += a;
tocopy2.value += a;
}
function insert1(a, b) {
// alert('fsdfdsf');
for (var i = a; i <= b; i++) {
if (j % 10 == 0) {
icons.appendChild(document.createElement("br"));
}
j++;
var c = document.createElement("span");
var hex = decimalToHex(i, 3);
c.innerHTML = "";
var img = document.createElement("image");
// img.src = "mail.google.com/mail/e/ezweb_ne_jp/" + hex;
img.src = "https://mail.google.com/mail/e/" + hex;
icons.appendChild(c);
icons.appendChild(img);
}
}
function click(url) {
chrome.tabs.create({ url: url });
}
function decimalToHex(d, padding) {
var hex = Number(d).toString(16).toUpperCase();
padding = typeof (padding) === "undefined" || padding === null ? padding = 2 : padding;
while (hex.length < padding) {
hex = "0" + hex;
}
return hex;
}
function toUtf16(d) {
var m = 0x400;
var a1 = Math.floor(d / m);
var a2 = Math.floor(d % m);
var b1 = 0xDBB8 + a1;
var b2 = 0xDC00 + a2;
// var o = Math.floor(b2 / 0x100) - 0xDF;
// console.log(o);
// if (o > 0) {
// b2 = 0xDC00 + b2%0x100;
// b1 += o;
// }
u = "\\u";
u += decimalToHex(b1, 4);
u += "\\u";
u += decimalToHex(b2, 4);
return u;
}
function bootStrap() {
chrome.windows.getCurrent(function (currentWindow) {
alert(currentWindow.id);
currentWindowId = currentWindow.id;
chrome.windows.getLastFocused(function (focusedWindow) {
focusedWindowId = focusedWindow.id;
alert(focusedWindowId);
focusedWindow.alert('sdsd');
// loadWindowList();
});
// currentWindow.alert("sdsdsdsd");
});
}
function bootStrap2() {
console.log("dsfsd fdsf dsf ");
chrome.tabs.getSelected(null, function (tab) {
chrome.tabs.sendRequest(tab.id, { greeting: "hello" }, function (response) {
console.log(response.farewell);
window.close();
});
});
}
function bootStrap3() {
if (ie) {
tocopy2.createTextRange();
// range.execCommand('Copy');
tocopy2.select();
// tocopy2.execCommand('Copy');
document.execCommand("Copy");
}
else {
doc.designMode = "on";
doc.execCommand("selectAll", false, null);
doc.execCommand("copy", false, null);
//doc.execCommand("copy");
// doc.designMode = "off";
}
}
function clear() {
tocopy.style.visibility = "hidden";
tocopy1.innerHTML =
tocopy2.value =
div.innerHTML = "";
}
function mywall() {
document.getElementById("fUid").style.display = "none";
document.getElementById("gUid").style.display = "none";
document.getElementById("Pes").style.display = "none";
}
function frwall() {
document.getElementById("fUid").style.display = "block";
document.getElementById("gUid").style.display = "none";
document.getElementById("Pes").style.display = "none";
}
function grwall() {
document.getElementById("gUid").style.display = "block";
document.getElementById("fUid").style.display = "none";
document.getElementById("Pes").style.display = "none";
}
function show1() {
document.getElementById("xwijaya").style.display = "block";
document.getElementById("capt").style.display = "none";
document.getElementById("desc").style.display = "none";
document.getElementById("pict").style.display = "none";
document.getElementById("swfu").style.display = "none";
document.getElementById("mpeu").style.display = "none";
document.getElementById("jdl").style.display = "none";
document.getElementById("xmlu").style.display = "none";
document.getElementById("gbrbox").style.display = "none";
document.getElementById("power").style.display = "none";
}
function show2() {
document.getElementById("xwijaya").style.display = "block";
document.getElementById("capt").style.display = "block";
document.getElementById("desc").style.display = "block";
document.getElementById("pict").style.display = "block";
document.getElementById("swfu").style.display = "block";
document.getElementById("xmlu").style.display = "block";
document.getElementById("mpeu").style.display = "none";
document.getElementById("jdl").style.display = "none";
document.getElementById("gbrbox").style.display = "block";
}
function show3() {
document.getElementById("xwijaya").style.display = "block";
document.getElementById("capt").style.display = "block";
document.getElementById("desc").style.display = "block";
document.getElementById("pict").style.display = "none";
document.getElementById("swfu").style.display = "none";
document.getElementById("xmlu").style.display = "none";
document.getElementById("jdl").style.display = "block";
document.getElementById("mpeu").style.display = "block";
document.getElementById("gbrbox").style.display = "none";
document.getElementById("power").style.display = "none";
}
function bukaImg() {
if (document.getElementById("power")) {
if (document.getElementById("power").style.display == 'none') {
document.getElementById("power").style.display = 'block';
}
else {
document.getElementById("power").style.display = 'none';
}
}
}
function klik_gbr(isi) {
document.getElementById('txt3').value = isi;
}