diff --git a/Gruntfile.js b/Gruntfile.js index 154f5c7dd..6de367625 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -39,7 +39,7 @@ module.exports = function(grunt) { copy: { dist: { files: { - 'dist/gridstack-poly.js': ['src/gridstack-poly.js'], + 'dist/es5/gridstack-poly.js': ['src/gridstack-poly.js'], 'dist/src/gridstack.scss': ['src/gridstack.scss'], 'dist/src/gridstack-extra.scss': ['src/gridstack-extra.scss'], } diff --git a/README.md b/README.md index 5cadab111..d6928119a 100644 --- a/README.md +++ b/README.md @@ -92,19 +92,28 @@ which means you can possibly bring your own version }, ``` -Alternatively in html +Alternatively (single combined file) in html ```html - + - + - + ``` -Note: the API is the same, regardless of the plugin (or lack thereof) so you can switch at any time. The Jquery version will export $ that it bundles and currently the only one to support mobile/touch devices through `jquery.ui.touch-punch` (h5 version is planned). Read more at [migrating to v3](#migrating-to-v3) +**Note**: the API is the same, regardless of the plugin (or lack thereof) so you can switch at any time. The Jquery version will export $ that it bundles and currently the only one to support mobile/touch devices through `jquery.ui.touch-punch` (h5 version is planned). Read more at [migrating to v3](#migrating-to-v3) + +**Note2**: IE support was dropped in v2, but restored in v4.4 by an external contributor (I have no interest in testing+supporting obsolete browser so this might break in the future). +You can use the es5 files and polyfill (larger) for older browser instead. For example: +```html + + + +``` + ## Basic usage diff --git a/demo/web1.html b/demo/web1.html index c2a012a8d..389776e85 100644 --- a/demo/web1.html +++ b/demo/web1.html @@ -13,7 +13,7 @@ - + diff --git a/demo/web2.html b/demo/web2.html index 9a3a28811..71b2a9ac6 100644 --- a/demo/web2.html +++ b/demo/web2.html @@ -13,7 +13,9 @@ - + + +