thanks for the reply!
Tho this is not what I mean.
I want to show the left panel (completly) by default on a mobile device.
see:
https://prnt.sc/nx13xg
I have rewritten the code a bit
$(document).ready(function() {
setTimeout(function() {
$("#hideshow_course_pursue_panel").trigger('click');
}, 0);
});
So this does opens the panel on pageload, but it first closes and then opens the panel. This looks a bit glitchy. Is there a way to just prevent the panel from hiding on pageload?
Also how can I restrict this code to mobile devices?