Code Monkey home page Code Monkey logo

sup-reg.js's Introduction

sup-reg.js

Automatically add <sup> tags around all registration marks.

Any ® marks will be wrapped in <sup> tags. Any registration marks already in <sup> tags will be ignored. So there is no chance of double wrapping them.

Requirements

  • jQuery 1.11.0 or higher

Usage

Just load the script before the end of body tag.

<script src="sup-reg.js"></script>

If you want to add specific styling to <sup> tags created by sup-reg.js, the script will add a class of sup-reg to each tag. It will also add an additional class of sup-reg-kern to any <sup> tag that is preceded by a period. This is useful for registration marks that are used on abbreviations. This way you can style additional kerning on these specific tags.

Install via bower

bower install sup-reg --save

Possible Issues

It’s assumed that the document is set as utf-8. Haven’t tested other encodings.

sup-reg.js's People

Contributors

megasmack avatar chris-erickson avatar dsnopek avatar

Stargazers

 avatar

Watchers

Ryan Senkbeil avatar  avatar  avatar  avatar

Forkers

dsnopek

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.