Last active
October 11, 2016 23:36
-
-
Save remkohdev/2536b222f153754f63916024f552f3ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>News Sentiment Response</title> | |
<link href="{{ url_for('static', filename='stylesheets/style.css') }}"></link> | |
<style type="text/css"> | |
body { | |
margin: 50px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>News Sentiment Response</h1> | |
<div id="response"></div> | |
<script type=text/javascript src="{{url_for('static', filename='js/jquery/jquery-3.1.1.min.js') }}"></script> | |
<script type="text/javascript"> | |
var response = {{ response|tojson|safe }}; | |
var responseAsStr = JSON.stringify(response, undefined, 2); | |
document.getElementById("response").innerHTML = responseAsStr; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment