Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.changeClassColor = () => {
- let brandColor = $('.type-of-budget').data('color');
- $("head").append('<style type="text/css"></style>');
- let newStylesheet = $("head").children(':last');
- let newStyle = ' .city-investments .type-of-budget__block.active .type-of-budget__block__bar.type-of-budget__block__bar--grey {background:' + brandColor + '} ';
- newStyle += ' .city-investments .type-of-budget__block.active .type-of-budget__block__bar.type-of-budget__block__bar--lightgrey {background:' + brandColor + '} ';
- newStyle += ' .city-investments .type-of-budget__block.active .type-of-budget__block__txt .type-of-budget__block__txt__value.type-of-budget__block__txt__value--normal, .city-investments .type-of-budget__block.active .type-of-budget__block__txt .type-of-budget__block__txt__value.type-of-budget__block__txt__value--bold { color: ' + brandColor + '}';
- newStyle += ' .taxes-modal-slider__bottom-blue { background: ' + brandColor + '}';
- newStyle += ' .taxes-modal-slider__top-white__text__subtitle { color: ' + brandColor + '}';
- newStylesheet.html(newStyle);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement