jquery-tcsc-convert

1.0.1 • Public • Published

jquery-tcsc-convert

jQuery plugin for convert between Traditional Chinese and Simplified Chinese (*Without jQuery is also worked).



History

One way solution to convert text between Traditional Chinese and Simplified Chinese in browser. No any dependencies required.

Installation + Use

  1. Install the npm
npm install jquery-tcsc-convert --save
  1. Import the script tag after the jQuery
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- jQuery extension `jquery-tcsc-convert` -->
<!-- <script src="dist/js/jquery-tcsc-convert.js"></script> -->
<script src="dist/js/jquery-tcsc-convert.min.js"></script>
<script>
  $(function () {
    $('input').keyup(function ($event) {
      console.log($event.originalEvent.key);
      $('#tc-result').html(convertSC2TC($(this).val()));
      $('#sc-result').html($.tc2sc($(this).val()));
    });
  });
</script>

Test

npm install -g lite-server
lite-server

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10
1.0.00

Package Sidebar

Install

npm i jquery-tcsc-convert

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

181 kB

Total Files

8

Last publish

Collaborators

  • ssmak