summaryrefslogtreecommitdiffstats
path: root/core/themes/bartik/color/preview.es6.js
diff options
context:
space:
mode:
authorwebchick2017-11-30 20:29:41 (GMT)
committerwebchick2017-11-30 20:30:36 (GMT)
commit9b874acf9f12f385c1ba684efee9cc21c73db442 (patch)
treeac55bc69e9ce0e23eba7cb5d40970147f42ac07a /core/themes/bartik/color/preview.es6.js
parent9bcfe6d59f16720eb7e536cca6a4f852174fac16 (diff)
Issue #2915784 by dawehner, drpal, justafish, tedbow, xjm: 1/3 JS codestyle: camelcase
Diffstat (limited to 'core/themes/bartik/color/preview.es6.js')
-rw-r--r--core/themes/bartik/color/preview.es6.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/themes/bartik/color/preview.es6.js b/core/themes/bartik/color/preview.es6.js
index 90d3b42..a41f1f2 100644
--- a/core/themes/bartik/color/preview.es6.js
+++ b/core/themes/bartik/color/preview.es6.js
@@ -35,10 +35,10 @@
$colorPreview.find('.color-preview-footer-wrapper').css('background-color', $colorPalette.find('input[name="palette[footer]"]').val());
// CSS3 Gradients.
- const gradient_start = $colorPalette.find('input[name="palette[top]"]').val();
- const gradient_end = $colorPalette.find('input[name="palette[bottom]"]').val();
+ const gradientStart = $colorPalette.find('input[name="palette[top]"]').val();
+ const gradientEnd = $colorPalette.find('input[name="palette[bottom]"]').val();
- $colorPreview.find('.color-preview-header').attr('style', `background-color: ${gradient_start}; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(${gradient_start}), to(${gradient_end})); background-image: -moz-linear-gradient(-90deg, ${gradient_start}, ${gradient_end});`);
+ $colorPreview.find('.color-preview-header').attr('style', `background-color: ${gradientStart}; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(${gradientStart}), to(${gradientEnd})); background-image: -moz-linear-gradient(-90deg, ${gradientStart}, ${gradientEnd});`);
$colorPreview.find('.color-preview-site-name').css('color', $colorPalette.find('input[name="palette[titleslogan]"]').val());
},