From dd9691524f5851732a1133d6883661cdc4a8aac9 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Tue, 5 Sep 2017 11:14:12 +0200 Subject: [PATCH] Disable pastel colors and raw data --- feedler/templates/feedler/feed_page.html | 3 +-- publichealth/static/js/main.js | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/feedler/templates/feedler/feed_page.html b/feedler/templates/feedler/feed_page.html index 3a6eab6..34ed625 100644 --- a/feedler/templates/feedler/feed_page.html +++ b/feedler/templates/feedler/feed_page.html @@ -44,7 +44,7 @@
{% for entry in feedentries %} -
+
{% if entry.visual %}
@@ -61,7 +61,6 @@
- {% empty %} {% endfor %} diff --git a/publichealth/static/js/main.js b/publichealth/static/js/main.js index 3c51033..982e842 100644 --- a/publichealth/static/js/main.js +++ b/publichealth/static/js/main.js @@ -18,11 +18,11 @@ $(document).ready(function() { nextArrow: '', }); - // Formatting of live news - $('.feedpage-body .panel').each(function() { - var hue = Math.floor(Math.random() * 360); - var pastel = 'hsl(' + hue + ', 100%, 87.5%)'; - $(this).css('border-top', '3px solid ' + pastel); - }); + // Pastel colors on live news + // $('.feedpage-body .panel').each(function() { + // var hue = Math.floor(Math.random() * 360); + // var pastel = 'hsl(' + hue + ', 100%, 87.5%)'; + // $(this).css('border-top', '3px solid ' + pastel); + // }); });