mirror of
https://github.com/manilarome/the-glorious-startpage.git
synced 2025-03-14 22:38:11 +01:00
regex
This commit is contained in:
parent
a1f88229fb
commit
26dc3d27ec
@ -170,7 +170,7 @@
|
||||
|
||||
@media screen and (max-width: 470px) {
|
||||
#weatherScreen {
|
||||
padding: 6vh 18vw 0vh 18vw;
|
||||
padding: 6vh 18vw 0 18vw;
|
||||
}
|
||||
}
|
||||
|
||||
@ -195,7 +195,7 @@
|
||||
|
||||
float: none;
|
||||
clear: none;
|
||||
margin-left : 0px;
|
||||
margin-left : 0;
|
||||
}
|
||||
|
||||
/*Add fixed geometry to weatherForecastDay children*/
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
@media screen and (max-width: 470px) {
|
||||
#webMenuScreen {
|
||||
padding: 6vh 18vw 0vh 18vw;
|
||||
padding: 6vh 18vw 0 18vw;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,13 +53,13 @@ class ThemeEngine {
|
||||
if (!colorRGBA) {
|
||||
|
||||
// If RGB - (#RRGGBB)
|
||||
if (/^#([0-9A-F]{3}){1,2}$/i.test(colorStr)) {
|
||||
if (/^#[0-9A-F]{3}$/i.test(colorStr)) {
|
||||
|
||||
// Add completely opaque alpha
|
||||
return colorStr + 'FF';
|
||||
|
||||
// If three-charactered HEX color - (#RGB)
|
||||
} else if (/^#([0-9A-F]{3}){1,2}$/i.test(colorStr)) {
|
||||
} else if (/^#[0-9A-F]{3}$/i.test(colorStr)) {
|
||||
|
||||
// Convert it to RRGGBB
|
||||
return colorStr.replace(/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/, '#$1$1$2$2$3$3');
|
||||
@ -74,6 +74,7 @@ class ThemeEngine {
|
||||
|
||||
} else {
|
||||
alert('Invalid color');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user