File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 < head >
44 < meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
55 < meta charset ="utf-8 ">
6+
7+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js "> </ script >
8+ < script src ="https://hara-jp.com/js/jquery-linedtextarea.js "> </ script >
9+ < link href ="https://hara-jp.com/css/jquery-linedtextarea.css " type ="text/css " rel ="stylesheet " />
10+
611 < script type ="text/javascript ">
712 async function load_file ( ) {
813 var name = document . getElementById ( "file_name" ) . value ;
3641 }
3742 ) ;
3843 console . log ( response ) ;
44+ alert ( "Save fiel: " + name ) ;
3945 }
4046
41-
4247 function load_file_event ( e ) {
4348 if ( e . key == "Enter" ) {
4449 load_file ( ) ;
5762 < input type ="button " onClick ="load_file() " value ="Load " style ="font-size:12pt;width:100px; ">
5863 < input type ="button " onClick ="save_file() " value ="Save " style ="font-size:12pt;width:100px; ">
5964 < hr >
60- < textarea id ="editarea " name ="info " style ="font-size:12pt;width:90%;height:500px;line-height:1.5em "> </ textarea >
65+ < textarea id ="editarea " name ="info " class ="lined " style ="font-size:12pt;width:90%;height:500px;line-height:1.5em "> </ textarea >
66+ < script >
67+ $ ( function ( ) {
68+ $ ( ".lined" ) . linedtextarea ( ) ;
69+ } ) ;
70+ </ script >
6171 </ body >
6272</ html >
Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ def speak(self, data):
133133 if self .parent :
134134 self .parent .face .stop_talk ()
135135 except :
136- print (result )
136+ try :
137+ print (result )
138+ except :
139+ print ("Unknown error" )
137140 res_ = False
138141 res_ = True
139142 response .close ()
You can’t perform that action at this time.
0 commit comments