I'm using this script and getting error "Uncaught SyntaxError: missing ) after argument list".
Please help me to get rid of nasty bug, spent lot of time but does not solved.
<script>
function endOfText(){
<?php
$free_text = '<div style="display:block;width:600px;height:340px;background-color:black;">
<div style="height:35px;"></div>
<div style="height:20px;width:600px;text-align:center;color:white;font-size:20px;">PARTIE SUIVANTE</div>
<div style="height:30px;"></div>
<div style="display:block;width:300px;height:170px;margin-left:150px;cursor:default;
background-image:url("'.$server_free.'thumb/'.$drama_tab['shortcut'].'/'.$drama_tab['shortcut'].$epiNB.'-'.$part_1.'_thumb.jpg");background-size:300px 170px;background-repeat:no-repeat;background-position:center;">
<div><a href="javascript:void(0)" onclick="send_epi('.$part_1.')"><img src="'.$http.'images/next_free.png"/></a></div>
</div>
<div style="height:40px;"></div>
<div style="width:600px;text-align:center;color:white;">Ou utilisez les boutons numérotés à droite</div>
</div>';
echo '$("#free_video").append("'.$free_text.'");';
?>
}