Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Character Map selector for UTF8 special characters

License

NotificationsYou must be signed in to change notification settings

pallant/js-charMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISCONTINUED:This has been discontinued in favour ofthis react component based off of this. This can still be used, but it is unsupported.

js-charMap

Character Map selector for UTF8 special characters.

Ultimately, styling is up to you, this only includes the most basic of styles for the demo.

The script is library agnostic (vanilla javascript), the decision was made to not minify or compile the script, as this should be done on build of your entire app. This allows for custom debugging and compiling procedures.

Usage

1. Include the javascript file in your app.

<scriptsrc="charMap.js"></script>

2. Include the css in your app or write your own

<linkrel="stylesheet"href="charMap.css">

3. Initialise the character map

<script>charMap.init({target:"#character-map",// Element or SelectoronLoad:function(){console.log("Character map loaded");},onClick:function(char){// User has clicked a character, so do what you needconsole.log("The character is; "+char);}});</script>

Character requests

if you notice something missing from the character list, feel free to raise a pull request with updates, or fork it and make it even better :)

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp