2DU 9 years ago
parent
commit
c438586686

+ 4 - 3
main.py

@@ -16,9 +16,10 @@ set_data = json.loads(json_data)
 
 print('port : ' + set_data['port'])
 
-import logging
-log = logging.getLogger('werkzeug')
-log.setLevel(logging.ERROR)
+if(not set_data['log'] == "O"):
+    import logging
+    log = logging.getLogger('werkzeug')
+    log.setLevel(logging.ERROR)
 
 def start():
     try:

+ 2 - 1
set/set.json

@@ -10,5 +10,6 @@
 	"key" : "test",
 	"upload" : "2",
 	"port" : "3000",
-	"help" : ""
+	"help" : "",
+    "log" : "X"
 }

File diff suppressed because it is too large
+ 18 - 0
static/js/MathJax.js


File diff suppressed because it is too large
+ 38 - 0
static/js/config/TeX-AMS_CHTML.js


File diff suppressed because it is too large
+ 18 - 0
static/js/extensions/MathMenu.js


File diff suppressed because it is too large
+ 18 - 0
static/js/extensions/MathZoom.js


+ 1 - 1
templates/index.html

@@ -8,7 +8,7 @@
           MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
         </script>
         <script type="text/javascript" async
-          src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML">
+          src="{{url_for('static', filename='js/MathJax.js')}}?config=TeX-AMS_CHTML">
         </script>
         <meta name="twitter:creator" content="@{{logo}}">
         <meta name="twitter:title" content="{{title}}">

Some files were not shown because too many files changed in this diff