<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>XPPL</title> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <link rel="stylesheet" href="/static/css/style.css"> <link rel="stylesheet" href="/static/js/jquery-ui-1.12.1.custom/jquery-ui.css"> {% block css %} {% endblock%} </head> <body> <div id="newstext"> <div class='marquee'> <div class='marquee-text'> This is the XPPL ~ Library XPUB ~ Updates </div> </div> </div> {% block header %} <header> {% include "header.html" %} </header> {% endblock %} <main> <div class="container"> {% block main %}{% endblock %} </div> </main> <footer> <div class="container"> {% include "footer.html" %} </div> </footer> {% block js %} {% endblock%} <script src="https://code.jquery.com/jquery-2.1.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script src="{{ url_for("static", filename="js/app.js") }}"></script> <script> $( document ).ready(function() { update(); function update() { $.ajax({ url: "{{ url_for('get_updates') }}", type: 'GET', async: false, success : function(text) { response = text; $('.marquee-text').text(response) console.log(response) }, cache: false, contentType: false, processData: false }); } }); </script> </script> </body> </html>