用Javascript在网页上虚拟键盘的源码

源代码在线查看: how-to-compress.txt

软件大小: 118 K
上传用户: hz5305259
关键词: Javascript 虚拟键盘 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				This file explains how to compress the VKeyboard script with ESC
				(EcmaScript Cruncher, http://www.saltstorm.net/depo/esc/) if you've
				made changes to the original script and want to compress (and obfuscate) it.
				
				The following procedure applies to full script (vkboard.js) and popup
				variant of the script (vkboardp.js). For other two variants, steps 2, 6-9 and 12
				should be omitted.
				
				1. In the archive with the ESC.wsf you'll find the 'bless.map.dynapi' file.
				   Copy it to the same directory where ESC.wsf is; rename it to 'bless.map'
				   and append the following lines to the end of the file:
				
				     SetParameters
				     Show
				     ShowNumpad
				
				  If you wish to use compressed script with the translator setup
				  (see '3-edit-translator.html'), then you must additionally append
				  this line:
				
				     _refresh_layout
				
				2. Cut legal (disclaimer) part, and save it to another file (e.g. 'legal.txt').
				
				3. Cut language arrays, starting from comment:
				
				     // Us International:
				
				   finishing with the last ']', and save them to another file (e.g. 'lang.js').
				
				4. Compress 'lang.js' to 'langc.js' with level of compression of 3:
				
				     cscript ESC.wsf -l 3 -ow langc.js lang.js
				
				  (level of compression must be 3, not 4! You must keep the array names untouched,
				    but 4th level of compression involves variable substitution that you don't need here).
				
				5. Compress 'vkboard.js' to 'vkboardc.js' with level of compression of 4:
				
				     cscript ESC.wsf -l 4 -ow vkboardc.js vkboard.js
				
				6. Look at the very last member-array of VKeyboard prototype (in original 'vkboardc.js' it is '$29').
				   Search up the whole script for 'avail_langs', and replace it with the name of that last member
				  (you'll meet 5 occurences).
				
				7. Restore the language arrays: place 'langc.js' contents between the last '}' and the comma preceeding it.
				
				8. Restore the disclaimer (from 'legal.txt') at the start of the script.
				   Don't forget to mention changes you've made and the tool you've used for compression.			

相关资源