jiggzson / eqInput

A simple equation input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery eqInput

A simple equation input with bracket completion and highlighting.

Uses jquery. And needs styling.

Does not work for IE < 9

Usage: Load jquey.eqInput.js and jquery.eqInput.css

<div id="eq-input"></div>

To add a place holder use data-placeholder attribute

<div id="eq-input" data-placeholder="Insert formula"></div>
$('#eq-input').eqInput();

To change the highlight color and styling edit css or supply custom class

$('#eq-input').eqInput({highlightClass: 'some-custom-class'})

Use text method to get input contents

About

A simple equation input

License:MIT License


Languages

Language:JavaScript 95.7%Language:CSS 4.3%