From 5564f49b1fd3aea2e29aa092a4aa3b3c53478495 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Tue, 4 Jul 2017 11:07:53 +0200 Subject: [PATCH] Pastel colors --- publichealth/static/js/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/publichealth/static/js/main.js b/publichealth/static/js/main.js index c802387..3c51033 100644 --- a/publichealth/static/js/main.js +++ b/publichealth/static/js/main.js @@ -18,4 +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); + }); + });