I desperately need your help. And although I have no idea of javascript and also no idea of HTML. But I need this function. But she does not want to work:
<script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript">
function checkVersion()
{
$.get( "http://citizen.bplaced.net/version.php", function( data ) {
if (data == "04") {
return true;
} else {
return false;
}
});
}
</script>
and in the version.php file is:
<?php header('Access-Control-Allow-Origin: *'); ?>
04