<div class="center"data-role="content" id="content"  >
        <a href="#flappy" data-transition="slide" >Don't Be A Terrorist</a>
        </div>
    <div id="flappy" >
    <center>
    <div id="page">
            <div data-role="header">
            <h1 style="color: white; font-size: 20px;">Don't Be A Terrorist</h1>
            <a data-icon="home" data-rel="back" style="margin-top:2px; background-color: white;">....</a>
        </div>
        <div id="frame" onload="check2()">
        <script>
        function check2(){
        $.get(/flappy.html)
    .done(function() { 
    alert("you have it");
                <p style="color: white; margin-top: 30px;">Dont't be a terrorist is a game where you must manoeuvre a plane through buildings. Be careful not to hit one or be labelled a terrorist. <br> Controls:<br>Hold the screen down, to go up <br> Let go, to go down <br> Don't hit buildings or die</p>
        <a href="flappy.html" data-transition="pop" rel="external"><img src="images/play.png" width="320px" height="320px"></img></a>
    }).fail(function() { 
    alert("Download it now!");
    })
    }
    </script>
    enter code here
        </div>
        </div>
        </center>
    </div>
Here is my code for a games website, if the file exist it should be an option to play the game, but if it doesn't a button where they can choose to download it. This is my code I have gathered! I would rather not use ajax if that is possible! Thank you so much!
Thank you! :)
 
     
     
    