mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-03 02:37:46 +01:00
29 lines
704 B
HTML
29 lines
704 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>%1</title>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<style>
|
||
|
%style%
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
%2
|
||
|
|
||
|
<script>
|
||
|
const rssGuardroot = document.documentElement;
|
||
|
rssGuardBody = document.body;
|
||
|
let rssGuardColor = window.getComputedStyle(rssGuardBody).backgroundColor;
|
||
|
rssGuardMatch = rssGuardColor.match(/(\w+)\((\d+), (\d+), (\d+)\)/);
|
||
|
|
||
|
if (rssGuardMatch != null) {
|
||
|
rssGuardroot.style.setProperty('--rssguard-red', rssGuardMatch[2]);
|
||
|
rssGuardroot.style.setProperty('--rssguard-green', rssGuardMatch[3]);
|
||
|
rssGuardroot.style.setProperty('--rssguard-blue', rssGuardMatch[4]);
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|