Skip to content

Instantly share code, notes, and snippets.

@ati-ince
Created March 5, 2018 08:41
Show Gist options
  • Save ati-ince/d7f0d9138ca43cc3c7a5c3bff3daf27e to your computer and use it in GitHub Desktop.
Save ati-ince/d7f0d9138ca43cc3c7a5c3bff3daf27e to your computer and use it in GitHub Desktop.
Test1
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
if __name__ == '__main__':
app.run(debug = True)
function sayHello()
{
alert("Hello World")
}
function ConsoleI()
{
console.info("xx hello")
}
<html>
<head>
<script type = "text/javascript"
src = "{{ url_for('static', filename = 'hello.js') }}" ></script>
</head>
<body>
<input type = "button" onclick = "sayHello()" value = "Say Hello" />
</body>
<body>
<input type = "button" onclick = "ConsoleI()" value = "Say xx" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment