Last active
June 9, 2022 04:55
-
-
Save iamrealfarhanbd/6021eeca79d1d980ae20ce90c15b1840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkIfElse() { | |
const orangeimageUrl = "https://girkinger-immobilien.at/wp-content/uploads/2022/06/Formular_Pfeil_rechts_orange-84x84px.png"; /* Hier URL des orangen Pfeils einfügen */ | |
const nextimageUrl = "https://girkinger-immobilien.at/wp-content/uploads/2022/05/Formular_Pfeil_rechts_blau-84x84px.png"; /* Hier URL des blauen Pfeils einfügen */ | |
if(jQuery('input[type="radio"]').is(':checked') || jQuery('input[type="range"]').is(':visible') ){ | |
jQuery("button.ff-float-right.ff-btn.ff-btn-next.ff-btn-secondary").css("background-image", "url(" + orangeimageUrl + ")"); | |
}else{ | |
jQuery("button.ff-float-right.ff-btn.ff-btn-next.ff-btn-secondary").css("background-image", "url(" + nextimageUrl + ")"); | |
} | |
} | |
jQuery('input[type="radio"],input[type="range"]').click(function () { | |
checkIfElse() | |
}); | |
jQuery('input[type="range"]').change(function () { | |
checkIfElse() | |
}); | |
jQuery('button.ff-float-right.ff-btn.ff-btn-next.ff-btn-secondary').click(function () { | |
const nextimageUrl = "https://girkinger-immobilien.at/wp-content/uploads/2022/05/Formular_Pfeil_rechts_blau-84x84px.png"; | |
jQuery("button.ff-float-right.ff-btn.ff-btn-next.ff-btn-secondary").css("background-image", "url(" + nextimageUrl + ")"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment