I built a site for a client where I have a script which moves a sidebar div below the main content when in mobile view. This script is loaded in the footer:

```js
// Move Global nav to top for mobile
$(window).on("resize", function() {
var windowSize = $(window).innerWidth();
    if(windowSize > 767){

        $(".utility-nav").insertBefore($(".global-nav"));
        $(".sidebar-secondary").insertAfter($(".subnav"));

    } else {

        $(".global-nav").insertBefore($(".utility-nav"));
        $(".sidebar-secondary").insertAfter($(".content-main"));

    }
}).resize();

```

They are adding a third party calendar which requires them to insert code snippets that include inline scripts. When these are placed in the .sidebar-secondary div, which is moved for mobile, the content disappears. I assume that, since my script is running after these have initiated, they are being canceled out.

Is there a way to just have my script rerun any inline scripts within that div?

Here is the page they are testing:
<http://www.umary.edu/sandbox-training/index.php>

The scripts in the left sidebar are the ones that are malfunctioning.

Thank you!