clear-urls-browser-extension/popup.js
Kevin Röbert 483b8d48d2 Popup
2017-08-04 16:52:54 +02:00

30 lines
834 B
JavaScript

var status = "on";
var exception = "off";
function changeStatus(){
var element = document.getElementById('status');
var val = "Global Enable";
if(status == "on"){
val = " Global Disable";
status = "off";
element.className = "disable";
}else{
status = "on";
element.className = "enable";
}
element.innerHTML = val;
}
function handleException(){
var element = document.getElementById('exception');
var val = "Enable on page";
if(exception == "off"){
val = "Disable on page";
exception = "on";
element.className = "disable";
}else{
exception = "off";
element.className = "enable";
}
element.innerHTML = val;
}