This commit is contained in:
tsb1995 2019-12-13 20:15:44 -08:00
parent a7a46bddbb
commit f97b776d7d
4 changed files with 54 additions and 1 deletions

Binary file not shown.

6
app.py
View File

@ -15,6 +15,12 @@ def differentiation():
if not request.form.get("function"):
return apology("must provide a function", 400)
f = request.form.get("function")
"""
TODO:
take Function
analyse to find most common letter (our variable)
set that as the basis for symbols
"""
x = symbols('x')
f = sympify(f)

47
static/styles.css Normal file
View File

@ -0,0 +1,47 @@
nav .navbar-brand
{
/* size for brand */
font-size: xx-large;
}
/* colors for brand */
nav .navbar-brand .blue
{
color: #537fbe;
}
nav .navbar-brand .red
{
color: #ea433b;
}
nav .navbar-brand .yellow
{
color: #f5b82e;
}
nav .navbar-brand .green
{
color: #2e944b;
}
main .form-control
{
/* center form controls */
display: inline-block;
/* override Bootstrap's 100% width for form controls */
width: auto;
}
main
{
/* scroll horizontally as needed */
overflow-x: auto;
/* center contents */
text-align: center;
}
main img
{
/* constrain images on small screens */
max-width: 100%;
}

View File

@ -13,7 +13,7 @@
<!-- https://favicon.io/emoji-favicons/money-mouth-face/ -->
<link href="/static/favicon.ico" rel="icon">
<link href="/static/styles.css" rel="stylesheet">
<link href="{{ url_for('static', filename='styles.css')}}" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>