<commit_before># Bare Tooltip

Basic tooltip plugin in javascript.


## Settings

```javascript
// with defaults

trigger_type = "hover"; // or "click";
tooltip_klass = "tooltip"; // tooltip element css class
animation_speed = 350; // opacity transition duration, etc.

template = '<div class="{{CLASSES}}">' +
  '<div class="content">{{CONTENT}}</div>' +
  '<div class="arrow"></div>' +
'</div>';
```


## To do

- Implement optional 'hide on timeout' for 'has-tooltip-on-click'
- Alt demo with jQuery
- Browser testing<commit_msg>README update<commit_after># Bare Tooltip

Basic tooltip plugin written in js with prototypes for easy customization.


## How to use

```javascript
var instance = new BareTooltip(element, optional_settings);
// where element could be either a regular DOM element
// or a jQuery/Zepto object
```

If you provide a jQuery/Zepto object, you can link multiple triggers.
For example, say you have two trigger elements with 'click' as trigger type.
If you click on the first trigger and then second, then the first tooltip
will disappear. Check the demo for a real example.


## Settings

```javascript
// with defaults
trigger_type = "hover"; // or "click";
tooltip_klass = "tooltip"; // tooltip element css class
animation_speed = 350; // opacity transition duration, etc.

template = '<div class="{{CLASSES}}">' +
  '<div class="content">{{CONTENT}}</div>' +
  '<div class="arrow"></div>' +
'</div>';
```


## To do

- split 'hide_and_remove' function into 'hide' and 'remove'
- Implement optional 'hide on timeout' for 'has-tooltip-on-click'
- Add 'extensibility' piece to readme
- Browser testing
- Alternate demo with jQuery
{'fraction_non_alphanumeric': 0.1351840675920338, 'fraction_numerical': 0.003621001810500905, 'mean_word_length': 4.365695792880259, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6213464', 'n_tokens_mistral': 501, 'n_tokens_neox': 478, 'n_words': 189}