X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ca36cf28266418a5b9fdf97dbe455436857e7f9a..ef7f7005941fe4173693cdb55c2735534b11daa4:/app/assets/javascripts/index.js?ds=inline diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 4ea643b26..b6fdaea39 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -334,6 +334,11 @@ $(document).ready(function () { }); } }); + + $('.colour-preview-box').each(function (index, value) { + console.log($(this)); + $(this).css("background-color", $(this).data("colour")); + }); } page.unload = function() {