I have written a bit of script to slide hidden sections into view when a button is clicked. These sections slide up over another section using a slideToggle script and stop before they overlap the next section. It looks great on all devices except mobile phones. On mobile phones the button “Destination Details” slides up beyond where it is supposed to stop. The background color of the button is also not displaying correctly on mobile.
Am I trying to accomplish this the wrong way? What am I missing for the mobile view?
Here is the URL of the page - I’m working on the “Athens” section:
Here is the script:
Query(document).ready(function($){
$('#athens.expand').slideToggle(0);
$('#athens-expand').on('touched click', function(){
$('#athens.expand').slideToggle( "slow" );
$('#athens.pic').slideToggle( "slow" );
});
});
