heylium_app/iraiser.txt
Nicolas Bally 8e18de4077 initial
2016-08-03 00:22:29 +02:00

30 lines
847 B
Plaintext
Executable File

header parrainage
<style>
#correspondance, #reassurance, #lang, #form-info{
display:none;
}
</style>
<script>
function select_image(){
animal = $("#step-1 select").filter(":first").val();
$("#sponsorship_animal_image").attr("src", "http://test.com/parrainage/"+animal+".jpg");
}
$( document ).ready(function() {
$("#step-1 select").filter(":first").change(function(){
select_image()
});
$("#step-1 p").filter(":first").before("<img src='' id='sponsorship_animal_image' style='width:100%;border-radius:50%;display:block;margin:auto;width:150px;'/>");
$("#step-1 p").filter(":first").find("label").css("display", "none");
$("#step-1 p").filter(":first").find("select").css({"height": "auto", "font-size":"inherit"});
select_image();
});
</script>