Templates, damit CSS konfigurierbar
This commit is contained in:
parent
4efd1a11c8
commit
f857e13b3f
|
@ -8,7 +8,7 @@ app = Flask(__name__, static_url_path='')
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
def index():
|
||||||
return app.send_static_file('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
@app.route("/parse", methods=['GET', 'POST'])
|
@app.route("/parse", methods=['GET', 'POST'])
|
||||||
def parse():
|
def parse():
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" media="screen">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" media="screen">
|
||||||
<link rel="stylesheet" href="mdlive.css" type="text/css">
|
<link rel="stylesheet" href="mdlive.css" type="text/css">
|
||||||
<link rel="stylesheet" href="blog.css" type="text/css" media="screen">
|
<link rel="stylesheet" href="{{ config.CSS }}" type="text/css" media="screen">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="col-md-2"></div>
|
<div class="col-md-2"></div>
|
||||||
|
@ -38,7 +38,7 @@ $(document).ready(
|
||||||
idleState = false;
|
idleState = false;
|
||||||
idleTimer = setTimeout(function(){
|
idleTimer = setTimeout(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "http://localhost:5000/parse",
|
url: "{{ url_for('parse') }}",
|
||||||
success: function(result) {
|
success: function(result) {
|
||||||
$('#output').html(result);
|
$('#output').html(result);
|
||||||
},
|
},
|
Loading…
Reference in New Issue