Fix slider custom cursor
This commit is contained in:
parent
4cef2950f6
commit
0b6f7cf4fa
3 changed files with 4 additions and 4 deletions
|
@ -116,10 +116,10 @@ function turnSidebarLinksToBlack() {
|
|||
|
||||
function editColorTheme(slide) {
|
||||
if (slide) {
|
||||
if (slide.getAttribute('data-logo-color') === 'white') {
|
||||
if (slide.getAttribute('data-text-color') === 'white') {
|
||||
turnSidebarLinksToWhite();
|
||||
cursorColor = 'light';
|
||||
} else if (slide.getAttribute('data-logo-color') === 'black') {
|
||||
} else if (slide.getAttribute('data-text-color') === 'black') {
|
||||
turnSidebarLinksToBlack();
|
||||
cursorColor = 'dark';
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -79,7 +79,7 @@
|
|||
<div class="splide__track">
|
||||
<ul class="splide__list">
|
||||
{% for image in images %}
|
||||
<li class="splide__slide" data-logo-color="{{ image.logo_color }}">
|
||||
<li class="splide__slide" data-text-color="{{ image.text_color }}">
|
||||
<img class="splide__image" src="{{ image.url }}" srcset="{{ image.srcset() }}" alt="{{ image.alt_text }}">
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue