Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (20 sloc) 462 Bytes
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<script src="wordcut-min.js"></script>
<script>
var wordcut = require("wordcut");
wordcut.init();
$(document).ready(function(){
$("#out").html(wordcut.cut($("#box").val()));
$("#box").keyup(function(){
$("#out").html(wordcut.cut($("#box").val()));
});
});
</script>
<input type="text" id="box" value="กากา" />
<span id="out"></span>
</body>
</html>
You can’t perform that action at this time.