├── README.md ├── Online database design tool -toolfk programmer Tool Network ├── JavaScript Qrcode online for two-dimensional code generation tool - toolfk online Programmer toolbox ├── Linux common commands Daquan -toolfk programmer Tool Network ├── Online text comparison tool -toolfk programmer Tool Network ├── Online apk decompile decompiler - toolfk online Programmer toolbox ├── JavaScript online for Cron Expression Builder, preview tool - toolfk online Programmer toolbox ├── Online short address translation aggregation tools - toolfk online Programmer toolbox ├── PHP to achieve pseudo-original free online tools - toolfk online Programmer toolbox ├── JavaScript implementation Apache .htaccess conversion nginx Generator tool - toolfk online Programmer toolbox ├── JS online for CSV conversion PHP, Mysql, Ruby and other tools - toolfk online Programmer toolbox ├── JavaScript hex conversion tool for online sites - toolfk online Programmer toolbox ├── phantomjs achieve free online web screenshot tool - toolfk online Programmer toolbox ├── JavaScript achieve high strength random password generation online tool - toolfk online Programmer toolbox ├── JS achieve XML format online, compression, verification, XML transfer tool - toolfk online Programmer toolbox ├── Baidu map coordinates of the pickup tool -toolfk programmer tool ├── Use PHP CURL simulate HTTP requests for online tool -toolfk online Programmer toolbox ├── Online implement JSON landscaping (format), JSON turn CSV, CSV turn XML tools -toolfk online Programmer toolbox ├── Online stress testing tool - Programmer's Tool Network ├── BASE64-line encryption and decryption- UrlEncode encoding └── decoding- native │ └── ascii online conversion tool - toolfk online Programmer toolbox ├── JS achieve Unix timestamp (Unix timestamp) conversion tool - toolfk online Programmer toolbox ├── JavaScript testing tool for online websocket WSS - toolfk online Programmer toolbox ├── Online SQL conversion CSV, XML, JSON, HTML programmer online tools network tools -toolfk online Programmer toolbox ├── Online implement JavaScript landscaping (format), compression, encryption, decryption, obfuscation tool -toolfk online Programmer toolbox ├── Online implement CSS beautification (format), compression, encryption, decryption, obfuscation tool - toolfk online Programmer toolbox └── JavaScritp achieve online calculator tool -toolfk online Programmer toolbox /README.md: -------------------------------------------------------------------------------- 1 | # toolfk 2 | toolfk online Programmer's toolbox 3 | * **[Home](/hubs/toolfk/wiki)** 4 | * **[Docker achieved using php code online test execution tools toolfk online Programmer toolbox](/hubs/toolfk/wiki/Docker-achieved-using-php-code-online-test-execution-tools--toolfk-online-Programmer-toolbox)** 5 | * **[Free Online PHP encryption, decryption, confused source tools toolfk online Programmer toolbox](/hubs/toolfk/wiki/Free-Online-PHP-encryption,-decryption,-confused-source-tools--toolfk-online-Programmer-toolbox)** 6 | * **[JavaScript sandbox for online development program, execute JS script tool toolfk online Programmer toolbox](/hubs/toolfk/wiki/JavaScript-sandbox-for-online-development-program,-execute-JS-script-tool--toolfk-online-Programmer-toolbox)** 7 | * **[QueryList free online web crawlers collect data toolfk online Programmer website](/hubs/toolfk/wiki/QueryList-free-online-web-crawlers-collect-data--toolfk-online-Programmer-website)** 8 | * **[Use Docker achieve Python3.5, Python2.7 line programming tool to execute code test toolfk online Programmer toolbox](/hubs/toolfk/wiki/Use-Docker-achieve-Python3.5,-Python2.7-line-programming-tool-to-execute-code-test--toolfk-online-Programmer-toolbox)** 9 | * **[Use JS to create online barcode generation tool toolfk online Programmer website](/hubs/toolfk/wiki/Use-JS-to-create-online-barcode-generation-tool--toolfk-online-Programmer-website)** 10 | -------------------------------------------------------------------------------- /Online database design tool -toolfk programmer Tool Network: -------------------------------------------------------------------------------- 1 |  This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool](https://www.toolfk.com/tool-game-calculator "Online calculator tool") , [Linux common commands Daquan](https://www.toolfk.com/tool-find-linux "https://www.toolfk.com/tool-find-linux") , [online text comparison tool](https://www.toolfk.com/tool-online-difftext "https://www.toolfk.com/tool-online-difftext") , [online mind mapping tools](https://www.toolfk.com/tool-online-mind "https://www.toolfk.com/tool-online-mind") , [online database design tool](https://www.toolfk.com/tool-online-designer "https://www.toolfk.com/tool-online-designer") , [free CDN acceleration service](https://www.toolfk.com/tool-online-cdnjs "https://www.toolfk.com/tool-online-cdnjs") , [online stress test tool ](https://www.toolfk.com/tool-online-bench "https://www.toolfk.com/tool-online-bench"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-online-designer](https://www.toolfk.com/tool-online-designer) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[online database design tool -toolfk programmer Tool Network\]?-Dependent code base is http://ondras.zarovi.cz/ 13 | 14 | STEP 1 15 | 16 | [![](https://1.bp.blogspot.com/-NL_RzJmLPpw/XA8txoB6asI/AAAAAAAAAGQ/bAGKih7thkkjFF9k8lJ6HdDPl1TKlK_QgCPcBGAYYCw/s1600/sql.png)](https://1.bp.blogspot.com/-NL_RzJmLPpw/XA8txoB6asI/AAAAAAAAAGQ/bAGKih7thkkjFF9k8lJ6HdDPl1TKlK_QgCPcBGAYYCw/s1600/sql.png) 17 | 18 | 19 | 20 | 21 | 22 | > This link: [http://www.hihubs.com/article/393](http://www.hihubs.com/article/393) 23 | -------------------------------------------------------------------------------- /JavaScript Qrcode online for two-dimensional code generation tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-generate-qrcode](https://www.toolfk.com/tool-generate-qrcode) 6 | 7 | Teaching Code 8 | ------------- 9 | 10 | This tool \[Online QRcode two-dimensional code generation tools\]?-Dependent code base is https://github.com/davidshimjs/qrcodejs 11 | 12 | STEP 1 13 | 14 | [![](https://4.bp.blogspot.com/-nZouwxxzUoM/XA8tvyGCsdI/AAAAAAAAAGI/MSAkkcTpsJUJbRx1aZDAgs9ettkQslzgACPcBGAYYCw/s1600/qrcode.png)](https://4.bp.blogspot.com/-nZouwxxzUoM/XA8tvyGCsdI/AAAAAAAAAGI/MSAkkcTpsJUJbRx1aZDAgs9ettkQslzgACPcBGAYYCw/s1600/qrcode.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | $ ( ". Start_query"). Click (function () { 24 | var link = $ ( "# link") val ().; 25 | if (link == '') { 26 | layer.msg ( "@ lang ( 'toolfk.lang_context_not_empty')"); return; 27 | } 28 | . $ ( '. Show-area') empty (); 29 | $ ( '. Show-area'). Qrcode ({ 30 | text: link 31 | }); 32 | layer.msg ( "@ lang ( 'toolfk.lang_text_build')"); 33 | }); 34 | ``` 35 | 36 | It is worth a try for three reasons: 37 | ------------------------------------ 38 | 39 | 1. Integrate various programmers often used in development and testing tools. 40 | 41 | 2. Simple and beautiful atmosphere of the site pages 42 | 43 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 44 | 45 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  46 | 47 | 48 | 49 | 50 | > This link: [http://www.hihubs.com/article/382](http://www.hihubs.com/article/382) 51 | -------------------------------------------------------------------------------- /Linux common commands Daquan -toolfk programmer Tool Network: -------------------------------------------------------------------------------- 1 |      This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool](https://www.toolfk.com/tool-game-calculator "Online calculator tool") , [Linux common commands Daquan](https://www.toolfk.com/tool-find-linux "https://www.toolfk.com/tool-find-linux") , [online text comparison tool](https://www.toolfk.com/tool-online-difftext "https://www.toolfk.com/tool-online-difftext") , [online mind mapping tools](https://www.toolfk.com/tool-online-mind "https://www.toolfk.com/tool-online-mind") , [online database design tool](https://www.toolfk.com/tool-online-designer "https://www.toolfk.com/tool-online-designer") , [free CDN acceleration service](https://www.toolfk.com/tool-online-cdnjs "https://www.toolfk.com/tool-online-cdnjs") , [online stress test tool ](https://www.toolfk.com/tool-online-bench "https://www.toolfk.com/tool-online-bench"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-find-linux](https://www.toolfk.com/tool-find-linux) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[Online Linux command-line tool to view\]?-Dependent code base is https://github.com/jaywcjlove/linux-command 13 | 14 | STEP 1 15 | 16 | [![](https://4.bp.blogspot.com/-KVZ1DrM6mVQ/XA8tuKqrEkI/AAAAAAAAAGA/BzUmkQBuBNUhHj8qg8ROR_Di570VqaAIwCPcBGAYYCw/s1600/linux.png)](https://4.bp.blogspot.com/-KVZ1DrM6mVQ/XA8tuKqrEkI/AAAAAAAAAGA/BzUmkQBuBNUhHj8qg8ROR_Di570VqaAIwCPcBGAYYCw/s1600/linux.png) 17 | 18 | 19 | 20 | 21 | 22 | STEP 2 23 | 24 | ? THE CORE CODE IS AS FOLLOWS 25 | 26 | ``` 27 | $ Content = ''; 28 | if ($ command) { 29 | $ Content = file_get_contents (storage_path ( "linux_command / $ command.md")); 30 | $ Parsedown = new Parsedown (); 31 | $ Content = $ Parsedown-> text ($ content); 32 | } 33 | $ Type = 'base'; 34 | return view ( "Simple.Tools.Index.find-linux", compact ( 'content', 'command', 'type')); 35 | 36 | ``` 37 | 38 | 39 | 40 | > This link: [http://www.hihubs.com/article/390](http://www.hihubs.com/article/390) 41 | -------------------------------------------------------------------------------- /Online text comparison tool -toolfk programmer Tool Network: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool](https://www.toolfk.com/tool-game-calculator "Online calculator tool") , [Linux common commands Daquan](https://www.toolfk.com/tool-find-linux "https://www.toolfk.com/tool-find-linux") , [online text comparison tool](https://www.toolfk.com/tool-online-difftext "https://www.toolfk.com/tool-online-difftext") , [online mind mapping tools](https://www.toolfk.com/tool-online-mind "https://www.toolfk.com/tool-online-mind") , [online database design tool](https://www.toolfk.com/tool-online-designer "https://www.toolfk.com/tool-online-designer") , [free CDN acceleration service](https://www.toolfk.com/tool-online-cdnjs "https://www.toolfk.com/tool-online-cdnjs") , [online stress test tool ](https://www.toolfk.com/tool-online-bench "https://www.toolfk.com/tool-online-bench"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-online-difftext](https://www.toolfk.com/tool-online-difftext) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[online text comparison tool\]?-Dependent code base is http://www.mergely.com/editor 13 | 14 | STEP 1 15 | 16 | [![](https://3.bp.blogspot.com/-TIL5mf_1vKQ/XA8tr-52WbI/AAAAAAAAAGQ/ZSpGMgINGrU0OOV0R0YsrGhQn634KvOOACPcBGAYYCw/s1600/diff.png)](https://3.bp.blogspot.com/-TIL5mf_1vKQ/XA8tr-52WbI/AAAAAAAAAGQ/ZSpGMgINGrU0OOV0R0YsrGhQn634KvOOACPcBGAYYCw/s1600/diff.png) 17 | 18 | 19 | 20 | STEP 2 21 | 22 | ? THE CORE CODE IS AS FOLLOWS 23 | ``` 24 | $ (Function () { 25 | $ ( '# Mergely'). Mergely ({ 26 | cmsettings: { 27 | mode: "javascript", 28 | readOnly: false, 29 | lineWrapping: true 30 | }, 31 | lhs: function (setValue) { 32 | setValue ( '{{getToolWelcomeForEnv ()}}'); 33 | }, 34 | rhs: function (setValue) { 35 | setValue ( 'Hello {{getToolWelcomeForEnv ()}}'); 36 | } 37 | }); 38 | }); 39 | ``` 40 | 41 | 42 | 43 | > This link: [http://www.hihubs.com/article/391](http://www.hihubs.com/article/391) 44 | -------------------------------------------------------------------------------- /Online apk decompile decompiler - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |     This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-decompile-apk](https://www.toolfk.com/tool-decompile-apk) 6 | 7 | ? Teaching Code 8 | --------------- 9 | 10 | This tool \[Online APK decompilation tool\]?-Dependent code base is [https://github.com/venshine/decompile-apk](https://github.com/venshine/decompile-apk)  (Because the server is a nuclear 1GVPS, we do not open this feature, such as the end of the exchange server was on the line this function) 11 | 12 | STEP 1 13 | 14 | [![](https://2.bp.blogspot.com/-1CgSyoEozBc/XA8tpQqdWcI/AAAAAAAAAGA/-rro8w0i474voW2u5qAJvteU2SyCWR9tACPcBGAYYCw/s1600/apk.png)](https://2.bp.blogspot.com/-1CgSyoEozBc/XA8tpQqdWcI/AAAAAAAAAGA/-rro8w0i474voW2u5qAJvteU2SyCWR9tACPcBGAYYCw/s1600/apk.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | ``` 22 | $ Output = storage_path ( "app / public / output"); 23 | $ Decompile = storage_path ( 'app / public / decompile / decompile-apk.sh'); 24 | . $ Cmd = env ( "TOOL_TIMEOUT_PATH") "--signal = SIGKILL 60 sh $ decompile $ apkpath 2> & 1 && cd $ output && zip -r -q $ zippath $ apkbasename && rm -rf $ apkpath"; 25 | $ Res = shell_exec ($ cmd); 26 | 27 | if (! file_exists ($ zippath)) { 28 | return \ App \ Helper \ UtilsHelper :: error (__ ( 'toolfk.lang_text_apk_fails')); 29 | } 30 | 31 | ``` 32 | 33 | 34 | It is worth a try for three reasons: 35 | ------------------------------------ 36 | 37 | 1. Integrate various programmers often used in development and testing tools. 38 | 39 | 2. Simple and beautiful atmosphere of the site pages 40 | 41 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 42 | 43 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  44 | 45 | 46 | 47 | 48 | 49 | 50 | > This link: [http://www.hihubs.com/article/379](http://www.hihubs.com/article/379) 51 | -------------------------------------------------------------------------------- /JavaScript online for Cron Expression Builder, preview tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"),[ Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-generate-crontab](https://www.toolfk.com/tool-generate-crontab) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[Online Crontab timer generates the preview tool\]?-Dependent code base is https://www.toolfk.com/tools/js/later.min.js 13 | 14 | STEP 1 15 | 16 | [![](https://4.bp.blogspot.com/-rO4V-76LmJ0/XA8trrkWNkI/AAAAAAAAAGE/59WqriKUYsQ2D418vUjMwQklfho-CGwTwCPcBGAYYCw/s320/crontab.png)](https://4.bp.blogspot.com/-rO4V-76LmJ0/XA8trrkWNkI/AAAAAAAAAGE/59WqriKUYsQ2D418vUjMwQklfho-CGwTwCPcBGAYYCw/s1600/crontab.png) 17 | 18 | 19 | 20 | STEP 2 21 | 22 | ? THE CORE CODE IS AS FOLLOWS 23 | 24 | ``` 25 | $ ( ". Start_query"). Click (function () { 26 | var link = $ ( "# content") val ().; 27 | if (link == '') { 28 | layer.msg ( "@ lang ( 'toolfk.lang_context_not_empty')"); return; 29 | } 30 | layer.load (); 31 | var sched = later.parse.cron (link); 32 | later.date.localTime (); 33 | var results = later.schedule (sched) .next (7); 34 | 35 | . $ ( ". Layui-card-body") html ( ""); 36 | for (var i = 0; i ").; 38 | } 39 | layer.closeAll (); 40 | }); 41 | ``` 42 | 43 | 44 | It is worth a try for three reasons: 45 | ------------------------------------ 46 | 47 | 1. Integrate various programmers often used in development and testing tools. 48 | 49 | 2. Simple and beautiful atmosphere of the site pages 50 | 51 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 52 | 53 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  54 | 55 | 56 | 57 | 58 | > This link: [http://www.hihubs.com/article/383](http://www.hihubs.com/article/383) 59 | -------------------------------------------------------------------------------- /Online short address translation aggregation tools - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-short-url](https://www.toolfk.com/tool-short-url) 6 | 7 | Teaching Code 8 | ------------- 9 | 10 | This tool \[online? Generates a short link shortening service tool\]?-Dependent short link Baidu, Sina short link and short link Shorte platform 11 | 12 | STEP 1 13 | 14 | [![](https://1.bp.blogspot.com/-szHSjOKlx5U/XA8txsQXBvI/AAAAAAAAAGE/D81RwRD85jcaxSNNPA2HFx4cdGcIyiG6gCPcBGAYYCw/s1600/short.png)](https://1.bp.blogspot.com/-szHSjOKlx5U/XA8txsQXBvI/AAAAAAAAAGE/D81RwRD85jcaxSNNPA2HFx4cdGcIyiG6gCPcBGAYYCw/s1600/short.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | if ($ type == "sina") { 24 | $ Sina_url = 'http://api.t.sina.com.cn/short_url/shorten.json?source=3271760578&url_long='.$url; 25 | $ Short_url = @current (\ App \ Helper \ UtilsHelper :: curlGet ($ sina_url)) [ "url_short"]; 26 | } Else if ($ type == "baidu") { 27 | $ Baidu_url = "https://dwz.cn/admin/create"; 28 | $ Res = \ App \ Helper \ UtilsHelper :: curlPost (\ App \ Helper \ UtilsHelper :: jsonEncode ([ 29 | "Url" => $ url 30 | ]), $ Baidu_url, true); 31 | $ Short_url = @ $ res [ 'ShortUrl']; 32 | } Else { 33 | $ Shortener_url = "https://shorte.st/shortener/shorten"; 34 | $ Res = \ App \ Helper \ UtilsHelper :: curlPost ([ 35 | "Url" => $ url 36 | ], $ Shortener_url, true); 37 | $ Short_url = @ $ res [ 'shortenedUrl']; 38 | } 39 | ``` 40 | 41 | 42 | 43 | It is worth a try for three reasons: 44 | ------------------------------------ 45 | 46 | 1. Integrate various programmers often used in development and testing tools. 47 | 48 | 2. Simple and beautiful atmosphere of the site pages 49 | 50 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 51 | 52 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox 53 | -------------------------------------------------------------------------------- /PHP to achieve pseudo-original free online tools - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-convert-text](https://www.toolfk.com/tool-convert-text) 6 | 7 | Teaching Code 8 | ------------- 9 | 10 | This tool \[online? False original draft wash tool\]? The main principle is that the call to the API interface translation 11 | 12 | STEP 1 13 | 14 | [![](https://4.bp.blogspot.com/-fkMB09nFMCA/XA8tvnq2DFI/AAAAAAAAAGM/I9qsGadedXEE6SaokyIbJ2SqtHUaLuAxgCPcBGAYYCw/s1600/original.png)](https://4.bp.blogspot.com/-fkMB09nFMCA/XA8tvnq2DFI/AAAAAAAAAGM/I9qsGadedXEE6SaokyIbJ2SqtHUaLuAxgCPcBGAYYCw/s1600/original.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | static function startConvertText ($ text, $ target_lang) { 24 | $ Target = StatusHelper :: $ LANG [$ target_lang]; 25 | $ Tran_res = Trans :: translate ($ text, "auto", $ target); 26 | $ From = $ tran_res [ "from"]; 27 | $ To = $ tran_res [ "to"]; 28 | if ($ from == $ to) { 29 | $ Tmp_target = $ from == "zh" "en": "zh";? 30 | $ Baidu_text = self :: translate ($ text, $ to, $ tmp_target); 31 | } Else { 32 | $ Tmp_target = $ from == "zh" "en": "zh";? 33 | $ Baidu_text = self :: translate ($ text, $ from, $ tmp_target); 34 | } 35 | 36 | $ Tr = new TranslateClient (); 37 | $ Tr-> setTarget ($ target_lang); 38 | return $ tr-> translate ($ baidu_text); 39 | } 40 | ``` 41 | 42 | 43 | It is worth a try for three reasons: 44 | ------------------------------------ 45 | 46 | 1. Integrate various programmers often used in development and testing tools. 47 | 48 | 2. Simple and beautiful atmosphere of the site pages 49 | 50 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 51 | 52 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  53 | 54 | 55 | 56 | 57 | 58 | 59 | > This link: [http://www.hihubs.com/article/378](http://www.hihubs.com/article/378) 60 | -------------------------------------------------------------------------------- /JavaScript implementation Apache .htaccess conversion nginx Generator tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |      This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-convert-htaccess2nginx](https://www.toolfk.com/tool-convert-htaccess2nginx) 6 | 7 | Teaching Code 8 | ------------- 9 | 10 | This tool \[Apache .htaccess conversion tool nginx\] ?? dependent RewriteConf library, because at that time looking for resources too messy, it did not record the source address, very sorry. Visit temporarily 11 | 12 | https://www.toolfk.com/tools/js/rewrite-conf.js 13 | 14 | STEP 1 15 | 16 | [![](https://4.bp.blogspot.com/-O5zZWr21M9A/XA8tpS7wZ3I/AAAAAAAAAF4/2It7vvIHsugCVlYbbmV7jnsf0vXoHtsiQCPcBGAYYCw/s1600/Htaccess.png)](https://4.bp.blogspot.com/-O5zZWr21M9A/XA8tpS7wZ3I/AAAAAAAAAF4/2It7vvIHsugCVlYbbmV7jnsf0vXoHtsiQCPcBGAYYCw/s1600/Htaccess.png) 17 | 18 | 19 | 20 | 21 | 22 | STEP 2 23 | 24 | ? THE CORE CODE IS AS FOLLOWS 25 | 26 | ``` 27 | $ ( ". Convert-btn"). Click (function () { 28 | 29 | if (toolfk.beautify_default.beautify_in_progress) { 30 | return; 31 | } 32 | var source = sourceArea.getValue (); 33 | if (source == '') { 34 | return layer.msg ( '@ lang (' toolfk.lang_context_not_empty ')'); 35 | } 36 | toolfk.beautify_default.beautify_in_progress = true; 37 | 38 | var nginx = RewriteConf.convert (source); 39 | targetArea.setValue (nginx); 40 | 41 | toolfk.report ( 'htaccess2Nginx', nginx); 42 | toolfk.beautify_default.beautify_in_progress = false; 43 | }); 44 | ``` 45 | 46 | It is worth a try for three reasons: 47 | ------------------------------------ 48 | 49 | 1. Integrate various programmers often used in development and testing tools. 50 | 51 | 2. Simple and beautiful atmosphere of the site pages 52 | 53 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 54 | 55 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  56 | 57 | 58 | 59 | 60 | > This link: [http://www.hihubs.com/article/375](http://www.hihubs.com/article/375) 61 | -------------------------------------------------------------------------------- /JS online for CSV conversion PHP, Mysql, Ruby and other tools - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |  This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-convert-csv](https://www.toolfk.com/tool-convert-csv) 6 | 7 | Teaching Code 8 | ------------- 9 | 10 | This tool \[JS Online for online CSV conversion PHP, Mysql, Ruby and other tools\]?-Dependent code library 11 | 12 | [](https://github.com/zenorocha/clipboard.js)[http://shancarter.github.com/mr-data-converter/](http://shancarter.github.com/mr-data-converter/) 13 | 14 | STEP 1 15 | 16 | [![](https://3.bp.blogspot.com/-ans2OFCK8jk/XA8tryRoYyI/AAAAAAAAAF4/eFOIYGfcDukgCr8zvzgh3lNX4FyasiMmACPcBGAYYCw/s1600/csv.png)](https://3.bp.blogspot.com/-ans2OFCK8jk/XA8tryRoYyI/AAAAAAAAAF4/eFOIYGfcDukgCr8zvzgh3lNX4FyasiMmACPcBGAYYCw/s1600/csv.png) 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | this.outputTextArea.click (function (evt) {this.select ();}); 24 | 25 | $ ( '. Inputfile'). Change (function (data) { 26 | var $ fileInput = $ ( 'inputfile.'); 27 | var fileList = $ fileInput.get (0) .files; 28 | if (fileList.length === 0) { 29 | layer.msg ( 'You must select a file'); 30 | return false; 31 | } 32 | var file = fileList [0]; 33 | if (file.type! == 'text / csv') { 34 | layer.msg ( 'Uploaded file must be a CSV file'); 35 | return false; 36 | } 37 | var reader = new FileReader (); 38 | reader.onloadend = function (e) { 39 | 40 | var data = e.target.result; 41 | var base64 = data.split ( 'base64,') [1]; 42 | $ ( "# DataInput") val (Base64Decode (base64)).; 43 | self.convert (); 44 | }; 45 | reader.readAsDataURL (file); 46 | }); 47 | ``` 48 | 49 | It is worth a try for three reasons: 50 | ------------------------------------ 51 | 52 | 1. Integrate various programmers often used in development and testing tools. 53 | 54 | 2. Simple and beautiful atmosphere of the site pages 55 | 56 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 57 | 58 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox 59 | -------------------------------------------------------------------------------- /JavaScript hex conversion tool for online sites - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-convert-hexadecimal](https://www.toolfk.com/tool-convert-hexadecimal) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[online? Hex conversion tool\]?-Dependent code base is https://www.toolfk.com/tools/js/hexconvert.js 13 | 14 | STEP 1 15 | 16 | [![](https://1.bp.blogspot.com/-AoUNLmcSxj4/XA8ttT_YazI/AAAAAAAAAF4/KGKSNK6CY443ChPUB9Vcaf1eYhYTBshXwCPcBGAYYCw/s1600/hex.png)](https://1.bp.blogspot.com/-AoUNLmcSxj4/XA8ttT_YazI/AAAAAAAAAF4/KGKSNK6CY443ChPUB9Vcaf1eYhYTBshXwCPcBGAYYCw/s1600/hex.png) 17 | 18 | 19 | 20 | 21 | 22 | STEP 2 23 | 24 | ? THE CORE CODE IS AS FOLLOWS 25 | 26 | ``` 27 | $ ( ". Cus-input"). Keyup (function () { 28 | if ($ (this) .val ()) { 29 | $ ( ". Convert-btn") trigger ( "click").; 30 | } 31 | }); 32 | $ ( '. Convert-btn'). On ( 'click', function (e) { 33 | e.preventDefault (); 34 | var num = $ ( '# num') val ().; 35 | var hex = $ ( "input [name = 'hex']: checked") val ();. 36 | var num = bases.fromBase (num, hex); 37 | if (num <0) { 38 | return layer.msg ( "@ lang ( 'toolfk.lang_text_valid')"); 39 | } 40 | . $ ( '# Base_2') val (bases.toBase (num, 2)); 41 | $ ( '# Base_8') val (bases.toBase (num, 8)).; 42 | . $ ( '# Base_10') val (bases.toBase (num, 10)); 43 | . $ ( '# Base_16') val (bases.toBase (num, 16)); 44 | . $ ( '# Base_26') val (bases.toBase (num, 26)); 45 | . $ ( '# Base_32') val (bases.toBase (num, 32)); 46 | . $ ( '# Base_36') val (bases.toBase (num, 36)); 47 | . $ ( '# Base_52') val (bases.toBase (num, 52)); 48 | $ ( '# Base_58') val (bases.toBase (num, 58)).; 49 | . $ ( '# Base_62') val (bases.toBase (num, 62)); 50 | . $ ( '# Base_64') val (bases.toBase (num, 64)); 51 | 52 | toolfk.report ( 'hexadecimal', num + ":" + hex); 53 | }); 54 | 55 | ``` 56 | 57 | 58 | 59 | It is worth a try for three reasons: 60 | ------------------------------------ 61 | 62 | 1. Integrate various programmers often used in development and testing tools. 63 | 64 | 2. Simple and beautiful atmosphere of the site pages 65 | 66 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 67 | 68 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  69 | 70 | 71 | 72 | 73 | 74 | 75 | > This link: [http://www.hihubs.com/article/376](http://www.hihubs.com/article/376) 76 | -------------------------------------------------------------------------------- /phantomjs achieve free online web screenshot tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |     This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-screen-captures](https://www.toolfk.com/tool-screen-captures) 6 | 7 | Teaching Code 8 | ------------- 9 | 10 | This tool \[online? Website screenshot tool\]?-Dependent code library phantomjs library.https://github.com/ariya/phantomjs 11 | 12 | STEP 1 13 | 14 | [![](https://4.bp.blogspot.com/-V3suH4_fDFM/XA8txPH35pI/AAAAAAAAAGA/dlN7dpYLlnY8y5DylPkHLPuYBtl5454CACPcBGAYYCw/s1600/screen.png)](https://4.bp.blogspot.com/-V3suH4_fDFM/XA8txPH35pI/AAAAAAAAAGA/dlN7dpYLlnY8y5DylPkHLPuYBtl5454CACPcBGAYYCw/s1600/screen.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | ``` 22 | var page = require ( 'webpage'). create (), 23 | system = require ( 'system'), 24 | url, filename, visitType, ratio; 25 | 26 | url = system.args [1]; 27 | filename = system.args [2]; 28 | visitType = system.args [3]; 29 | ratio = system.args [4]; 30 | 31 | 32 | //console.log(JSON.stringify(page.viewportSize)); 33 | page.open (url, function (status) { 34 | if (status! = "success") { 35 | console.log ( 'FAIL to load the address'); 36 | phantom.exit (); 37 | } 38 | 39 | if (visitType == 1) { 40 | switch (ratio) { 41 | case "0": page.viewportSize = {width: 1920, height: 1080}; break; 42 | case "1": page.viewportSize = {width: 2560, height: 1440}; break; 43 | case "2": page.viewportSize = {width: 1680, height: 1050}; break; 44 | case "3": page.viewportSize = {width: 1440, height: 900}; break; 45 | case "4": page.viewportSize = {width: 1280, height: 1024}; break; 46 | case "5": page.viewportSize = {width: 1024, height: 768}; break; 47 | default: page.viewportSize = {width: 1920, height: 1080}; 48 | 49 | } 50 | 51 | } 52 | }); 53 | 54 | page.onLoadFinished = function () { 55 | page.render (filename); 56 | page.close (); 57 | phantom.exit (); 58 | }; 59 | ``` 60 | 61 | 62 | It is worth a try for three reasons: 63 | ------------------------------------ 64 | 65 | 1. Integrate various programmers often used in development and testing tools. 66 | 67 | 2. Simple and beautiful atmosphere of the site pages 68 | 69 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 70 | 71 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  72 | 73 | 74 | 75 | 76 | 77 | 78 | > This link: [http://www.hihubs.com/article/380](http://www.hihubs.com/article/380) 79 | -------------------------------------------------------------------------------- /JavaScript achieve high strength random password generation online tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |      This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-password-generator](https://www.toolfk.com/tool-password-generator) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[Online high strength random password generator tool\]? Written in JavaScript 13 | 14 | STEP 1 15 | 16 | [![](https://3.bp.blogspot.com/-e_X1sqe2lcg/XA8tvz5dV_I/AAAAAAAAAGQ/ZZ3XM79DN58XlnlQweJzEvrnahVRtBj7QCPcBGAYYCw/s1600/password.png)](https://3.bp.blogspot.com/-e_X1sqe2lcg/XA8tvz5dV_I/AAAAAAAAAGQ/ZZ3XM79DN58XlnlQweJzEvrnahVRtBj7QCPcBGAYYCw/s1600/password.png) 17 | 18 | 19 | 20 | STEP 2 21 | 22 | ? THE CORE CODE IS AS FOLLOWS 23 | 24 | ``` 25 | function appendHtml (name, url) { 26 | var tmp_html = $ ( "# tmp") html () replaceAll ( "# NAME #", name) .replaceAll ( "# URL #", url)..; 27 | $ ( "Show-area.") Html (tmp_html).; 28 | } 29 | $ (Function () { 30 | $ ( ". Generate-password"). Click (function () { 31 | for (var E = $ ( "# pgLength"). Val (), A = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", T = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", R & lt = "0123456789", I = " ! @ # $% ^ & * () _ + ~ `|} {[]: ;?.> <, / - =", n = "", o = n; n.length This link: [http://www.hihubs.com/article/381](http://www.hihubs.com/article/381) 63 | -------------------------------------------------------------------------------- /JS achieve XML format online, compression, verification, XML transfer tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |  This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-format-xml](https://www.toolfk.com/tool-format-xml) 6 | 7 |  Teaching Code 8 | -------------- 9 | 10 | This tool \[JS achieve? XML format online, compression, verification, XML JSON transfer tool\]?-Dependent code base is [https://github.com/nashwaan/xml-js](https://github.com/nashwaan/xml-js) 11 | 12 | STEP 1 13 | 14 | [![](https://2.bp.blogspot.com/-yjy_R6-XDz8/XA8tpb9XLpI/AAAAAAAAAGI/QOsPiuSvRB8AEPO3fbK8hfNZgaEtMaT-ACPcBGAYYCw/s1600/XML.png)](https://2.bp.blogspot.com/-yjy_R6-XDz8/XA8tpb9XLpI/AAAAAAAAAGI/QOsPiuSvRB8AEPO3fbK8hfNZgaEtMaT-ACPcBGAYYCw/s1600/XML.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | var xt = "", h3OK = 1; 24 | function checkXML (e) { 25 | var t, o, i = e.nodeName; 26 | if ( "h3" == i) { 27 | if (0 == h3OK) 28 | return; 29 | h3OK = 0 30 | } 31 | for ( "#text" == i && (xt = xt + e.nodeValue + "\ n"), 32 | t = e.childNodes.length, 33 | o = 0; o This link: [http://www.hihubs.com/article/397](http://www.hihubs.com/article/397) 68 | -------------------------------------------------------------------------------- /Use PHP CURL simulate HTTP requests for online tool -toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-online-http](https://www.toolfk.com/tool-online-http) 6 | 7 | ? Teaching Code 8 | --------------- 9 | 10 | This tool \[Online PHP CURL? Simulation test tools\] relies on PHP CURL library,? PHP native language, easy to use, use the following code 11 | 12 | STEP 1 13 | 14 | [![](https://3.bp.blogspot.com/-6M_6ecJrGI8/XA-wUVpHmLI/AAAAAAAAAGY/cWdD41T8Ztg6M1lP1p7SFNULCmPA_5IqACLcBGAs/s1600/http.png)](https://3.bp.blogspot.com/-6M_6ecJrGI8/XA-wUVpHmLI/AAAAAAAAAGY/cWdD41T8Ztg6M1lP1p7SFNULCmPA_5IqACLcBGAs/s1600/http.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | DOCKER CORE USING THE FOLLOWING CODE, THE MAIN FILE IS A WRITE, EXECUTE THE FILE, AND THEN CLOSE THE DOCKER. 21 | 22 | ``` 23 | static function http ($ url, $ params = '', $ method = 'GET', $ cookie = '') { 24 | 25 | $ Header = array ( 26 | "Cache-control: no-cache", 27 | "Postman-token: 9f6b3c33-c23d-e754-7cd7-d3da69da4ad4" 28 | ); 29 | if ($ cookie) { 30 | $ Cookie_arr = explode ( "&", $ cookie): [];? 31 | $ Header = array_merge ($ cookie_arr, $ header); 32 | } 33 | $ Opts = array ( 34 | CURLOPT_RETURNTRANSFER => 1, 35 | CURLOPT_SSL_VERIFYPEER => false, 36 | CURLOPT_SSL_VERIFYHOST => false, 37 | CURLOPT_MAXREDIRS => 10, 38 | CURLOPT_TIMEOUT => 15, 39 | CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 40 | CURLOPT_FOLLOWLOCATION => 1, 41 | CURLOPT_HEADER => 0, 42 | CURLOPT_AUTOREFERER => true, 43 | CURLOPT_USERAGENT => self :: USER_AGENT_DEFAULT, 44 | CURLOPT_HTTPHEADER => $ header, 45 | ); 46 | 47 | switch (strtoupper ($ method)) { 48 | case 'GET': 49 | $ Opts [CURLOPT_URL] = $ url (is_array ($ params) http_build_query ($ params): $ params?);. '?'. 50 | break; 51 | case 'POST': 52 | // determine whether the file transfer 53 | $ Params = (? Is_array ($ params) http_build_query ($ params): $ params); 54 | $ Opts [CURLOPT_URL] = $ url; 55 | $ Opts [CURLOPT_POST] = 1; 56 | $ Opts [CURLOPT_POSTFIELDS] = $ params; 57 | break; 58 | } 59 | / * Initialize and curl request * / 60 | $ Ch = curl_init (); 61 | curl_setopt_array ($ ch, $ opts); 62 | $ Data = curl_exec ($ ch); 63 | $ Error = curl_error ($ ch); 64 | curl_close ($ ch); 65 | if ($ error) { 66 | return $ error; 67 | } Else { 68 | return $ data; 69 | } 70 | } 71 | ``` 72 | 73 | It is worth a try for three reasons: 74 | ------------------------------------ 75 | 76 | 1. Integrate various programmers often used in development and testing tools. 77 | 78 | 2. Simple and beautiful atmosphere of the site pages 79 | 80 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 81 | 82 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  83 | 84 | 85 | 86 | 87 | > This link: [http://www.hihubs.com/article/364](http://www.hihubs.com/article/364) 88 | -------------------------------------------------------------------------------- /Online implement JSON landscaping (format), JSON turn CSV, CSV turn XML tools -toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-format-json](https://www.toolfk.com/tool-format-json) 6 | 7 | ? Teaching Code 8 | --------------- 9 | 10 | This tool \[Online JSON format, JSON turn the CSV, JSON turn XML\] mainly depends on the following three JS library 11 | 12 | [https://github.com/nashwaan/xml-js#readme](https://github.com/nashwaan/xml-js#readme) 13 | 14 | [https://github.com/evanplaice/jquery-csv](https://github.com/evanplaice/jquery-csv) 15 | 16 | [https://www.oschina.net/code/snippet\_119610\_11825](https://www.oschina.net/code/snippet_119610_11825) 17 | 18 | The following page 19 | 20 | STEP 1 21 | 22 | [![](https://2.bp.blogspot.com/-2Gjv0Xz6x78/XA8ttIxLeyI/AAAAAAAAAF8/lkhsgXODgNgFhn5BXDikVy8Jb67d8IfDgCPcBGAYYCw/s1600/format-json.png)](https://2.bp.blogspot.com/-2Gjv0Xz6x78/XA8ttIxLeyI/AAAAAAAAAF8/lkhsgXODgNgFhn5BXDikVy8Jb67d8IfDgCPcBGAYYCw/s1600/format-json.png) 23 | 24 | 25 | 26 | STEP 2 27 | 28 | ? THE CORE CODE IS AS FOLLOWS 29 | 30 | ``` 31 | var excerptRows = 7; 32 | function renderCSV (objects) { 33 | var rows = $ .csv.fromObjects (objects, {justArrays: true}); 34 | if (rows.length <1) return; 35 | 36 | var table = document.createElement ( "table"); 37 | var thead = document.createElement ( "thead"); 38 | var tr = document.createElement ( "tr"); 39 | var header = rows [0]; 40 | for (field in header) { 41 | var th = document.createElement ( "th"); 42 | $ (Th) .text (header [field]); 43 | tr.appendChild (th); 44 | } 45 | thead.appendChild (tr); 46 | 47 | var tbody = document.createElement ( "tbody"); 48 | for (var i = 1; i This link: [http://www.hihubs.com/article/368](http://www.hihubs.com/article/368) 106 | -------------------------------------------------------------------------------- /Online stress testing tool - Programmer's Tool Network: -------------------------------------------------------------------------------- 1 |    This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool](https://www.toolfk.com/tool-game-calculator "Online calculator tool") , [Linux common commands Daquan](https://www.toolfk.com/tool-find-linux "https://www.toolfk.com/tool-find-linux") , [online text comparison tool](https://www.toolfk.com/tool-online-difftext "https://www.toolfk.com/tool-online-difftext") , [online mind mapping tools](https://www.toolfk.com/tool-online-mind "https://www.toolfk.com/tool-online-mind") , [online database design tool](https://www.toolfk.com/tool-online-designer "https://www.toolfk.com/tool-online-designer") , [free CDN acceleration service](https://www.toolfk.com/tool-online-cdnjs "https://www.toolfk.com/tool-online-cdnjs") , [online stress test tool ](https://www.toolfk.com/tool-online-bench "https://www.toolfk.com/tool-online-bench"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-online-bench](https://www.toolfk.com/tool-online-bench) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[Online stress testing tool\]?-Dependent code base is https://github.com/rakyll/hey 13 | 14 | STEP 1 15 | 16 | [![](https://1.bp.blogspot.com/-X8Sh_wGm2lU/XA8tqUcrx1I/AAAAAAAAAGM/TpWsaeVz9-kb0qL28FwCCR3ckJg5b9k0wCPcBGAYYCw/s1600/bench.png)](https://1.bp.blogspot.com/-X8Sh_wGm2lU/XA8tqUcrx1I/AAAAAAAAAGM/TpWsaeVz9-kb0qL28FwCCR3ckJg5b9k0wCPcBGAYYCw/s1600/bench.png) 17 | 18 | 19 | 20 | STEP 2 21 | 22 | ? THE CORE CODE IS AS FOLLOWS 23 | ``` 24 | # -N Number of requests to run. Default is 200. 25 | $ Number_n = intval (request ( 'n', 200)); 26 | $ Number_n = $ number_n> 10000 10000: $ number_n;? 27 | $ Number_n = $ number_n <10 10: $ number_n;? 28 | 29 | . $ Cmd = "-n {$ number_n}"; 30 | 31 | # -C Number of requests to run concurrently. Total number of requests can not be smaller than the concurrency level. Default is 50. 32 | $ Number_c = intval (request ( 'c', 50)); 33 | $ Number_c = $ number_c> 1000 1000: $ number_c;? 34 | ? $ Number_c = $ number_c <10 10: $ number_c; 35 | $ Cmd = "-c {$ number_c}".; 36 | 37 | #Rate limit, in queries per second (QPS). Default is no rate limit. (Rate limiting) 38 | $ Number_q = intval (request ( 'q', 0)); 39 | $ Number_q = $ number_q> 1000 1000: $ number_q;? 40 | ? $ Number_q = $ number_q <0 0: $ number_q; 41 | if ($ number_q) { 42 | $ Cmd = "-q {$ number_q}".; 43 | } 44 | 45 | 46 | # -Z how long execution time 47 | $ Number_z = intval (request ( 'z', 0)); // 10s, 3m 48 | $ Number_z = $ number_z> 60 60: $ number_z; # up to 60s? 49 | ? $ Number_z = $ number_z <0 0: $ number_z; 50 | if ($ number_z) { 51 | . $ Cmd = "-z {$ number_z}"; 52 | } 53 | 54 | # -M HTTP method, one of GET, POST, PUT, DELETE, HEAD, OPTIONS. 55 | $ Number_m = request ( 'm', 'GET'); // GET, POST 56 | if (! in_array ($ number_m, [ "GET", "POST"])) { 57 | $ Number_m = "GET"; 58 | } 59 | 60 | . $ Cmd = "-m {$ number_m}"; 61 | 62 | 63 | # -T Timeout for each request in seconds. Default is 20, use 0 for infinite. 64 | $ Number_t = intval (request ( 't', 20)); 65 | $ Number_t = $ number_t> 60 60: $ number_t; # up to 60s? 66 | ? $ Number_t = $ number_t <0 0: $ number_t; 67 | 68 | if ($ number_t) { 69 | . $ Cmd = "-t {$ number_t}"; 70 | } 71 | 72 | 73 | # -T Content-type, defaults to "text / html". 74 | $ Number_T = request ( 'T', "text / html"); 75 | if (! in_array ($ number_T, [ "text / html", "application / json", "multipart / form-data"])) { 76 | $ Number_T = "text / html"; 77 | } 78 | 79 | $ Cmd = "-T {$ number_T}".; 80 | 81 | 82 | # -D HTTP request body. 83 | $ Number_d = request ( 'd'); 84 | if ($ number_m == "POST") { 85 | . $ Cmd = "-d {$ number_d}"; 86 | } 87 | 88 | // \ App \ Helper \ UtilsHelper :: log_debug ( "CMD", $ cmd); 89 | . $ Cmd = "2> & 1"; 90 | $ Content = shell_exec ($ cmd); 91 | 92 | ``` 93 | 94 | 95 | > This link: [http://www.hihubs.com/article/395](http://www.hihubs.com/article/395) 96 | -------------------------------------------------------------------------------- /BASE64-line encryption and decryption- UrlEncode encoding/decoding- native/ascii online conversion tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |    This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-encdec-transform](https://www.toolfk.com/tool-encdec-transform) 6 | 7 |  Teaching Code 8 | -------------- 9 | 10 | This tool \[Online BASE64 encryption and decryption, UrlEncode encoding / decoding, native / ascii conversion tool Online\]?-Dependent code library 11 | 12 | [https://github.com/zenorocha/clipboard.js](https://github.com/zenorocha/clipboard.js) 13 | 14 | [https://github.com/codemirror/CodeMirror](https://github.com/codemirror/CodeMirror) 15 | 16 | [https://github.com/beatgammit/base64-js](https://github.com/brix/crypto-js) 17 | 18 | STEP 1 19 | 20 | [![](https://2.bp.blogspot.com/-wodSE_Ri8oI/XA8tsR_JxfI/AAAAAAAAAGM/MqOqXpZMRzEwHQMfl8co6n1EZJUw4KeJACPcBGAYYCw/s1600/encdec.png)](https://2.bp.blogspot.com/-wodSE_Ri8oI/XA8tsR_JxfI/AAAAAAAAAGM/MqOqXpZMRzEwHQMfl8co6n1EZJUw4KeJACPcBGAYYCw/s1600/encdec.png) 21 | 22 | 23 | 24 | STEP 2 25 | 26 | ? THE CORE CODE IS AS FOLLOWS 27 | 28 | ``` 29 | function base64_encode (message) { 30 | var base = new Base64 (); 31 | var value = base.encode (message); 32 | return value; 33 | } 34 | function base64_decode (message) { 35 | var base = new Base64 (); 36 | var value = base.decode (message); 37 | return value; 38 | } 39 | function url_encode (message) { 40 | var value = encodeURIComponent (message); 41 | return value; 42 | } 43 | function url_decode (message) { 44 | var value = decodeURIComponent (message); 45 | return value; 46 | } 47 | function ascii_unicode (message) { 48 | var len = message.length; 49 | var result = ''; 50 | for (var i = 0; i 127) { 72 | var charAscii = code.toString (16); 73 | charAscii = new String ( "0000") substring (charAscii.length, 4) + charAscii.; 74 | ascii + = "\\ u" + charAscii; 75 | } Else { 76 | ascii + = nativecode [i]; 77 | } 78 | } 79 | return ascii; 80 | } 81 | function native_ascii (message) { 82 | var asciicode = message.split ( "\\ u"); 83 | var nativeValue = asciicode [0]; 84 | for (var i = 1; i 4) { 88 | nativeValue + = code.substring (4, code.length); 89 | } 90 | } 91 | return nativeValue; 92 | } 93 | ``` 94 | 95 | 96 | 97 | It is worth a try for three reasons: 98 | ------------------------------------ 99 | 100 | 1. Integrate various programmers often used in development and testing tools. 101 | 102 | 2. Simple and beautiful atmosphere of the site pages 103 | 104 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 105 | 106 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  107 | 108 | 109 | 110 | 111 | 112 | 113 | > This link: [http://www.hihubs.com/article/370](http://www.hihubs.com/article/370) 114 | -------------------------------------------------------------------------------- /JS achieve Unix timestamp (Unix timestamp) conversion tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |      This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-convert-unixtime](https://www.toolfk.com/tool-convert-unixtime) 6 | 7 | ? Teaching Code 8 | --------------- 9 | 10 | This tool \[online? Timestamp conversion tool\] depends on the JavaScript implementation, the page is shown below 11 | 12 | STEP 1 13 | 14 | [![](https://2.bp.blogspot.com/-N2d8tC5ZeOk/XA8tx20iUXI/AAAAAAAAAGI/5I3Lg5xYDCksGKRdkrJ46UEPXx_Y30CIwCPcBGAYYCw/s1600/unixtime.png)](https://2.bp.blogspot.com/-N2d8tC5ZeOk/XA8tx20iUXI/AAAAAAAAAGI/5I3Lg5xYDCksGKRdkrJ46UEPXx_Y30CIwCPcBGAYYCw/s1600/unixtime.png) 15 | 16 | STEP 2 17 | 18 | ? THE CORE CODE IS AS FOLLOWS 19 | ``` 20 | $ (Function () { 21 | var js_timestamp_now = $ ( '# js_timestamp_now'); 22 | var js_timestamp = $ ( '# js_timestamp'); 23 | var js_timestamp_o = $ ( '# js_timestamp_o'); 24 | var js_datetime_o = $ ( '# js_datetime_o'); 25 | var js_timer_stop = $ ( '# js_timer_stop'); 26 | var js_timer_start = $ ( '# js_timer_start'); 27 | var js_timestamp_unit = $ ( '# js_timestamp_unit'); 28 | var js_timestamp_unit_o = $ ( '# js_timestamp_unit_o'); 29 | 30 | var now = Math.round (new Date () / 1000); 31 | js_timestamp.val (now); 32 | js_datetime_o.val (moment (now * 1000) .format ( 'YYYY-MM-DD HH: mm: ss')); 33 | 34 | var timer = setInterval (function () { 35 | var now = Math.round (new Date () / 1000); 36 | js_timestamp_now.text (now); 37 | }, 1000); 38 | js_timestamp_now.on ( 'click', function (e) { 39 | e.preventDefault (); 40 | js_timestamp.val ($ (this) .text ()); 41 | }); 42 | js_timer_start.hide (); 43 | js_timer_stop.show (); 44 | 45 | js_timer_stop.on ( 'click', function (e) { 46 | js_timer_stop.hide (); 47 | e.preventDefault (); 48 | if (timer) clearInterval (timer); 49 | js_timer_start.show (); 50 | }); 51 | 52 | js_timer_start.on ( 'click', function (e) { 53 | e.preventDefault (); 54 | js_timer_start.hide (); 55 | if (timer) clearInterval (timer); 56 | timer = setInterval (function () { 57 | var now = Math.round (new Date () / 1000); 58 | js_timestamp_now.text (now); 59 | }, 1000); 60 | js_timer_stop.show (); 61 | }); 62 | 63 | $ ( '# Js_convert_timestamp'). On ( 'click', function (e) { 64 | e.preventDefault (); 65 | var timestamp = js_timestamp.val (); 66 | timestamp = timestamp.replace (/ ^ \ s + | \ s + $ /, ''); 67 | if (! / ^ \ d + $ /. test (timestamp)) { 68 | alert ( "@ lang ( 'toolfk.lang_text_valid_txt')"); 69 | return; 70 | } 71 | if (timestamp.length> 10) { 72 | timestamp = timestamp / 1000; 73 | } 74 | timestamp * = 1000; 75 | var YmdHis = moment (timestamp) .format (js_timestamp_unit.val ()); 76 | toolfk.report ( 'js_convert_timestamp', YmdHis); 77 | $ ( '# Js_datetime') val (YmdHis).; 78 | }); 79 | 80 | $ ( '# Js_convert_datetime'). On ( 'click', function (e) { 81 | e.preventDefault (); 82 | var time = moment (js_datetime_o.val (), js_timestamp_unit_o.val ()); 83 | var value = time.unix (); 84 | js_timestamp_o.val (value); 85 | toolfk.report ( 'js_convert_datetime', value); 86 | }); 87 | }); 88 | ``` 89 | 90 | It is worth a try for three reasons: 91 | 92 | 1. Integrate various programmers often used in development and testing tools. 93 | 94 | 2. Simple and beautiful atmosphere of the site pages 95 | 96 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 97 | 98 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  99 | 100 | 101 | 102 | 103 | > This link: [http://www.hihubs.com/article/369](http://www.hihubs.com/article/369) 104 | -------------------------------------------------------------------------------- /JavaScript testing tool for online websocket WSS - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |    This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-online-runwebsocket](https://www.toolfk.com/tool-online-runwebsocket) 6 | 7 | Teaching Code 8 | ------------- 9 | 10 | This tool \[WebScoket online testing tool\]? Using JavaScript code. Web page as follows 11 | 12 | STEP 1 13 | 14 | [![](https://4.bp.blogspot.com/-zJnYgkhL-Ok/XA8tyYWC4XI/AAAAAAAAAGQ/vuY5fvqzYZw8sEeEUttlx7xzVrRZLuVQACPcBGAYYCw/s1600/websocket.png)](https://4.bp.blogspot.com/-zJnYgkhL-Ok/XA8tyYWC4XI/AAAAAAAAAGQ/vuY5fvqzYZw8sEeEUttlx7xzVrRZLuVQACPcBGAYYCw/s1600/websocket.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | function StartWebSocket (wsUri) { 24 | websocket = new WebSocket (wsUri); 25 | websocket.onopen = function (evt) {onOpen (evt)}; 26 | websocket.onclose = function (evt) {onClose (evt)}; 27 | websocket.onmessage = function (evt) {onMessage (evt)}; 28 | websocket.onerror = function (evt) {onError (evt)};} 29 | 30 | function onOpen (evt) { 31 | writeToScreen ( " @ lang ( 'toolfk.lang_text_connect_suc') "); 32 | } 33 | function onClose (evt) { 34 | writeToScreen ( " @ lang ( 'toolfk.lang_text_connect_close') "); 35 | websocket.close (); 36 | } 37 | function onMessage (evt) { 38 | writeToScreen ( ' @ lang (' toolfk.lang_text_server_rep ') & nbsp;' + formatDate (new Date ()) + '
'+ evt.data +' '); 39 | } 40 | function onError (evt) { 41 | writeToScreen ( ' @ lang (' toolfk.lang_text_send_error '): ' + evt.data); 42 | } 43 | function formatDate (now) { 44 | var year = now.getFullYear (); 45 | var month = now.getMonth () + 1; 46 | var date = now.getDate (); 47 | var hour = now.getHours (); 48 | var minute = now.getMinutes (); 49 | var second = now.getSeconds (); 50 | return year + "-" + (month = month <10 ( "0" + month):? month) + "-" + (? date = date <10 ( "0" + date): date) + "" + ( hour = hour <10 ( "0" + hour):? hour) + ":" + (minute = minute <10 ( "0" + minute?): minute) + ":" + (second = second <10? ( "0" + second): second); 51 | } 52 | function writeToScreen (message) { 53 | var div = "
" + message + ""; 54 | var d = $ ( "# output"); 55 | var d = d [0]; 56 | var doScroll = d.scrollTop == d.scrollHeight - d.clientHeight; 57 | $ ( "# Output") append (div).; 58 | if (doScroll) { 59 | d.scrollTop = d.scrollHeight - d.clientHeight; 60 | } 61 | } 62 | 63 | $ (Function () { 64 | $ ( ". Btn-open"). Click (function () { 65 | var wsaddr = $ ( "# wsaddr") val ().; 66 | if (wsaddr == '') { 67 | layer.msg ( "@ lang ( 'toolfk.lang_text_websocket_empty')"); 68 | return false; 69 | } 70 | StartWebSocket (wsaddr); 71 | }); 72 | 73 | $ ( ". Btn-close"). Click (function () { 74 | websocket.close (); 75 | }); 76 | 77 | $ ( ". Btn-clear"). Click (function () { 78 | . $ ( "# Wsaddr") val ( ""); 79 | $ ( "# Output") empty ().; 80 | }); 81 | $ ( ". Btn-demo"). Click (function () { 82 | $ ( "# Wsaddr") val ($ (this) .data ( "url")).; 83 | }); 84 | 85 | $ ( ". Btn-send"). Click (function () { 86 | var message = $ ( "# message") val ().; 87 | if (message == '') { 88 | layer.msg ( "@ lang ( 'toolfk.lang_text_send_address')"); 89 | $ ( "# Message") focus ().; 90 | return false; 91 | } 92 | if (typeof websocket === "undefined") { 93 | layer.msg ( "@ lang ( 'toolfk.lang_text_send_fail')"); 94 | return false; 95 | } 96 | if (websocket.readyState == 3) { 97 | layer.msg ( "@ lang ( 'toolfk.lang_text_close_suc')"); 98 | return false; 99 | } 100 | . $ ( "# Message") val ( ''); 101 | writeToScreen ( ' @ lang (' toolfk.lang_text_send_info_ok ') & nbsp;' + formatDate (new Date ()) + '
' + message); 102 | websocket.send (message); 103 | }) 104 | }); 105 | ``` 106 | 107 | 108 | It is worth a try for three reasons: 109 | ------------------------------------ 110 | 111 | 1. Integrate various programmers often used in development and testing tools. 112 | 113 | 2. Simple and beautiful atmosphere of the site pages 114 | 115 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 116 | 117 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  118 | 119 | 120 | This link: [http://www.hihubs.com/article/373](http://www.hihubs.com/article/373) 121 | -------------------------------------------------------------------------------- /Online SQL conversion CSV, XML, JSON, HTML programmer online tools network tools -toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |     This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool](https://www.toolfk.com/tool-game-calculator "Online calculator tool") , [Linux common commands Daquan](https://www.toolfk.com/tool-find-linux "https://www.toolfk.com/tool-find-linux") , [online text comparison tool](https://www.toolfk.com/tool-online-difftext "https://www.toolfk.com/tool-online-difftext") , [online mind mapping tools](https://www.toolfk.com/tool-online-mind "https://www.toolfk.com/tool-online-mind") , [online database design tool](https://www.toolfk.com/tool-online-designer "https://www.toolfk.com/tool-online-designer") , [free CDN acceleration service](https://www.toolfk.com/tool-online-cdnjs "https://www.toolfk.com/tool-online-cdnjs") , [online stress test tool](https://www.toolfk.com/tool-online-bench "https://www.toolfk.com/tool-online-bench") , [map coordinates pick up tools](https://www.toolfk.com/tool-online-map "https://www.toolfk.com/tool-online-map") , [online SQL conversion tool ](https://www.toolfk.com/tool-convert-sql "https://www.toolfk.com/tool-convert-sql"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-convert-sql](https://www.toolfk.com/tool-convert-sql) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[Online SQL conversion tool -toolfk programmer tool\]? Dependent[https://github.com/kripken/sql.js](https://github.com/kripken/sql.js)  library 13 | 14 | STEP 1 15 | 16 | [![](https://2.bp.blogspot.com/-FGb27rdM27I/XA8trb2EFcI/AAAAAAAAAGM/n1WeD1HFIkwOn39NYws43nO6N9BrcEP4gCPcBGAYYCw/s1600/convert-sql.png)](https://2.bp.blogspot.com/-FGb27rdM27I/XA8trb2EFcI/AAAAAAAAAGM/n1WeD1HFIkwOn39NYws43nO6N9BrcEP4gCPcBGAYYCw/s1600/convert-sql.png) 17 | 18 | 19 | 20 | 21 | 22 | STEP 2 23 | 24 | ? THE CORE CODE IS AS FOLLOWS 25 | 26 | ``` 27 | $ ( ". Sql-xml"). Click (function () { 28 | if (toolfk.beautify_default.beautify_in_progress) { 29 | return; 30 | } 31 | var source = sourceArea.getValue (); 32 | if (source == '') { 33 | return layer.msg (NOT_EMPTY); 34 | } 35 | var loading = layer.load (); 36 | toolfk.beautify_default.beautify_in_progress = true; 37 | sqlTOxml (source, targetArea); 38 | toolfk.beautify_default.beautify_in_progress = false; 39 | layer.close (loading); 40 | }); 41 | 42 | $ ( ". Sql-csv"). Click (function () { 43 | 44 | if (toolfk.beautify_default.beautify_in_progress) { 45 | return; 46 | } 47 | var loading = layer.load (); 48 | var source = sourceArea.getValue (); 49 | if (source == '') { 50 | layer.close (loading); 51 | return layer.msg (NOT_EMPTY); 52 | } 53 | 54 | toolfk.beautify_default.beautify_in_progress = true; 55 | sqlTOcsv (source, targetArea); 56 | toolfk.beautify_default.beautify_in_progress = false; 57 | layer.close (loading); 58 | }); 59 | 60 | $ ( ". Sql-json"). Click (function () { 61 | 62 | if (toolfk.beautify_default.beautify_in_progress) { 63 | return; 64 | } 65 | var loading = layer.load (); 66 | var source = sourceArea.getValue (); 67 | if (source == '') { 68 | layer.close (loading); 69 | return layer.msg (NOT_EMPTY); 70 | } 71 | 72 | toolfk.beautify_default.beautify_in_progress = true; 73 | sqlTOjson (source, targetArea); 74 | toolfk.beautify_default.beautify_in_progress = false; 75 | layer.close (loading); 76 | }); 77 | 78 | $ ( ". Sql-yaml"). Click (function () { 79 | 80 | if (toolfk.beautify_default.beautify_in_progress) { 81 | return; 82 | } 83 | var loading = layer.load (); 84 | var source = sourceArea.getValue (); 85 | if (source == '') { 86 | layer.close (loading); 87 | return layer.msg (NOT_EMPTY); 88 | } 89 | 90 | toolfk.beautify_default.beautify_in_progress = true; 91 | sqlTOyaml (source, targetArea); 92 | toolfk.beautify_default.beautify_in_progress = false; 93 | layer.close (loading); 94 | }); 95 | 96 | $ ( ". Sql-html"). Click (function () { 97 | 98 | if (toolfk.beautify_default.beautify_in_progress) { 99 | return; 100 | } 101 | var loading = layer.load (); 102 | var source = sourceArea.getValue (); 103 | if (source == '') { 104 | layer.close (loading); 105 | return layer.msg (NOT_EMPTY); 106 | } 107 | 108 | toolfk.beautify_default.beautify_in_progress = true; 109 | sqlTOhtml (source, targetArea); 110 | toolfk.beautify_default.beautify_in_progress = false; 111 | layer.close (loading); 112 | }); 113 | 114 | ``` 115 | 116 | It is worth a try for three reasons: 117 | ------------------------------------ 118 | 119 | 1. Integrate various programmers often used in development and testing tools. 120 | 121 | 2. Simple and beautiful atmosphere of the site pages 122 | 123 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 124 | 125 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  126 | 127 | 128 | 129 | 130 | 131 | 132 | > This link: [http://www.hihubs.com/article/398](http://www.hihubs.com/article/398) 133 | -------------------------------------------------------------------------------- /Online implement JavaScript landscaping (format), compression, encryption, decryption, obfuscation tool -toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |   This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-format-javascript](https://www.toolfk.com/tool-format-javascript) 6 | 7 | ? Teaching Code 8 | --------------- 9 | 10 | This tool \[Online JavaScript landscaping (format) / encryption / decryption / confused\] depends on its Github Codemirror ,? address: [https://github.com/codemirror/CodeMirror, encryption, decryption to http: // dean .edwards.name / packer / ](https://github.com/codemirror/CodeMirror,%E5%8A%A0%E5%AF%86%E3%80%81%E8%A7%A3%E5%AF%86%E4%BD%BF%E7%94%A8%E5%88%B0http://dean.edwards.name/packer/) library, use landscaping to csso-browser library,[https://github.com/css/csso](https://github.com/css/csso)    . Using the following code 11 | 12 | STEP 1 13 | 14 | [![](https://4.bp.blogspot.com/-sbSReN4OQD8/XA8tsvCXM8I/AAAAAAAAAGM/ltKXa1OrNAEyTgi4jKuZHPeqQTUZ1vnPACPcBGAYYCw/s1600/format-js.png)](https://4.bp.blogspot.com/-sbSReN4OQD8/XA8tsvCXM8I/AAAAAAAAAGM/ltKXa1OrNAEyTgi4jKuZHPeqQTUZ1vnPACPcBGAYYCw/s1600/format-js.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | beautify_start: function (options) { 24 | if (toolfk.beautify_default.beautify_in_progress) { 25 | return; 26 | } 27 | var opts = $ .extend ({}, toolfk.beautify_default, options); 28 | var source = opts.source.getValue (); 29 | if (source == '') { 30 | return layer.msg (NOT_EMPTY); 31 | } 32 | toolfk.beautify_default.beautify_in_progress = true; 33 | if (opts.language === 'html') { 34 | output = beautifier.html (source, opts); 35 | } Else if (opts.language === 'css') { 36 | output = beautifier.css (source, opts); 37 | } Else { 38 | if (opts.detect_packers) { 39 | source = toolfk.beautify_unpacker_filter (source); 40 | } 41 | output = beautifier.js (source, opts); 42 | } 43 | opts.target.setValue (output); 44 | toolfk.report ( 'beautify', output); 45 | toolfk.beautify_default.beautify_in_progress = false; 46 | }, 47 | pack_js: function (options) { 48 | if (toolfk.beautify_default.beautify_in_progress) { 49 | return; 50 | } 51 | var opts = $ .extend ({}, toolfk.beautify_default, options); 52 | var source = opts.source.getValue (); 53 | if (source == '') { 54 | return layer.msg (NOT_EMPTY); 55 | } 56 | toolfk.beautify_default.beautify_in_progress = true; 57 | var packer = new Packer; 58 | if (opts.is_base64) { 59 | var output = packer.pack (source, 1, opts.is_shrink); 60 | } Else { 61 | var output = packer.pack (source, 0, opts.is_shrink); 62 | } 63 | opts.target.setValue (output); 64 | toolfk.report ( 'compress', output); 65 | toolfk.beautify_default.beautify_in_progress = false; 66 | }, 67 | dec_pack: function (options) { 68 | if (toolfk.beautify_default.beautify_in_progress) { 69 | return; 70 | } 71 | var opts = $ .extend ({}, toolfk.beautify_default, options); 72 | var source = opts.source.getValue (); 73 | if (source == '') { 74 | return layer.msg (NOT_EMPTY); 75 | } 76 | toolfk.beautify_default.beautify_in_progress = true; 77 | try { 78 | eval ( 'var value = String' + source.slice (4)); 79 | opts.target.setValue (value); 80 | toolfk.report ( 'deciphering-compress', value); 81 | } Catch (e) { 82 | layer.msg (TEXT_ERROR); 83 | } 84 | toolfk.beautify_default.beautify_in_progress = false; 85 | }, 86 | dec_pack_shrink: function (options) { 87 | if (toolfk.beautify_default.beautify_in_progress) { 88 | return; 89 | } 90 | var opts = $ .extend ({}, toolfk.beautify_default, options); 91 | var source = opts.source.getValue (); 92 | if (source == '') { 93 | return layer.msg (NOT_EMPTY); 94 | } 95 | toolfk.beautify_default.beautify_in_progress = true; 96 | try { 97 | eval ( 'var value = String' + source.slice (4)); 98 | var source = toolfk.beautify_unpacker_filter (value); 99 | output = beautifier.js (source, opts); 100 | opts.target.setValue (output); 101 | toolfk.report ( 'decode-code', output); 102 | } Catch (e) { 103 | layer.msg (TEXT_ERROR); 104 | } 105 | toolfk.beautify_default.beautify_in_progress = false; 106 | }, 107 | code_code: function (options) { 108 | if (toolfk.beautify_default.beautify_in_progress) { 109 | return; 110 | } 111 | var opts = $ .extend ({}, toolfk.beautify_default, options); 112 | var target = opts.target.getValue (); 113 | if (target == '') { 114 | return layer.msg (NOT_EMPTY); 115 | } 116 | toolfk.beautify_default.beautify_in_progress = true; 117 | new ClipboardJS ( '. copy-code', { 118 | text: function (trigger) { 119 | layer.msg (COPY_SUCC); 120 | return target; 121 | } 122 | }); 123 | toolfk.beautify_default.beautify_in_progress = false; 124 | }, 125 | / * Css * / 126 | purify_css: function (options) { 127 | if (toolfk.beautify_default.beautify_in_progress) { 128 | return; 129 | } 130 | var opts = $ .extend ({}, toolfk.beautify_default, options); 131 | var source = opts.source.getValue (); 132 | if (source == '') { 133 | return layer.msg (NOT_EMPTY); 134 | } 135 | toolfk.beautify_default.beautify_in_progress = true; 136 | var value = toolfk.purify_encode (source) .replace (/ \} / g, '} \ n'); 137 | opts.target.setValue (value); 138 | toolfk.report ( 'purify_css', value); 139 | toolfk.beautify_default.beautify_in_progress = false; 140 | }, 141 | purify_encode: function (text) { 142 | var val = text; 143 | val = val.replace (/ \ / \ * (| \ n) * \ * \ // g, ''.?); // remove comments 144 | val = val.replace (/ ^ \ s + | \ s + $ / g, ''); // Clear both spaces 145 | val = val.replace (/ (:) \ s + / g, '$ 1'); // plurality of spaces such as the removal of the colon width: 100px => width: 100px 146 | val = val.replace (/ \ s {2,} / g, ''); // remove extra spaces, such as two or more margin: 10px 20px 30px => margin: 10px 20px 30px 147 | val = val.replace (/, \ s + | \ s +, / g, ','); // remove extra spaces, such as shared when a plurality of patterns h1, h2, h3 => h1, h2, h3 148 | val = val.replace (/; {2,} |; \ s + / g, ';'); // remove excess rear space as a plurality of semi-colon, or semicolon width: 200px ;; height: 100px => width: 200px; height: 100px 149 | val = val.replace (/ \ s * \ {\ s * / g, '{'); // remove excess space behind the selectors such as div {height: 100px} => div {height: 100px} 150 | val = val.replace (/ \ s *} \ s * / g, '}'); // remove extra spaces, such as in front of the selector div {height: 100px} a {} => div {height: 100px} a { } 151 | val = val.replace (/ [\ n \ t \ f \ r] / g, ''); // removing wrap, tabs, page breaks, the transport 152 | val = val.replace (/;} / g, '}'); 153 | return val; 154 | }, 155 | optimize_css: function (options) { 156 | if (toolfk.beautify_default.beautify_in_progress) { 157 | return; 158 | } 159 | var opts = $ .extend ({}, toolfk.beautify_default, options); 160 | var source = opts.source.getValue (); 161 | if (source == '') { 162 | return layer.msg (NOT_EMPTY); 163 | } 164 | toolfk.beautify_default.beautify_in_progress = true; 165 | var lastResult = csso.minify (source, { 166 | restructure: true 167 | }); 168 | var value = lastResult.css; 169 | opts.target.setValue (value); 170 | toolfk.report ( 'optimize_css', value); 171 | toolfk.beautify_default.beautify_in_progress = false; 172 | }, 173 | 174 | ``` 175 | 176 | It is worth a try for three reasons: 177 | ------------------------------------ 178 | 179 | 1. Integrate various programmers often used in development and testing tools. 180 | 181 | 2. Simple and beautiful atmosphere of the site pages 182 | 183 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 184 | 185 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  186 | 187 | 188 | 189 | 190 | > This link: [http://www.hihubs.com/article/366](http://www.hihubs.com/article/366) 191 | -------------------------------------------------------------------------------- /Online implement CSS beautification (format), compression, encryption, decryption, obfuscation tool - toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | Site name: ToolFk 4 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 5 | Tools link: [https://www.toolfk.com/tool-format-css](https://www.toolfk.com/tool-format-css) 6 | 7 |  Teaching Code 8 | -------------- 9 | 10 | This tool \[Online CSS beautification (format) / encryption / decryption / confused\] depends on its Github Codemirror ,? address: [https://github.com/codemirror/CodeMirror, encryption, decryption to http: // dean .edwards.name / packer /](https://github.com/codemirror/CodeMirror,%E5%8A%A0%E5%AF%86%E3%80%81%E8%A7%A3%E5%AF%86%E4%BD%BF%E7%94%A8%E5%88%B0http://dean.edwards.name/packer/)  library, use landscaping to csso-browser library, [https://github.com/css/csso](https://github.com/css/csso)    .Using the following code 11 | 12 | STEP 1 13 | 14 | [![](https://4.bp.blogspot.com/-PZh7jw7akZY/XA8tsqdlepI/AAAAAAAAAGM/NIVwIeV86cMReKsnXfR2KUxBphOBCE4kQCPcBGAYYCw/s1600/format-css.png)](https://4.bp.blogspot.com/-PZh7jw7akZY/XA8tsqdlepI/AAAAAAAAAGM/NIVwIeV86cMReKsnXfR2KUxBphOBCE4kQCPcBGAYYCw/s1600/format-css.png) 15 | 16 | 17 | 18 | STEP 2 19 | 20 | ? THE CORE CODE IS AS FOLLOWS 21 | 22 | ``` 23 | beautify_start: function (options) { 24 | if (toolfk.beautify_default.beautify_in_progress) { 25 | return; 26 | } 27 | var opts = $ .extend ({}, toolfk.beautify_default, options); 28 | 29 | var source = opts.source.getValue (); 30 | if (source == '') { 31 | return layer.msg (NOT_EMPTY); 32 | } 33 | 34 | toolfk.beautify_default.beautify_in_progress = true; 35 | if (opts.language === 'html') { 36 | output = beautifier.html (source, opts); 37 | } Else if (opts.language === 'css') { 38 | output = beautifier.css (source, opts); 39 | } Else { 40 | if (opts.detect_packers) { 41 | source = toolfk.beautify_unpacker_filter (source); 42 | } 43 | output = beautifier.js (source, opts); 44 | } 45 | 46 | opts.target.setValue (output); 47 | toolfk.report ( 'beautify', output); 48 | toolfk.beautify_default.beautify_in_progress = false; 49 | }, 50 | 51 | pack_js: function (options) { 52 | if (toolfk.beautify_default.beautify_in_progress) { 53 | return; 54 | } 55 | var opts = $ .extend ({}, toolfk.beautify_default, options); 56 | 57 | var source = opts.source.getValue (); 58 | if (source == '') { 59 | return layer.msg (NOT_EMPTY); 60 | } 61 | toolfk.beautify_default.beautify_in_progress = true; 62 | 63 | var packer = new Packer; 64 | if (opts.is_base64) { 65 | var output = packer.pack (source, 1, opts.is_shrink); 66 | } Else { 67 | var output = packer.pack (source, 0, opts.is_shrink); 68 | } 69 | opts.target.setValue (output); 70 | toolfk.report ( 'compress', output); 71 | toolfk.beautify_default.beautify_in_progress = false; 72 | }, 73 | 74 | dec_pack: function (options) { 75 | if (toolfk.beautify_default.beautify_in_progress) { 76 | return; 77 | } 78 | var opts = $ .extend ({}, toolfk.beautify_default, options); 79 | 80 | var source = opts.source.getValue (); 81 | if (source == '') { 82 | return layer.msg (NOT_EMPTY); 83 | } 84 | toolfk.beautify_default.beautify_in_progress = true; 85 | try { 86 | eval ( 'var value = String' + source.slice (4)); 87 | opts.target.setValue (value); 88 | toolfk.report ( 'deciphering-compress', value); 89 | } Catch (e) { 90 | layer.msg (TEXT_ERROR); 91 | } 92 | toolfk.beautify_default.beautify_in_progress = false; 93 | }, 94 | 95 | dec_pack_shrink: function (options) { 96 | if (toolfk.beautify_default.beautify_in_progress) { 97 | return; 98 | } 99 | var opts = $ .extend ({}, toolfk.beautify_default, options); 100 | 101 | var source = opts.source.getValue (); 102 | if (source == '') { 103 | return layer.msg (NOT_EMPTY); 104 | } 105 | toolfk.beautify_default.beautify_in_progress = true; 106 | try { 107 | eval ( 'var value = String' + source.slice (4)); 108 | var source = toolfk.beautify_unpacker_filter (value); 109 | output = beautifier.js (source, opts); 110 | opts.target.setValue (output); 111 | toolfk.report ( 'decode-code', output); 112 | } Catch (e) { 113 | layer.msg (TEXT_ERROR); 114 | } 115 | toolfk.beautify_default.beautify_in_progress = false; 116 | }, 117 | 118 | code_code: function (options) { 119 | if (toolfk.beautify_default.beautify_in_progress) { 120 | return; 121 | } 122 | var opts = $ .extend ({}, toolfk.beautify_default, options); 123 | 124 | var target = opts.target.getValue (); 125 | if (target == '') { 126 | return layer.msg (NOT_EMPTY); 127 | } 128 | toolfk.beautify_default.beautify_in_progress = true; 129 | new ClipboardJS ( '. copy-code', { 130 | text: function (trigger) { 131 | layer.msg (COPY_SUCC); 132 | return target; 133 | } 134 | }); 135 | toolfk.beautify_default.beautify_in_progress = false; 136 | }, 137 | 138 | / * Css * / 139 | purify_css: function (options) { 140 | if (toolfk.beautify_default.beautify_in_progress) { 141 | return; 142 | } 143 | var opts = $ .extend ({}, toolfk.beautify_default, options); 144 | 145 | var source = opts.source.getValue (); 146 | if (source == '') { 147 | return layer.msg (NOT_EMPTY); 148 | } 149 | toolfk.beautify_default.beautify_in_progress = true; 150 | 151 | var value = toolfk.purify_encode (source) .replace (/ \} / g, '} \ n'); 152 | opts.target.setValue (value); 153 | toolfk.report ( 'purify_css', value); 154 | toolfk.beautify_default.beautify_in_progress = false; 155 | }, 156 | 157 | purify_encode: function (text) { 158 | var val = text; 159 | val = val.replace (/ \ / \ * (| \ n) * \ * \ // g, ''.?); // remove comments 160 | val = val.replace (/ ^ \ s + | \ s + $ / g, ''); // Clear both spaces 161 | val = val.replace (/ (:) \ s + / g, '$ 1'); // plurality of spaces such as the removal of the colon width: 100px => width: 100px 162 | val = val.replace (/ \ s {2,} / g, ''); // remove extra spaces, such as two or more margin: 10px 20px 30px => margin: 10px 20px 30px 163 | val = val.replace (/, \ s + | \ s +, / g, ','); // remove extra spaces, such as shared when a plurality of patterns h1, h2, h3 => h1, h2, h3 164 | val = val.replace (/; {2,} |; \ s + / g, ';'); // remove excess rear space as a plurality of semi-colon, or semicolon width: 200px ;; height: 100px => width: 200px; height: 100px 165 | val = val.replace (/ \ s * \ {\ s * / g, '{'); // remove excess space behind the selectors such as div {height: 100px} => div {height: 100px} 166 | val = val.replace (/ \ s *} \ s * / g, '}'); // remove extra spaces, such as in front of the selector div {height: 100px} a {} => div {height: 100px} a { } 167 | val = val.replace (/ [\ n \ t \ f \ r] / g, ''); // removing wrap, tabs, page breaks, the transport 168 | val = val.replace (/;} / g, '}'); 169 | return val; 170 | }, 171 | 172 | optimize_css: function (options) { 173 | if (toolfk.beautify_default.beautify_in_progress) { 174 | return; 175 | } 176 | var opts = $ .extend ({}, toolfk.beautify_default, options); 177 | 178 | var source = opts.source.getValue (); 179 | if (source == '') { 180 | return layer.msg (NOT_EMPTY); 181 | } 182 | toolfk.beautify_default.beautify_in_progress = true; 183 | 184 | var lastResult = csso.minify (source, { 185 | restructure: true 186 | }); 187 | 188 | var value = lastResult.css; 189 | opts.target.setValue (value); 190 | toolfk.report ( 'optimize_css', value); 191 | toolfk.beautify_default.beautify_in_progress = false; 192 | }, 193 | ``` 194 | It is worth a try for three reasons: 195 | ------------------------------------ 196 | 197 | 1. Integrate various programmers often used in development and testing tools. 198 | 199 | 2. Simple and beautiful atmosphere of the site pages 200 | 201 | 3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service 202 | 203 | 4. Also recommend its sister network  [www.videofk.com](http://www.videofk.com/)  video download Toolbox  204 | 205 | 206 | > This link: [http://www.hihubs.com/article/367](http://www.hihubs.com/article/367) 207 | -------------------------------------------------------------------------------- /JavaScritp achieve online calculator tool -toolfk online Programmer toolbox: -------------------------------------------------------------------------------- 1 |       This paper to recommend \[ToolFk\] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   [BarCode Barcode generated online ](https://www.toolfk.com/tool-generator-barcode "BarCode Barcode generated online"),  [QueryList collector ](https://www.toolfk.com/tool-run-reptile "QueryList collector"),  [PHP code is run online ](https://www.toolfk.com/tool-online-runphp "PHP code online operation"),  [PHP confusion, encryption, decryption ](https://www.toolfk.com/tool-convert-php "PHP confusion, encryption, decryption"),  [Python code is run online ](https://www.toolfk.com/tool-online-runpython "Python code runs online"), [JavaScript online operation ](https://www.toolfk.com/tool-online-runjs "JavaScript online operation"),[YAML formatting tools](https://www.toolfk.com/tool-format-yaml "YAML formatting tools") , [HTTP simulation query tool ](https://www.toolfk.com/tool-online-http "HTTP query tool simulation"), [HTML online toolbox ](https://www.toolfk.com/tool-format-html "HTML Online Toolbox"), [JavaScript online Toolbox ](https://www.toolfk.com/tool-format-javascript "JavaScript toolkit online"),[CSS online toolbox ](https://www.toolfk.com/tool-format-css "CSS Online Toolbox"), [JSON online toolbox ](https://www.toolfk.com/tool-format-json "JSON Online Toolbox"), [unixtime timestamp conversion ](https://www.toolfk.com/tool-convert-unixtime "Unixtime timestamp conversion"), [Base64 / the URL of / native2ascii conversion ](https://www.toolfk.com/tool-encdec-transform "Base64 / URL / Native2Ascii conversion"), [CSV conversion kit ](https://www.toolfk.com/tool-convert-csv "CSV Converter Toolkit"), [XML online toolbox ](https://www.toolfk.com/tool-format-xml "XML Online Toolbox"), [the WebSocket online tools ](https://www.toolfk.com/tool-online-runwebsocket "WebSocket online tools"), [Markdown online toolbox ](https://www.toolfk.com/tool-convert-markdown "Markdown Online Toolbox"), [Htaccess2nginx conversion](https://www.toolfk.com/tool-convert-htaccess2nginx "Htaccess2nginx conversion"), [Hex conversion online ](https://www.toolfk.com/tool-convert-hexadecimal "Online hex conversion"), [online encryption toolkit ](https://www.toolfk.com/tool-convert-encryption "Online Encryption Toolkit"),[online pseudo-original tools ](https://www.toolfk.com/tool-convert-text "Online pseudo-original tool"), [online APK decompile ](https://www.toolfk.com/tool-decompile-apk "Online APK decompile"), [online web screenshot tool ](https://www.toolfk.com/tool-screen-captures "Online web screenshot tool"), [online random password generation ](https://www.toolfk.com/tool-password-generator "Online Random Password Generator"), [online generate two-dimensional code qrcode ](https://www.toolfk.com/tool-generate-qrcode "Online generated two-dimensional code Qrcode"), [online Crontab Expression Builder ](https://www.toolfk.com/tool-generate-crontab "Online Crontab Expression Builder"),[the online short URL Generator ](https://www.toolfk.com/tool-short-url "Online Short URL Generator"), [Online calculator tool ](https://www.toolfk.com/tool-game-calculator "Online calculator tool"). And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox. 2 | 3 | 4 | 5 | Site name: ToolFk 6 | website links: [https://www.toolfk.com/](https://www.toolfk.com/) 7 | Tools link: [https://www.toolfk.com/tool-game-calculator](https://www.toolfk.com/tool-game-calculator) 8 | 9 | ? Teaching Code 10 | --------------- 11 | 12 | This tool \[online scientific calculator tool\]?-Dependent code base is https://github.com/seaswalker/js\_calculator 13 | 14 | STEP 1 15 | 16 | [![](https://2.bp.blogspot.com/-CxRERZJ6BE8/XA8tql446mI/AAAAAAAAAGA/Jfyjcp2H5Rw48U4ufhenBuFVjud7npC7wCPcBGAYYCw/s1600/canculator.png)](https://2.bp.blogspot.com/-CxRERZJ6BE8/XA8tql446mI/AAAAAAAAAGA/Jfyjcp2H5Rw48U4ufhenBuFVjud7npC7wCPcBGAYYCw/s1600/canculator.png) 17 | 18 | 19 | 20 | STEP 2 21 | 22 | ? THE CORE CODE IS AS FOLLOWS 23 | 24 | ``` 25 | // Global calculator objects 26 | var Calculator = (function () { 27 | var cal = { 28 | Calculator keys // coding 29 | keyCodes: { 30 | 0: '0', 31 | 1: '1', 32 | twenty two', 33 | 3: '3', 34 | 4: '4', 35 | 5: '5', 36 | 6: '6', 37 | 7: '7', 38 | 8: '8', 39 | 9: '9', 40 | 10:, '.' 41 | 11: '±', 42 | 12: '=', 43 | 13: '+' 44 | 14: '-', 45 | 15: '*', 46 | 16: '/', 47 | 17: '%', 48 | 18: '√', 49 | 19: 'x2', 50 | 20: '1 / x', 51 | twenty one: '(', 52 | twenty two: ')', 53 | 23: 'yroot', 54 | 24: 'n!', 55 | 25: 'Exp', 56 | 26: '^', 57 | 27: 'sin', 58 | 28: 'cos', 59 | 29: 'tan', 60 | 30: 'powten', 61 | 31: 'log', 62 | 32: 'sinh', 63 | 33: 'cosh', 64 | 34: 'tanh', 65 | 35: 'π', 66 | 36: '↑', 67 | 37: 'CE', 68 | 38: 'C', 69 | 39: 'Back', 70 | // The following is a programmer-type-specific keys 71 | 40: 'A', 72 | 41: 'B', 73 | 42: 'C', 74 | 43: 'D', 75 | 44: 'E', 76 | 45: 'F', 77 | 46: '&', 78 | 47: '|', 79 | 48: '~' 80 | }, 81 | // for displaying map operators, such as * when calculation, while x showed better 82 | operatorFacade: { 83 | 13: '+' 84 | 14: '-', 85 | 15: '×', 86 | 16: '÷', 87 | 17: '%', 88 | 23: 'yroot', 89 | 26: '^', 90 | 46: '&', 91 | 47: '|' 92 | }, 93 | // current calculator type 1 -> Standard 2 -> science-based, 3 -> programmer type, the default standard 94 | type: 1, 95 | // calculator type prefix, used to obtain elements from the page 96 | typePrefix: { 97 | 1: "std-", 98 | 2: "sci-", 99 | 3: "pro-" 100 | }, 101 | // record whether each type of calculator event listener is already bound, key: typpe value, value: The default standard is true (Loaded) 102 | hasInited: { 103 | 1: true, 104 | 2: false, 105 | 3: false 106 | }, 107 | //constant 108 | constants: { 109 | // color when the mouse hovers 110 | mouseHoverColor: "#CFCFCF", 111 | // color calculator below the first row and the other row is different, this is the background color of the first row 112 | firstMouseOutColor: "# F2F2F2", 113 | // remaining background color of each row 114 | mouseOutColor: "# E6E6E6" 115 | }, 116 | cache: { 117 | // display the contents of the input element 118 | showInput: null, 119 | // Previous calculations show area 120 | preStep: null, 121 | // display span four kinds of binary values, only valid in the programmer type 122 | scaleSpans: null 123 | }, 124 | / ** 125 | * Get the content cache.showInput 126 | * @Return String 127 | * / 128 | getShowInput: function () { 129 | return cal.cache.showInput.innerHTML; 130 | }, 131 | / ** 132 | * Set showInput value 133 | * @Param value 134 | * / 135 | setShowInput: function (value) { 136 | cal.cache.showInput.innerHTML = value; 137 | }, 138 | / ** 139 | * Get the content cache.preStep 140 | * @Return String 141 | * / 142 | getPreStep: function () { 143 | return cal.cache.preStep.innerHTML; 144 | }, 145 | setPreStep: function (value) { 146 | cal.cache.preStep.innerHTML = value; 147 | }, 148 | // operand stack 149 | operandStack: [], 150 | // operator stack 151 | operatorStack: [], 152 | // once the input is a binary operator, if it is a binary operator and enter again, this input is ignored 153 | isPreInputBinaryOperator: false, 154 | // if the last key pressed a meta-operation 155 | isPreInputUnaryOperator: false, 156 | // equal sign can not double-click 157 | isPreInputEquals: false, 158 | // If true, then the next digital input on the need to cover showInput, rather than appending 159 | // the last calculated result (=) 160 | preResult: 0, 161 | // band currently used (only valid for programmers), the default decimal (DEC) 162 | currentScale: 10, 163 | isOverride: false, 164 | // int check 165 | intPattern:? / ^ - \ d + $ /, 166 | // decimal check 167 | floatPattern: /^-?\d+\.\d+$/, 168 | // scientific notation check 169 | scientificPattern: /^\d+\.\d+e(\+|-)\d+$/, 170 | // check digit hexadecimal 171 | hexPattern: / ^ [0-9A-F] + $ /, 172 | // Auxiliary operator priority determination 173 | operatorPriority: { 174 | ")": 0, 175 | "|": 1, 176 | "&": 2, 177 | "+": 3, 178 | "-": 3, 179 | "*": 4, 180 | "%": 4, 181 | "/": 4, 182 | "^": 5, 183 | "Yroot": 5, 184 | "(": 6 185 | }, 186 | / ** 187 | * Initialize the cache object (cal.cache) 188 | * / 189 | initCache: function () { 190 | var prefix = cal.typePrefix [cal.type]; 191 | cal.cache.showInput = document.getElementById (prefix + "show-input"); 192 | cal.cache.preStep = document.getElementById (prefix + "pre-step"); 193 | if (cal.type == 3) { 194 | cal.cache.scaleSpans = document.getElementById ( "pro-scales") getElementsByTagName ( "span").; 195 | } 196 | }, 197 | // various event listener function 198 | listeners: { 199 | / ** 200 | * Hover color effect of the keys 201 | * / 202 | mouseHoverListener: function (e) { 203 | var event = e || window.event; 204 | event.currentTarget.style.backgroundColor = cal.constants.mouseHoverColor; 205 | }, 206 | / ** 207 | * Mouse removed from the row of symbols color effect 208 | * / 209 | firstMouseOutListener: function (e) { 210 | var event = e || window.event; 211 | event.currentTarget.style.backgroundColor = cal.constants.firstMouseOutColor; 212 | }, 213 | / ** 214 | * Mouse out from the lower row of numbers, symbols color effect 215 | * / 216 | mouseOutListener: function (e) { 217 | var event = e || window.event; 218 | event.currentTarget.style.backgroundColor = cal.constants.mouseOutColor; 219 | }, 220 | / ** 221 | * Press the button event listener 222 | * / 223 | keyPressListener: function (e) { 224 | var event = e || window.event; 225 | cal.handleKey (event.currentTarget.value); 226 | }, 227 | / ** 228 | * Show / Hide calculator type selection bar 229 | * / 230 | toggleTypeBarListener: function () { 231 | var bar = document.getElementById (cal.typePrefix [cal.type] + "type-bar"); 232 | if (bar.style.display === "block") { 233 | bar.style.display = "none"; 234 | } Else { 235 | bar.style.display = "block"; 236 | } 237 | }, 238 | / ** 239 | * Switch the calculator type Listener 240 | * / 241 | switchTypeListener: function (e) { 242 | var event = e || window.event; 243 | cal.switchType (parseInt (event.currentTarget.value)); 244 | }, 245 | / ** 246 | * Hexadecimal switch (special programmer) 247 | * / 248 | switchScaleListener: function (e) { 249 | var event = e || window.event; 250 | var scales = document.getElementById ( "pro-scales"). getElementsByTagName ( "div"), 251 | Returns the child elements of the case // here you should use the currentTarget property because the target attribute element binding events are sub-elements 252 | scale = parseInt (event.currentTarget.getAttribute ( "scale")), 253 | oldScale = cal.currentScale; 254 | // switch the selected style 255 | for (var i = 0, l = scales.length; i 8) { 275 | . Lis = document.getElementById ( "pro-top-symbol") getElementsByTagName ( "li"); 276 | cal.disableButtons (lis, cal.listeners.firstMouseOutListener); 277 | // Disable 8 and 9 278 | btns = cal.getElementsByAttribute ( "li", "oct-disable", document.getElementById ( "pro-num-symbol")); 279 | cal.disableButtons (btns, cal.listeners.mouseOutListener); 280 | } Else { 281 | cal.listeners._initSecondRowListeners (); 282 | } 283 | } Else if (scale === 2) { 284 | if (oldScale === 16) { 285 | . Lis = document.getElementById ( "pro-top-symbol") getElementsByTagName ( "li"); 286 | cal.disableButtons (lis, cal.listeners.firstMouseOutListener); 287 | } 288 | // Disable 2-9 289 | btns = cal.getElementsByAttribute ( "li", "bin-disable", document.getElementById ( "pro-num-symbol")); 290 | cal.disableButtons (btns, cal.listeners.mouseOutListener); 291 | } 292 | cal.currentScale = scale; 293 | }, 294 | / ** 295 | * Initialize first discharge event listener operator operator 296 | * @Private 297 | * / 298 | _initFirstRowListeners: function () { 299 | . Var lis = document.getElementById (cal.typePrefix [cal.type] + "top-symbol") getElementsByTagName ( "li"); 300 | cal.rebuildButtons (lis, cal.listeners.firstMouseOutListener); 301 | }, 302 | / ** 303 | * Initialize the second row operator event listeners 304 | * @Private 305 | * / 306 | _initSecondRowListeners: function () { 307 | var lis = document.getElementById (cal.typePrefix [cal.type] + "num-symbol") getElementsByTagName ( "li").; 308 | cal.rebuildButtons (lis, cal.listeners.mouseOutListener); 309 | if (cal.type === 3) { 310 | // programmer type decimal point is disabled 311 | cal.disableButtons ([document.getElementById ( "pro-point")], cal.listeners.mouseOutListener); 312 | } 313 | } 314 | }, 315 | // Initialize event listener 316 | initListeners: function () { 317 | var prefix = cal.typePrefix [cal.type]; 318 | // set the row operator event listener, if a programmer type, because the default is 10 decimal, and hexadecimal numbers on the row, there is no need to set an event listener 319 | if (cal.type <3) { 320 | cal.listeners._initFirstRowListeners (); 321 | } 322 | // set below a column of figures, four arithmetic event listeners 323 | cal.listeners._initSecondRowListeners (); 324 | // Show / Hide sidebar calculator type selection 325 | cal.addEvent (document.getElementById (prefix + "show-bar"), "click", cal.listeners.toggleTypeBarListener); 326 | // switch the type of event is bound to the sidebar li 327 | var bar = document.getElementById (prefix + "type-bar"); 328 | lis = bar.getElementsByTagName ( "li"); 329 | var li; 330 | for (var i = 0, l = lis.length; i 39 && keyCode <46)) { 355 | cal.showInput (cal.keyCodes [keyCode]); 356 | if (cal.type === 3) { 357 | // If a programmer type, you need to synchronize the display in hexadecimal value 4 358 | cal.showScales (cal.getShowInput ()); 359 | } 360 | } Else { 361 | switch (keyCode) { 362 | // sign 363 | case 11: 364 | cal.unaryOperate (function (oldValue) { 365 | oldValue + = ""; 366 | if (oldValue === "0") { 367 | return [oldValue]; 368 | } 369 | if (oldValue.charAt (0) === '-') { 370 | return [oldValue.substring (1)]; 371 | } Else { 372 | return [ "-" + oldValue]; 373 | } 374 | }); 375 | break; 376 | // open the root 377 | case 18: 378 | cal.unaryOperate (function (si) { 379 | return [Math.sqrt (si), "sqrt"]; 380 | }); 381 | break; 382 | //square 383 | case 19: 384 | cal.unaryOperate (function (si) { 385 | return [Math.pow (si, 2), "sqr"]; 386 | }); 387 | break; 388 | // take reciprocal 389 | case 20: 390 | cal.unaryOperate (function (si) { 391 | return [si === 0 ZERO_ERR: 1 / si, "1 /"?]; 392 | }); 393 | break; 394 | //factorial 395 | case 24: 396 | cal.unaryOperate (function (si) { 397 | if (si <0) { 398 | si = (0 - si); 399 | } 400 | if (cal.isFloat (si + "")) { 401 | si = Math.floor (si); 402 | } 403 | return [cal.fact (si), "fact"]; 404 | }); 405 | break; 406 | // Exp into scientific notation 407 | case 25: 408 | cal.unaryOperate (function (si) { 409 | return [si.toExponential (7)]; 410 | }); 411 | break; 412 | // sin 413 | case 27: 414 | cal.unaryOperate (function (si) { 415 | return [Math.sin (si), "sin"]; 416 | }); 417 | break; 418 | // cos 419 | case 28: 420 | cal.unaryOperate (function (si) { 421 | return [Math.cos (si), "cos"]; 422 | }); 423 | break; 424 | // tan 425 | case 29: 426 | cal.unaryOperate (function (si) { 427 | return [Math.tan (si), "tan"]; 428 | }); 429 | break; 430 | x power // 10 431 | case 30: 432 | cal.unaryOperate (function (si) { 433 | return [Math.pow (10, si), "powten"]; 434 | }); 435 | break; 436 | // log 437 | case 31: 438 | cal.unaryOperate (function (si) { 439 | // js Math.log is the number e, the Windows Calculator is the number 10, where reference Windows 440 | return [Math.log10 (si), "log"]; 441 | }); 442 | break; 443 | // sinh (hyperbolic sine function) 444 | case 32: 445 | cal.unaryOperate (function (si) { 446 | return [Math.sinh (si), "sinh"]; 447 | }); 448 | break; 449 | // cosh (hyperbolic cosine function) 450 | case 33: 451 | cal.unaryOperate (function (si) { 452 | return [Math.cosh (si), "cosh"]; 453 | }); 454 | break; 455 | // tanh (hyperbolic cotangent function) 456 | case 34: 457 | cal.unaryOperate (function (si) { 458 | return [Math.tanh (si), "tanh"]; 459 | }); 460 | break; 461 | // π 462 | case 35: 463 | cal.unaryOperate (function (si) { 464 | return [Math.PI]; 465 | }); 466 | & Nb 467 | ``` 468 | 469 | > This link: [http://www.hihubs.com/article/385](http://www.hihubs.com/article/385) 470 | --------------------------------------------------------------------------------