# HiveTek jQuery Toolkit
[![Tested with jQuery 1.5+](https://img.shields.io/badge/jQuery-1.5+-0769AD.svg)](https://jquery.com/)
[![Tested with fancyBox 2.x](https://img.shields.io/badge/fancyBox-2.x-FF5268.svg)](https://fancyapps.com/fancybox/)
[![Version 1.0.2](https://img.shields.io/badge/Version-1.0.2-success.svg)](#)
This is a simple jQuery function wrapper used at [HiveTek](https://www.hivetek.com/) and [Trinary](https://www.trinary.ca/).
## Requirements
- [jQuery](https://jquery.com/) 1.5+
- [fancyBox](https://fancyapps.com/fancybox/) 2.x (optional)
## Install
You can load the script from the CDN.
```html
```
## Usage
There are a few basic functions you can use.
```html
```
### AJAX
```javascript
// Simple GET request.
$.hivetek.doAjaxGet('/example', {'foo': 'bar'}, function(data) {
// console.log(data);
}, function(error) {
// console.log(error);
});
```
```javascript
// Simple POST request.
$.hivetek.doAjaxPost('/example', {'foo': 'bar'}, function(data) {
// console.log(data);
}, function(error) {
// console.log(error);
});
```
### Modal (with fancyBox)
```javascript
$.hivetek.doAjaxFancybox('/example', {'foo': 'bar'}, false); // Open modal.
$.hivetek.closeModal(); // Close modal.
```
### Modal (with Bootstrap)
```javascript
$.hivetek.doAjaxModal('/example', {'foo': 'bar'}, false); // Open modal.
$.hivetek.closeModal(); // Close modal.
```
## Build
```bash
npm install
npx gulp
```
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.