Pavel Loginov 2020-12-01 10:31:50 +06:00
parent d5a8cd5ba9
commit 3b25ad6de9
3 changed files with 29 additions and 6 deletions

View File

@ -1296,6 +1296,7 @@ function createList(color) {
} else { } else {
list = $('#new_blacklist_name').val() list = $('#new_blacklist_name').val()
} }
list = escapeHtml(list);
$.ajax( { $.ajax( {
url: "options.py", url: "options.py",
data: { data: {

View File

@ -6,6 +6,14 @@ function validateEmail(email) {
const re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; const re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email); return re.test(email);
} }
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}
var wait_mess = '<div class="alert alert-warning">Please don\'t close and don\'t represh page. Wait until the work is completed. This may take some time </div>' var wait_mess = '<div class="alert alert-warning">Please don\'t close and don\'t represh page. Wait until the work is completed. This may take some time </div>'
$( function() { $( function() {
$('.menu li ul li').each(function () { $('.menu li ul li').each(function () {

View File

@ -87,7 +87,7 @@ pre {
left: 0; left: 0;
z-index: 1000; z-index: 1000;
display: block; display: block;
background-color: #222a31; background-color: #18262e;
font-size: 12px; font-size: 12px;
} }
.logoText { .logoText {
@ -357,7 +357,7 @@ pre {
.overview-wi .overviewHead { .overview-wi .overviewHead {
border-bottom: 1px solid #A4C7F5; border-bottom: 1px solid #A4C7F5;
} }
.overview tr{ .overview tr{
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
border-radius: 5px; border-radius: 5px;
} }
@ -472,7 +472,7 @@ ul{
font-size: 1.1em; font-size: 1.1em;
} }
.menu a{ .menu a{
background: #222a31; background: #18262e;
color: #fff; color: #fff;
padding: 10px; padding: 10px;
display: block; display: block;
@ -569,9 +569,17 @@ ul{
padding-right: 10px !important; padding-right: 10px !important;
background: #f4f9f380 !important; background: #f4f9f380 !important;
} }
.ui-checkboxradio-label { @media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
padding-bottom: 0.6em !important; .ui-checkboxradio-label {
padding-top: 0.6em !important; padding-bottom: 0.6em !important;
padding-top: 0.6em !important;
}
}
@-moz-document url-prefix() {
.ui-checkboxradio-label {
padding-bottom: 5px !important;
padding-top: 7.5px !important;
}
} }
.ui-state-default { .ui-state-default {
background-color: #EBF1F1 !important; background-color: #EBF1F1 !important;
@ -842,6 +850,7 @@ label {
} }
.update-icon { .update-icon {
float: right; float: right;
margin-top: 5px;
} }
.span-link { .span-link {
cursor: pointer; cursor: pointer;
@ -1168,3 +1177,8 @@ label {
.stats_frontends { .stats_frontends {
background-color: rgb(93, 156, 235) !important; background-color: rgb(93, 156, 235) !important;
} }
.switcher_table_metric {
margin-left: 99%;
color: #a0d100;
cursor: pointer;
}