-DIST=/project/web/extra/m17n-lib/mim-js/
+DIST1=/var/www/mim
+DIST2=/project/web/extra/m17n-lib/mim-js/
FILES=index.html latn-post.js mim.js th-kesmanee.js
upload:
for f in ${FILES}; do \
- if [ $$f -nt ${DIST}/$$f ] ; then \
+ if [ ! -f ${DIST1}/$$f -o $$f -nt ${DIST1}/$$f ] ; then \
echo $$f; \
- cp $$f ${DIST}; \
+ cp $$f ${DIST1}; \
+ cp $$f ${DIST2}; \
fi; \
done
cd /project/web/source/m17n-lib; make
function MIM_decode_key (event)
{
- var key = (event.keyCode ? event.keyCode
+ var key = ((event.type == 'keydown' || event.keyCode) ? event.keyCode
: event.charCode ? event.charCode
: false);
if (! key)
{
var target = event.target;
var code = event.keyCode;
- var char = event.charCode;
+ var char = event.type == 'keydown' ? "?" : event.charCode;
var key = MIM_decode_key (event);
document.getElementById (event.type).innerHTML = "" + code + "/" + char + " : " + key;
event.target.mim_ic = ic;
}
MIM_add_event_listener (event.target, 'blur', MIM_reset_ic);
- //debug_print (event, ic);
+ debug_print (event, ic);
if (ic.im.status < 0)
return;
ic.check_caret ();
var ic = event.target.mim_ic;
var i;
- //debug_print (event, ic);
+ debug_print (event, ic);
if (ic.im.status < 0)
return;
if (! ic.key)