Browse Source

changed printing url and started working on the mobile css

master
Your Name 3 years ago
parent
commit
7b84e6f2f8
  1. 2
      print/start.py
  2. 8
      print/static/stylesheet.css
  3. 3
      print/templates/print.html

2
print/start.py

@ -49,7 +49,7 @@ def check():
def index():
return flask.render_template('index.html')
@APP.route('/print/', methods=['GET', 'POST'])
@APP.route('/southexplorer/', methods=['GET', 'POST'])
def print():
txt_normal = request.args.get('normal', '')
txt_big = request.args.get('big', '')

8
print/static/stylesheet.css

@ -40,4 +40,10 @@ textarea#big{
font-size: 72px;
line-height: 1;
word-break: break-all;
}
}
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}

3
print/templates/print.html

@ -4,12 +4,13 @@
<meta charset="utf-8" />
<title>TeleVex (print)</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='stylesheet.css')}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="main">
<h1>print, <a href="/printed/">printed</a></h1>
<div id="print">
<h2>Plain Text Printing Point (ASCII only)</h2>
<form action="" method="GET">

Loading…
Cancel
Save