Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<div class="container">
<h2>Enrivonment Marker Extension</h2>
<h2>Environment Marker Extension</h2>
<form class="hide-show" autocomplete="off" novalidate="">
<h3>Toggle visibility</h3>
<fieldset>
Expand Down
6 changes: 2 additions & 4 deletions app/scripts/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ function _addEnvironmentLabel() {
if(CURRENT_LOCATION.indexOf(PLUGIN_STATE.strictList[i].address) > -1) {
CURRENT_CONFIG = PLUGIN_STATE.strictList[i];
_addMarker(CURRENT_CONFIG);
return;
}
}
for(var i = 0; i<PLUGIN_STATE.regexList.length; i++) {
if(PLUGIN_STATE.regexList[i].regex.test(CURRENT_DOMAIN)) {
CURRENT_CONFIG = PLUGIN_STATE.regexList[i];
_addMarker(CURRENT_CONFIG);
return;
}
}
});
Expand Down Expand Up @@ -103,7 +101,7 @@ function _addMarker(item) {
}
wrapperDiv = document.createElement('div');
wrapperDiv.id = 'chrome-envmarker';
wrapperDiv.setAttribute('style','text-shadow: -1px -1px 0 #555, 1px -1px 0 #555, -1px 1px 0 #555, 1px 1px 0 #555; position: fixed; '+positionStyle+' background-color: #'+item.color.replace('#','')+'; opacity: 0.9; z-index: 2147483647; height: 55px; width: 290px; overflow-x: hidden; box-shadow: 7px 0px 9px #000; color: #fff; pointer-events:none;');
wrapperDiv.setAttribute('style','text-shadow: -1px -1px 0 #555, 1px -1px 0 #555, -1px 1px 0 #555, 1px 1px 0 #555; position: fixed; '+positionStyle+' background-color: #'+item.color.replace('#','')+'; opacity: 0.9; z-index: 2147483647; height: 55px; width: 290px; overflow-x: hidden; box-shadow: 7px 0px 9px #000; color: #fff; pointer-events: none; user-select: none;');

textDiv = document.createElement('div');
textDiv.id = 'chrome-envmarker-text';
Expand Down Expand Up @@ -164,4 +162,4 @@ _addEnvironmentLabel();
// detect dinamic URL update
window.onhashchange = function() {
_addEnvironmentLabel();
}
}