summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/result_templates/map.html
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-09-05 16:03:00 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-09-06 11:08:50 +0200
commit48c806954eecc242227ad9868eabe03d1d415621 (patch)
tree2afb64a02b9035c0cd8d852928498018ec4067bb /searx/templates/oscar/result_templates/map.html
parent33ea1d59096c08cc5b5045f975525d311d1960d1 (diff)
downloadsearxng-48c806954eecc242227ad9868eabe03d1d415621.tar.gz
searxng-48c806954eecc242227ad9868eabe03d1d415621.zip
[fix] make /preferences more CSP compliant - simple & oscar theme
in simple & oscar theme replace bar-graph's *styles* by CSP compliant implementation in:: searx/static/themes/__common__/less/stats.less Fixed files:: ./oscar/preferences.html:29: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}} ./oscar/preferences.html:30: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}} ./oscar/preferences.html:31: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}} ./simple/preferences.html:43: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}} ./simple/preferences.html:44: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}} ./simple/preferences.html:45: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}} Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/oscar/result_templates/map.html')
0 files changed, 0 insertions, 0 deletions