remove extra templates
This commit is contained in:
parent
f97b776d7d
commit
44c3a31c92
|
|
@ -1,49 +0,0 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}
|
||||
Differentiation
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<p>Function you would like to Derive: </p>
|
||||
<p>Type math here: <span id="math-field"></span></p>
|
||||
<form action="/differentiation" method="post">
|
||||
<div class = "form-group">
|
||||
<input autocomplete="off" autofocus class="form-control" name="function" placeholder="Function" type="hidden" id="function" />
|
||||
</div>
|
||||
<p id="jp">Your Input Will Appear Here</p>
|
||||
<button class="btn btn-primary" type="submit" id="btn">Derive</button>
|
||||
</form>
|
||||
<script>
|
||||
let value = $("#function").val();
|
||||
$(document).ready(function(){
|
||||
$('#function').on('input', function() {
|
||||
let testvalue = $('#function').val();
|
||||
$('#jp').html("$f(x) = "+testvalue+"$");
|
||||
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var mathFieldSpan = document.getElementById('math-field');
|
||||
var latexSpan = document.getElementById('latex');
|
||||
|
||||
var MQ = MathQuill.getInterface(2); // for backcompat
|
||||
var mathField = MQ.MathField(mathFieldSpan, {
|
||||
spaceBehavesLikeTab: true, // configurable
|
||||
handlers: {
|
||||
edit: function() { // useful event handlers
|
||||
latexSpan.textContent = mathField.latex(); // simple API
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var formInput = document.getElementById("function")
|
||||
$(document).ready(function(){
|
||||
$('#btn').click(function (evt) {
|
||||
document.getElementById("function").value = mathField.latex();
|
||||
})
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}
|
||||
Differentiation
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<p>Function you would like to Derive: </p>
|
||||
<form action="/differentiation" method="post">
|
||||
<div class = "form-group">
|
||||
<input autocomplete="off" autofocus class="form-control" name="function" placeholder="Function" type="text" id="function">
|
||||
</div>
|
||||
<p id="jp">Your Input Will Appear Here</p>
|
||||
<button class="btn btn-primary" type="submit">Differentiate</button>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
let value = $("#function").val();
|
||||
$(document).ready(function(){
|
||||
$('#function').on('input', function() {
|
||||
let testvalue = $('#function').val();
|
||||
$('#jp').html("$f(x) = "+testvalue+"$");
|
||||
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}
|
||||
Index
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<p>This is a website dedicated to making the lives of calculus students easier, if ever so slightly.</p>
|
||||
<P>All function inputs will be taken assuming 'x' as your variable. All other letters will be treated as constants</P>
|
||||
<p>That noted, you may enter terms for well known constants and they will likely be accounted for</p>
|
||||
<p>As an example you could enter the function $sin(\pi x)$ with the notation sin(pi*x)</p>
|
||||
<p>As a once struggling calculus student, I highly recommend this site be used either to check your work or as a tool
|
||||
to understand the steps behind those problems which you failed in solving alone</p>
|
||||
<p>Good luck!</p>
|
||||
{% endblock %}
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- documentation at http://getbootstrap.com/docs/4.1/, alternative themes at https://bootswatch.com/ -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- https://favicon.io/emoji-favicons/money-mouth-face/ -->
|
||||
<link href="/static/favicon.ico" rel="icon">
|
||||
|
||||
<link href="/static/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>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- MathJax Integration and configuration -->
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
|
||||
</script>
|
||||
|
||||
<!-- MathQuill Link -->
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/mathquill/0.10.1/mathquill.min.css">`
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathquill/0.10.1/mathquill.min.js" type="text/javascript"></script>
|
||||
<script>var MQ = MathQuill.getInterface(2);</script>
|
||||
|
||||
<title>C$50 Math: {% block title %}{% endblock %}</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-expand-md navbar-light bg-light border">
|
||||
<a class="navbar-brand" href="/"><span class="blue">C</span><span class="red">$</span><span class="yellow">5</span><span class="green">0</span> <span class="red">Math</span></a>
|
||||
<button aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbar" data-toggle="collapse" type="button">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbar">
|
||||
{% if session.user_id %}
|
||||
<ul class="navbar-nav mr-auto mt-2">
|
||||
<li class="nav-item"><a class="nav-link" href="/differentiation">Differentiation</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/integration">Integration</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/maxmin">Max/Min</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/aprox">Linearization</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/riemann">Riemann</a></li>
|
||||
</ul>
|
||||
<ul class="navbar-nav ml-auto mt-2">
|
||||
<li class="nav-item"><a class="nav-link" href="/logout">Log Out</a></li>
|
||||
</ul>
|
||||
{% else %}
|
||||
<ul class="navbar-nav ml-auto mt-2">
|
||||
<li class="nav-item"><a class="nav-link" href="/register">Register</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/login">Log In</a></li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{% if get_flashed_messages() %}
|
||||
<header>
|
||||
<div class="alert alert-primary border text-center" role="alert">
|
||||
{{ get_flashed_messages() | join(" ") }}
|
||||
</div>
|
||||
</header>
|
||||
{% endif %}
|
||||
|
||||
<main class="container p-5">
|
||||
{% block main %}{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer class="small text-center text-muted">
|
||||
Huge thanks to the staff at Harvard's <a href="https://cs50.harvard.edu/college/">CS50</a>.
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
{% extends "layout.html" %}
|
||||
|
||||
{% block title %}
|
||||
Register
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<form action="/register" method="post" id="form">
|
||||
<div class="form-group">
|
||||
<input autocomplete="off" autofocus class="form-control" name="username" placeholder="Username" id="username" type="text">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="form-control" name="password" placeholder="Password" type="password">
|
||||
</div>
|
||||
<span id="availability"></span>
|
||||
<div class="form-group">
|
||||
<input class="form-control" name="confirmation" placeholder="confirm" type="password">
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit" id="btn">Register</button>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var username = document.getElementById("username");
|
||||
$(document).ready(function(){
|
||||
$('#btn').click(function (evt) {
|
||||
evt.preventDefault();
|
||||
$.get("/check", {username:username.value}, function(data){
|
||||
if (data == false){
|
||||
alert("Username is Taken")
|
||||
}
|
||||
else {
|
||||
$('#form').submit();
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
Loading…
Reference in New Issue