diff --git a/README.md b/README.md index b74ffc0..908627d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [Bootstrap-checkbox](https://vsn4ik.github.io/bootstrap-checkbox/) +# [Bootstrap4-checkbox] based on (https://vsn4ik.github.io/bootstrap-checkbox/) [![Bower version](https://img.shields.io/bower/v/bootstrap-checkbox.svg)](https://github.com/vsn4ik/bootstrap-checkbox) [![npm version](https://img.shields.io/npm/v/bootstrap-checkbox.svg)](https://www.npmjs.com/package/bootstrap-checkbox) @@ -11,11 +11,7 @@ Several quick start options are available: -* [Download the latest release](https://github.com/vsn4ik/bootstrap-checkbox/archive/v1.4.0.zip "Download Bootstrap-checkbox"). -* Clone the repo: `git clone https://github.com/vsn4ik/bootstrap-checkbox.git`. -* Install with [Bower](https://bower.io): `bower install bootstrap-checkbox`. -* Install with [npm](https://www.npmjs.com): `npm install bootstrap-checkbox`. -* Install with [Composer](https://getcomposer.org): `composer require vsn4ik/bootstrap-checkbox "dev-master"`. +* https://github.com/vsn4ik/bootstrap-checkbox/blob/master/README.md ### What's included @@ -36,11 +32,13 @@ For some working examples, visit our [examples](https://vsn4ik.github.io/bootstr ## Min Requirements -* Bootstrap 3.0.0 -* jQuery 1.9.1 +* Bootstrap v4.0.0-alpha.6 +* jQuery 3.0.0 ## Creators +**ONTP.NET** +* **Vasily A.** diff --git a/dist/js/bootstrap-checkbox.js b/dist/js/bootstrap-checkbox.js deleted file mode 100644 index a9e4bda..0000000 --- a/dist/js/bootstrap-checkbox.js +++ /dev/null @@ -1,321 +0,0 @@ -/*! - * Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/) - * Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik) - * Licensed under the MIT license - */ - -/** - * $.inArray: friends with IE8. Use Array.prototype.indexOf in future. - * Use this.element.hidden in future. - * $.proxy: friends with IE8. Use Function.prototype.bind in future. - */ - -'use strict'; - -(function(factory) { - if (typeof define == 'function' && define.amd) { - // AMD. Register as an anonymous module - define(['jquery'], factory); - } - else if (typeof exports == 'object') { - // Node/CommonJS - module.exports = factory(require('jquery')); - } - else { - // Browser globals - factory(jQuery); - } -})(function($) { - function create() { - return $($.map(arguments, $.proxy(document, 'createElement'))); - } - - function Checkboxpicker(element, options) { - this.element = element; - this.$element = $(element); - - var data = this.$element.data(); - - // <... data-reverse> - if (data.reverse === '') { - data.reverse = true; - } - - // <... data-switch-always> - if (data.switchAlways === '') { - data.switchAlways = true; - } - - // <... data-html> - if (data.html === '') { - data.html = true; - } - - this.options = $.extend({}, $.fn.checkboxpicker.defaults, options, data); - - if (this.$element.closest('label').length) { - console.warn(this.options.warningMessage); - - return; - } - - this.$group = create('div'); - - // .btn-group-justified works with elements as the