Преглед изворни кода

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

Also refresh button works now (d'Oh)
master
The Dod пре 1 година
родитељ
комит
d576052a70
3 измењених фајлова са 6 додато и 4 уклоњено
  1. 1
    0
      doctor.py
  2. 1
    2
      logs.tmpl
  3. 4
    2
      logs/index.html

+ 1
- 0
doctor.py Прегледај датотеку

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

+ 1
- 2
logs.tmpl Прегледај датотеку

@@ -42,14 +42,13 @@
42 42
                     <ul class="nav nav-justified">
43 43
                         <li><a target="_blank" href="lan-help.html"><span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> Connection help</a></li>
44 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 46
                     </ul>
47 47
                 </div>
48 48
             </div>
49 49
         </div>
50 50
     </div>
51 51
     <script src="js/bootstrap.min.js"></script>
52
-
53 52
 </body>
54 53
 
55 54
 </html>

+ 4
- 2
logs/index.html Прегледај датотеку

@@ -24,6 +24,9 @@
24 24
             <div class="col-12">
25 25
                 <ul class="list-group text-center">
26 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 30
                         <a target="_blank" class="btn btn-success" href="log-20230725-113052.txt">[log-20230725-113052.txt]</a>
28 31
                     </li>
29 32
                     <li class="list-group-item">
@@ -55,14 +58,13 @@
55 58
                     <ul class="nav nav-justified">
56 59
                         <li><a target="_blank" href="lan-help.html"><span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span> Connection help</a></li>
57 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 62
                     </ul>
60 63
                 </div>
61 64
             </div>
62 65
         </div>
63 66
     </div>
64 67
     <script src="js/bootstrap.min.js"></script>
65
-
66 68
 </body>
67 69
 
68 70
 </html>

Loading…
Откажи
Сачувај