integration of 3 language (HTML,CSS,Javascript)in one php function,the some function of code not working?

  • hello! today after upgrading some code here some functions of code not working.

  • The problem that occurred is that in, three separated languages ide the code is working but in PHP ide some function is not working like – up and down the rope and box movement when scrolling the page.

  • here is the code working in this –jsfiddle.net/binpinbin/ntqpercz/56

  • but here is code not working in this –paiza.io/projects/NisFH0MVjeZBq6gcYXRw4w?language=php

  • what I am missing and why some function is not working I can’t able to find!
    any idea?

  • here is PHP format i used to put all 3 languages(HTML,CSS,javascript) in one PHP function.

function somefunction(){
    return <<<'EOD'
        <style type="text/css">
            // code
        </style>

        <img id="repel" src="  /*link here*/  " />

        <script type="text/javascript">
        // code
        </script>
EOD;
}