diff --git a/. jshintrc b/. jshintrc new file mode 100644 index 000000000..5764f7399 --- /dev/null +++ b/. jshintrc @@ -0,0 +1,3 @@ +{ + "esversion": 6, +} \ No newline at end of file diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5008ddfcf..000000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..0772b17cd --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +examples/* linguist-vendored \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..58f279ac5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,12 @@ +### Description + +### Link to isolated reproduction with no external CSS / JS +[Ideally in jsfiddle.net (https://jsfiddle.net/alvarotrigo/ea17skjr) or codepen.io (https://codepen.io/alvarotrigo/pen/qqabrp), links to personal websites won't be reviewed unless isolated. Reported issues without a reproduction might get closed.] + +### Steps to reproduce it +1. [First step] +2. [Second step] +3. [and so on...] + +### Versions +[Browser, operating system, device, ...] diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..ad570f2ca --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,2 @@ +1. Make sure to commit it to the `dev` branch! +2. Read https://github.com/alvarotrigo/fullPage.js/wiki/Contributing-to-fullpage.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..6cf793bd1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +.DS_Store +.idea +.ignore/ +.vscode/* +.history/ +bower_components/ +node_modules/ +**/node_modules/ +package-lock.json +src/fullpage.extensions.js +src/js-extensions/** +src/js-limited/** +src/css-limited/** +src/js/mixed/index.js +dist/fullpage.extensions.js +dist/fullpage.limited.js +dist/fullpage.limited.min.js +dist/fullpage.limited.min.css +examples/bug** +gulp/secret.js +build/** +local/** +rollup.ext.config.js +rollup.limited.config.js \ No newline at end of file diff --git a/BACKERS.md b/BACKERS.md new file mode 100644 index 000000000..53fcd29c2 --- /dev/null +++ b/BACKERS.md @@ -0,0 +1,41 @@ +# Sponsors & Backers + +fullPage.js is being developed and maintained by [Alvaro Trigo](https://twitter.com/imac2). +Any help you can provide for its development and maintenance over time will be appreciated! + +Here's the list of the persons/companies which are currently contributing to fullPage.js. +Thanks for it! + +Want to be in the list? [Contact me](https://alvarotrigo.com/#contact) | [Become a patreon](https://www.patreon.com/fullpagejs) + +## Bronze Sponsor ($30+ / month) + +### Companies + +
+
+ ![]() |
+
+
+ ![]() |
+
+
+ ![]() |
+
+
+ ![]() |
+
+ English | + Español | + Français | + Pусский | + 中文 | + 한국어 | + 日本語 | + Português Brasileiro +
-- [Living demo](http://alvarotrigo.com/fullPage/) -- [Temporal Website] (http://alvarotrigo.com/blog/fullpage-jquery-plugin-for-fullscreen-scrolling-websites/) ++ Available for Vue, React and Angular. +
+ +--- + + +[](https://www.gnu.org/licenses/gpl-3.0.html) +[](https://www.paypal.me/alvarotrigo/9.95) +[](https://www.jsdelivr.com/package/npm/fullpage.js) +[](https://bundlephobia.com/package/fullpage.js) + **|** *Created by [@imac2](https://twitter.com/imac2)* + +- [Demo online](https://alvarotrigo.com/fullPage/) | [Codepen](https://codepen.io/alvarotrigo/pen/qqabrp) +- [Wordpress plugin for Gutenberg](https://alvarotrigo.com/fullPage/wordpress-plugin-gutenberg/) and [WordPress plugin for Elementor](https://alvarotrigo.com/fullPage/wordpress-plugin-elementor/) +- [Wordpress theme](https://alvarotrigo.com/fullPage/utils/wordpress.html) +- [fullpage.js Extensions](https://alvarotrigo.com/fullPage/extensions/) +- [Frequently Answered Questions](https://github.com/alvarotrigo/fullPage.js/wiki/FAQ---Frequently-Answered-Questions) +- [[Migration from fullPage v3 to fullpage v4]](https://alvarotrigo.com/fullPage/help/migration-from-fullpage-3/) +--- + +A simple and easy to use library that creates fullscreen scrolling websites (also known as single page websites or onepage sites) and adds landscape sliders inside the sections of the site. + +- [Introduction](https://github.com/alvarotrigo/fullPage.js#introduction) +- [Compatibility](https://github.com/alvarotrigo/fullPage.js#compatibility) +- [License](https://github.com/alvarotrigo/fullPage.js#license) +- [Usage](https://github.com/alvarotrigo/fullPage.js#usage) + - [Creating links to sections or slides](https://github.com/alvarotrigo/fullPage.js#creating-links-to-sections-or-slides) + - [Creating smaller or bigger sections](https://github.com/alvarotrigo/fullPage.js#creating-smaller-or-bigger-sections) + - [State classes added by fullpage.js](https://github.com/alvarotrigo/fullPage.js#state-classes-added-by-fullpagejs) + - [Lazy loading](https://github.com/alvarotrigo/fullPage.js#lazy-loading) + - [Auto play/pause embedded media](https://github.com/alvarotrigo/fullPage.js#auto-playpause-embedded-media) + - [Use extensions](https://github.com/alvarotrigo/fullPage.js#use-extensions) +- [Options](https://github.com/alvarotrigo/fullPage.js#options) +- [Methods](https://github.com/alvarotrigo/fullPage.js#methods) +- [Callbacks](https://github.com/alvarotrigo/fullPage.js#callbacks) +- [Reporting issues](https://github.com/alvarotrigo/fullPage.js#reporting-issues) +- [Contributing to fullpage.js](https://github.com/alvarotrigo/fullPage.js#contributing-to-fullpagejs) +- [Changelog](https://github.com/alvarotrigo/fullPage.js#changelog) +- [Build tasks](https://github.com/alvarotrigo/fullPage.js#build-tasks) +- [Resources](https://github.com/alvarotrigo/fullPage.js#resources) +- [Who is using fullpage.js](https://github.com/alvarotrigo/fullPage.js#who-is-using-fullpagejs) +- [Donations](https://github.com/alvarotrigo/fullPage.js#donations) +- [Sponsors](https://github.com/alvarotrigo/fullPage.js#sponsors) ## Introduction -The plugin is in its first version and will keep improving with the time. -Suggestion will be more than welcome, not only for requisites requests but also for coding improvements. +Suggestion are more than welcome, not only for feature requests but also for coding style improvements. +Let's make this a great library to make people's lives easier! + +## Compatibility +fullPage.js is fully functional on all modern browsers and with IE 11. If you need to support IE < 11 consider using [fullPage.js v3](https://github.com/alvarotrigo/fullPage.js/tree/3.1.2). +It also provides touch support for mobile phones, tablets and touch screen computers. -Let's make of this a great plugin to make the world easier! +Special thanks to [Browserstack](https://www.browserstack.com/) for supporting fullpage.js. -Working under all modern browsers as well as old ones such as IE8, Opera 12... +## License + +### Commercial license +If you want to use fullPage to develop non open sourced sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Which means, you won't have to change your whole application source code to an open source license. [[Purchase a Fullpage Commercial License]](https://alvarotrigo.com/fullPage/pricing/) + +### Open source license +If you are creating an open source application under a license compatible with the [GNU GPL license v3](https://www.gnu.org/licenses/gpl-3.0.html), you may use fullPage under the terms of the GPLv3. + +**You will have to provide a prominent notice that fullPage.js is in use. The credit comments in the JavaScript and CSS files should be kept intact** (even after combination or minification). + +[Read more about fullPage's license](https://alvarotrigo.com/fullPage/pricing/). ## Usage -As you can see in the `example.html` file, you will need to include the javascript file `jquery.fullPage.js` (or the minified version `jquery.fullPage.min.js`) and the css file `jquery.fullPage.css` -of the plugin as well as [jQuery library](http://jquery.com/) (and the [jQuery UI library](http://jqueryui.com/) in case you want to use easing effects. (active by default)) +As you can see in the example files, you will need to include: + - The JavaScript file `fullpage.js` (or its minified version `fullpage.min.js`) + - The css file `fullpage.css` + + **Optionally**, when using `css3:false`, you can add the [easings file](https://github.com/alvarotrigo/fullPage.js/tree/master/vendors/easings.min.js) in case you want to use other easing effects apart from the one included in the library (`easeInOutCubic`). + +### Install using bower or npm +**Optionally**, you can install fullPage.js with bower or npm if you prefer: -###Including files: +Terminal: +```shell +// With bower +bower install fullpage.js + +// With npm +npm install fullpage.js +``` + +### Including files ```html - + + + + - - - - + ``` -###Required HTML structure -Each section will be defined with a `div` containing the `section` class. +Using Webpack, Browserify or Require.js? Check [how to use fullPage.js with module loaders](https://github.com/alvarotrigo/fullPage.js/wiki/Use-module-loaders-for-fullPage.js). + +### Optional use of CDN +If you prefer to use a CDN to load the needed files, fullPage.js is in, [JSDelivr](https://www.jsdelivr.com/package/npm/fullpage.js), [UNPKG](https://unpkg.com/browse/fullpage.js/dist/), [CDNJS](https://cdnjs.com/libraries/fullPage.js) and others. + +### Required HTML structure +Start your HTML document with the compulsory [HTML DOCTYPE declaration](https://www.corelangs.com/html/introduction/doctype.html) on the 1st line of your HTML code. You might have troubles with sections heights otherwise. The examples provided use HTML 5 doctype ``. + +Each section will be defined with an element containing the `section` class. The active section by default will be the first section, which is taken as the home page. + +Sections should be placed inside a wrapper (`