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); + }); + });