Skip to content

Commit

Permalink
LibreJS compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
vecna13 committed May 27, 2019
1 parent c7f8455 commit 3f012bf
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<script src="static/jquery-2.0.3.min.js"></script>
<script src="static/jquery.autocomplete.min.js"></script>
<link href='static/style.css' rel='stylesheet' type='text/css'>

<!-- link to JS licenses for LibreJS -->
<div style="display:none">
<a href="js-licenses" data-jslicense="1">JavaScript license information</a>
</div>
</head>
<body>
<div id="header">
Expand Down
27 changes: 27 additions & 0 deletions web/templates/js-licenses.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends "base.html" %}

{% block content %}
<div id="content-wrapper">
<div id="content">
<table id="jslicense-labels1" border="1">
<tr>
<td><a href="static/jquery-2.0.3.min.js">static/jquery-2.0.3.min.js</a></td>
<td><a href="magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt">Expat</a></td>
<td><a href="https://raw.githubusercontent.com/jquery/codeorigin.jquery.com/master/cdn/jquery-2.0.3.js">jquery-2.0.3.js</a></td>
<tr>

<tr>
<td><a href="static/jquery.autocomplete.min.js">static/jquery.autocomplete.min.js</a></td>
<td><a href="magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt">Expat</a></td>
<td><a href="https://raw.githubusercontent.com/devbridge/jQuery-Autocomplete/4924da0b519e8408fad10a746d2fe9ccfb859f80/dist/jquery.autocomplete.js">jquery.autocomplete.js</a></td>
<tr>

<tr>
<td><a href="static/network.js">static/network.js</a></td>
<td><a href="magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt">GNU-GPL-3.0-or-later</a></td>
<td><a href="static/network.js">static/network.js</a></td>
<tr>
</table>
</div>
</div>
{% endblock %}
4 changes: 4 additions & 0 deletions web/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@ def page_sendGraph():
else:
return 'Error: %s' % ret

@app.route('/js-licenses')
def page_js_licenses():
return render_template('js-licenses.html', page='js-licenses')

if __name__ == '__main__':
app.run(host='localhost', port=3000)

0 comments on commit 3f012bf

Please sign in to comment.