Browse Source

Deal with utf-8 inside chat (add BOM).

Also refresh button works now (d'Oh)
master
The Dod 1 year ago
parent
commit
d576052a70
3 changed files with 6 additions and 4 deletions
  1. 1
    0
      doctor.py
  2. 1
    2
      logs.tmpl
  3. 4
    2
      logs/index.html

+ 1
- 0
doctor.py View File

53
 if len(sys.argv)>1:
53
 if len(sys.argv)>1:
54
     try:
54
     try:
55
         logfile = open(sys.argv[1], "w")
55
         logfile = open(sys.argv[1], "w")
56
+        logfile.write('\ufeff') # Claim our rightful UTF-8 by land sea and web
56
     except:
57
     except:
57
         slowprint("Couldn't open log file '{}'!!!\n".format(sys.argv[1]))
58
         slowprint("Couldn't open log file '{}'!!!\n".format(sys.argv[1]))
58
 
59
 

+ 1
- 2
logs.tmpl View File

42
                     <ul class="nav nav-justified">
42
                     <ul class="nav nav-justified">
43
                         <li><a target="_blank" href="lan-help.html"><span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> Connection help</a></li>
43
                         <li><a target="_blank" href="lan-help.html"><span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> Connection help</a></li>
44
                         <li><a target="_blank" href="https://is.gd/doctorkernel"><span class="glyphicon glyphicon-file" aria-hidden="true"></span> Source</a></li>
44
                         <li><a target="_blank" href="https://is.gd/doctorkernel"><span class="glyphicon glyphicon-file" aria-hidden="true"></span> Source</a></li>
45
-                        <li><a class="btn btn-primary" href=""><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Refresh</a></li>
45
+                        <li><button class="btn btn-primary form-control" onclick="location.reload(true)"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Refresh</a></li>
46
                     </ul>
46
                     </ul>
47
                 </div>
47
                 </div>
48
             </div>
48
             </div>
49
         </div>
49
         </div>
50
     </div>
50
     </div>
51
     <script src="js/bootstrap.min.js"></script>
51
     <script src="js/bootstrap.min.js"></script>
52
-
53
 </body>
52
 </body>
54
 
53
 
55
 </html>
54
 </html>

+ 4
- 2
logs/index.html View File

24
             <div class="col-12">
24
             <div class="col-12">
25
                 <ul class="list-group text-center">
25
                 <ul class="list-group text-center">
26
                     <li class="list-group-item">
26
                     <li class="list-group-item">
27
+                        <a target="_blank" class="btn btn-success" href="log-20230726-124328.txt">[log-20230726-124328.txt]</a>
28
+                    </li>
29
+                    <li class="list-group-item">
27
                         <a target="_blank" class="btn btn-success" href="log-20230725-113052.txt">[log-20230725-113052.txt]</a>
30
                         <a target="_blank" class="btn btn-success" href="log-20230725-113052.txt">[log-20230725-113052.txt]</a>
28
                     </li>
31
                     </li>
29
                     <li class="list-group-item">
32
                     <li class="list-group-item">
55
                     <ul class="nav nav-justified">
58
                     <ul class="nav nav-justified">
56
                         <li><a target="_blank" href="lan-help.html"><span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> Connection help</a></li>
59
                         <li><a target="_blank" href="lan-help.html"><span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> Connection help</a></li>
57
                         <li><a target="_blank" href="https://is.gd/doctorkernel"><span class="glyphicon glyphicon-file" aria-hidden="true"></span> Source</a></li>
60
                         <li><a target="_blank" href="https://is.gd/doctorkernel"><span class="glyphicon glyphicon-file" aria-hidden="true"></span> Source</a></li>
58
-                        <li><a class="btn btn-primary" href=""><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Refresh</a></li>
61
+                        <li><button class="btn btn-primary form-control" onclick="location.reload(true)"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Refresh</a></li>
59
                     </ul>
62
                     </ul>
60
                 </div>
63
                 </div>
61
             </div>
64
             </div>
62
         </div>
65
         </div>
63
     </div>
66
     </div>
64
     <script src="js/bootstrap.min.js"></script>
67
     <script src="js/bootstrap.min.js"></script>
65
-
66
 </body>
68
 </body>
67
 
69
 
68
 </html>
70
 </html>

Loading…
Cancel
Save