Giter Site home page Giter Site logo

garywill / cc-visualize Goto Github PK

View Code? Open in Web Editor NEW
288.0 6.0 9.0 3.29 MB

既适合程序员,也适合中文电子文字整编人员(in beta)。汉字繁、简、异、兼、笔、变等关联关系可视化。非寻常汉字字符、同形字符攻击、不可打印字符等检视工具。结合OpenCC、Unicode等数据 | Chinese characters relations or vatiants (simplified, traditional etc) visualization. Potential Unihan/UCD homograph/punycode attack/phishing, non-printable invisible characters inspector

Home Page: https://garywill.github.io/cc-visualize/

License: MIT License

JavaScript 89.30% HTML 4.19% Shell 3.83% CSS 2.68%
opencc chinese-characters chinese-conversion unicode punycode-attack cjk ideographs character-variants homograph-attack duplicate-unicode

cc-visualize's Introduction

cc-visualize's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cc-visualize's Issues

对array或object使用for in 或for of循环时,会撞到自定义的方法

由于对Object创建了自定义方法,
for ( .. in ..)
for (.. of .. )
这两种循环总是会遍历到第一个自定义方法

cc-visualize/common.js

Lines 13 to 61 in 83f435f

Object.prototype.q$ = function(selectorStr) {
function handleNonArrayObject(obj)
{
return obj.querySelector(selectorStr);
}
var obj = this;
var result = null;
if ( HTMLElement.prototype.isPrototypeOf(obj) )
result = handleNonArrayObject( obj );
else if ( typeof(obj) != "string" &&
obj.length !== undefined && obj.length > 0
)
{
for( subObj of obj )
{
result = handleNonArrayObject(subObj);
if (result)
break;
}
}
return result;
}
Object.prototype.q$$ = function(selectorStr) {
function handleNonArrayObject(obj)
{
return obj.querySelectorAll(selectorStr);
}
var obj = this;
var result = [];
if ( HTMLElement.prototype.isPrototypeOf(obj) )
result = Array.from( handleNonArrayObject( obj ) );
else if ( typeof(obj) != "string" &&
obj.length !== undefined && obj.length > 0
)
{
for( subObj of obj )
{
result = result.concat ( Array.from (handleNonArrayObject(subObj) ) );
}
result = Array.from ( new Set(result) );
}
return result;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.