added form

This commit is contained in:
walkews 2017-07-11 17:03:08 -05:00
parent 1b0d9bbe9d
commit 43ec7e5ca8
8 changed files with 307 additions and 4 deletions

View file

@ -7,7 +7,28 @@ body{
font-weight:10;
}
.chosen{
.text_input{
height:75px;
width:75%;
}
max-width: 300px;
}
.chosen{
height:75px;
width:75%;
max-width: 300px;
}
.col-sm-3{
padding:5px;
}
.row{
padding:5px;
}
.text_input{
float:right;
height:30px;
width:70%;
}

View file

@ -0,0 +1,98 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js The HTML Presentation Framework</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css" id="theme">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section data-markdown data-separator="^\n----\n$" data-vertical="^\n-----\n$">
<script type="text/template">
# pyDataVizDay
*a python implementation for Data Viz Day*
![python](https://www.python.org/static/opengraph-icon-200x200.png)
----
# New Slide
``` python
import pandas as pd
l = [1, 2, 3]
for item in l:
print('this is an item from l')
print(l)
```
</script>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>

104
src/static/test_form.html Normal file
View file

@ -0,0 +1,104 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<title>{% block title %}{% endblock %} - pyDataVizDay</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/chosen-js/chosen.css">
<link href='https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.css' rel='stylesheet' type='text/css'/>
<link rel='stylesheet' type='text/css' href='css/custom.css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="node_modules/chosen-js/chosen.jquery.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
{% endblock %}
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
</button>
<a class="navbar-brand" href="/">pyDataVizDay</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
{% for href, id, caption in navigation_bar %}
<li{% if id == active_page %} class="active"{% endif%}>
<a href="{{ href|e }}">{{ caption|e }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</nav>
<div class="container" padding:50px>
<div class="row" min-height:100px>
<div class="col-sm-4" padding:10px>
items:
<select id='items' class="chosen" multiple="true">
<option>jQuery</option>
<option selected="selected">MooTools</option>
<option>Prototype</option>
<option selected="selected">Dojo Toolkit</option>
</select>
</div>
<div class="col-sm-4" padding:10px>
items:
<select id='items' class="chosen" multiple="true">
<option>jQuery</option>
<option selected="selected">MooTools</option>
<option>Prototype</option>
<option selected="selected">Dojo Toolkit</option>
</select>
</div>
<div class="col-sm-4" padding:10px>
items:
<select id='items' class="chosen" multiple="true">
<option>jQuery</option>
<option selected="selected">MooTools</option>
<option>Prototype</option>
<option selected="selected">Dojo Toolkit</option>
</select>
</div>
</div>
<div class="row" style="min-height:100px">
<div class="col-sm-6">
<p>KPI: <span class='kpi' id='kpi1'></span> things.</p>
</div>
<div class="col-sm-1">
1 of 3
</div>
<div class="col-sm-1">
1 of 3
</div>
</div>
</div>
{{ body | safe }}
</body>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".chosen").chosen();
update_kpi1()
});
$('#items').change(function(){
update_kpi1()
})
function update_kpi1(){
$('#kpi1').html($('#items').val())
}
</script>
</html>