Changeset 26299 for lang/javascript/chainedmarkov
- Timestamp:
- 12/10/08 18:06:23 (5 years ago)
- Location:
- lang/javascript/chainedmarkov/trunk
- Files:
-
- 3 modified
-
example.js (modified) (2 diffs)
-
markov.js (modified) (6 diffs)
-
test.html (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/chainedmarkov/trunk/example.js
r26275 r26299 159 159 [] 160 160 ], 161 [ 161 [ 162 162 a('濁流を作', 'ら', 'り', 'る', 'れ', 'ろ', 'れ'), 163 163 '#liquid', … … 298 298 this.result += 'では'; 299 299 }, 300 301 300 function() { 302 301 this.snoun('#concept'); -
lang/javascript/chainedmarkov/trunk/markov.js
r26275 r26299 12 12 13 13 var mix = function() { 14 retval = {};14 var retval = {}; 15 15 for (var i = arguments.length; --i >= 0;) { 16 16 var o = arguments[i]; … … 44 44 return; 45 45 } 46 } 46 } 47 47 }, 48 48 … … 90 90 return; 91 91 } 92 } 92 } 93 93 }, 94 94 … … 101 101 return; 102 102 } 103 } 103 } 104 104 }, 105 105 … … 195 195 self.result += s; 196 196 else 197 self[m].apply(self, typeof k == 'string' && k != '' ? k.split(/:/): []); 197 self[m].apply(self, typeof k == 'string' && k != '' ? k.split(/:/): []); 198 198 }); 199 199 return this; … … 226 226 var kamiichidan_verb = function(w) { 227 227 return a(w, '', '', 'る', 'れ', 'よ', 'ろ'); 228 } 228 }; 229 229 230 230 var sahen_verb = function(w) { -
lang/javascript/chainedmarkov/trunk/test.html
- Property svn:mime-type changed from text/html; charset=utf-8 to text/html; charset=UTF-8
r26276 r26299 1 <!doctype html> 1 2 <html> 2 3 <head> 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5 <title>chained markov test</title> 4 6 <script type="text/javascript" src="markov.js"></script> 5 7 <script type="text/javascript" src="example.js"></script> … … 43 45 document.writeln(generate()); 44 46 </script></div> 45 <input type="button" onclick="document.getElementById('text').innerHTML = generate()" value="再生成" />47 <input type="button" onclick="document.getElementById('text').innerHTML = generate()" value="再生成"> 46 48 </form> 47 49 </body>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)