Skip to content

Commit

Permalink
Merge branch 'master' of github.com:joequery/JSON-Selector-Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
joequery committed Mar 23, 2015
2 parents e259de7 + 19ec423 commit 63c9385
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 1 deletion.
4 changes: 4 additions & 0 deletions runserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
def home():
return render_template("home.html")

@app.route('/privacy', methods=['GET'])
def privacy():
return render_template("privacy.html")

@app.route('/process', methods=['POST'])
def process():
required_fields = ('rawjson',)
Expand Down
3 changes: 2 additions & 1 deletion templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container pull-left">
<a class="brand" href="#">JSON Selector Generator</a>
<a class="brand" href="/">JSON Selector Generator</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -63,6 +63,7 @@

<div class=row">
<p>View the <a href="https://github.com/joequery/JSON-Selector-Generator">source code</a> on github</p>
<p>View the <a href="/privacy">privacy policy</a></p>
</div>
</div>

Expand Down
78 changes: 78 additions & 0 deletions templates/privacy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Privacy Policy - JSON Selector Generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<link href="{{url_for('static', filename='css/bootstrap.min.css')}}" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}

h1 {
margin-bottom: 40px;
}
</style>
</head>

<body>


<div class="container-fluid">

<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container pull-left">
<a class="brand" href="/">JSON Selector Generator</a>
</div>
</div>
</div>

<div class="row">
<h2>Privacy Policy</h2>
<h3>What do we do with the JSON provided to the tool?</h3>
<p>
The JSON pasted into the tool will exist in memory only as long
as necessary to generate the resulting HTML. The JSON is not
saved.
</p>
<h3>What information is collected?</h3>
<p>
This website uses StatCounter for Analytics. StatCounter is used
to gather information regarding how many people are visiting the
website, as well as what other websites are linking to this
website. StatCounter reports the following information:
<ul>
<li>User agent</li>
<li>Date/time of visit</li>
<li>Browser</li>
<li>Screen resolution</li>
<li>Operating system</li>
<li>IP address</li>
<li>City/State/Country associated with IP address</li>
<li>ISP name (Time Warner, Comcast, etc)</li>
<li>Page visited</li>
<li>Referral URL</li>
</ul>
</p>
<h3>I don't trust this website, but I'd like to use this tool</h3>
<p>
The JSON Selector Generator is licensed under the MIT license.
This enables you to <a href="https://github.com/joequery/JSON-Selector-Generator">audit
and download the source from github</a> and run this tool yourself wherever you wish.
</p>
</div>

</div> <!-- /container -->

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="{{url_for('static', filename='js/jquery.dom-outline-1.0.js')}}"></script>
<script src="{{url_for('static', filename='js/home.js')}}"></script>

</body>
</html>

0 comments on commit 63c9385

Please sign in to comment.