Browse Source

jslicense

boyska 4 years ago
parent
commit
17e5f44a0a
5 changed files with 20 additions and 0 deletions
  1. 4 0
      app.py
  2. 4 0
      static/js/detto.js
  3. 6 0
      static/js/upload.js
  4. 2 0
      static/style.css
  5. 4 0
      templates/index.htm

+ 4 - 0
app.py

@@ -114,3 +114,7 @@ def dl(fname):
     r = make_response(content)
     r.headers['Content-Type'] = 'audio/ogg'  # TODO: better detect
     return r
+
+@app.route('/info/license')
+def license():
+    return render_template('license.html')

+ 4 - 0
static/js/detto.js

@@ -1,4 +1,8 @@
 // detto - cesco@ventuordici.org - 2020
+/**
+ *
+ * @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0
+ */
 
 /* THE CHINOTTO-WARE LICENSE" (Revision 42):
  * cesco@ventuordici.org wrote this code.

+ 6 - 0
static/js/upload.js

@@ -1,6 +1,12 @@
 /* jshint browser: true */
 /* global $ */
 
+/**
+ *
+ * @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3
+ */
+
+
 function putPreview (arrayBuf) {
   var arrayBufView = new Uint8Array(arrayBuf)
   var blob = new Blob([arrayBufView.buffer], { type: "audio/ogg" })

+ 2 - 0
static/style.css

@@ -102,3 +102,5 @@ li {
 }
 
 #recordingsList a{ margin: 0.5em; }
+
+footer { font-size: small; }

+ 4 - 0
templates/index.htm

@@ -53,5 +53,9 @@
 <script type="text/javascript" src="{{url_for('static', filename='js/upload.js')}}"></script>
 <script type="text/javascript" src="{{url_for('static', filename='js/detto.js')}}"></script>
 
+<footer>
+    <a href="{{url_for('license')}}" rel="jslicense">Javascript license information</a>
+</footer>
+
 </body>
 </html>