diff --git a/.github/contributing.md b/.github/contributing.md new file mode 100644 index 0000000..6cf9168 --- /dev/null +++ b/.github/contributing.md @@ -0,0 +1,17 @@ +# Bugs, Questions, and Feature Requests + +Report bugs, ask questions, and request features using [GitHub Issues](https://github.com/cferdinandi/smooth-scroll/issues). + +**Before posting, do a search to make sure your issue or question hasn't already been reported or discussed.** If no matching issue exists, go ahead and create one. + +**Please be sure to include all of the following:** + +1. A clear, descriptive title (ie. "A bug" is not a good title). +2. [A reduced test case.](https://css-tricks.com/reduced-test-cases/) + - Clearly demonstrate the bug or issue. + - Include the bare minimum HTML, CSS, and JavaScript required to demonstrate the bug. + - A link to your production site is **not** a reduced test case. + - You can create one by [forking this CodePen](https://codepen.io/cferdinandi/pen/RqGLpz). +3. The browser and OS that you're using. + +Duplicates and issues without a reduced test case may be closed without comment. \ No newline at end of file diff --git a/.github/issue_template.md b/.github/issue_template.md new file mode 100755 index 0000000..664bfaa --- /dev/null +++ b/.github/issue_template.md @@ -0,0 +1,3 @@ + + +**Test case:** https://codepen.io/cferdinandi/pen/RqGLpz \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..42b06b4 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,13 @@ +on: push +name: publish on release +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: publish + uses: actions/npm@master + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + with: + args: publish diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100755 index 6cfe6f7..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,41 +0,0 @@ -# Bugs, Questions, and Pull Requests - -A few quick guidelines to make this an easier and better process for everyone. - - - -## Reporting a bug - -First, **make sure the bug hasn't already been reported** by searching GitHub's issues section. - -If no existing issue exists, go ahead and create one. **Please be sure to include all of the following:** - -1. A clear, descriptive title (ie. "A bug" is *not* a good title). -2. [A reduced test case.](https://css-tricks.com/reduced-test-cases/) In order to debug code issues, I need to see actual code in a browser. -3. The browser and OS that you're using. - - - -## Asking a question - -Before asking, please **make sure the question hasn't already been asked** by searching GitHub's issues section. - - - -## Submitting a Pull Request - -***Note:*** *By submitting a pull request to this project, you assign all rights to Chris Ferdinandi and Go Make Things, LLC.* - -Make sure your code meets the following code standards: - -- Camel case for JavaScript variables. -- [Object-Oriented CSS](http://www.slideshare.net/stubbornella/object-oriented-css) for CSS selectors. -- Favor readable code over brevity. The build process will reduce size, so opt for readability. (ex. `var navigation` is better than `var n`) -- Order CSS properties alphabetically. -- Hard tabs. - -Before submitting, make sure that you've: - -- Updated the version number using semantic versioning. -- Made your changes in the `src` folder. -- Run the Gulp build to compile, minify, and update version numbers into the `dist` folder. If you cannot do this, please note this in the Pull Request. \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md index 5885148..b5e8ef7 100755 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,677 +1,21 @@ -# GNU GENERAL PUBLIC LICENSE +# The MIT License (MIT) Copyright (c) Go Make Things, LLC -Version 3, 29 June 2007 - -Copyright (C) 2007 Free Software Foundation, Inc. - - -Everyone is permitted to copy and distribute verbatim copies of this -license document, but changing it is not allowed. - -### Preamble - -The GNU General Public License is a free, copyleft license for -software and other kinds of works. - -The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom -to share and change all versions of a program--to make sure it remains -free software for all its users. We, the Free Software Foundation, use -the GNU General Public License for most of our software; it applies -also to any other work released this way by its authors. You can apply -it to your programs, too. - -When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - -To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you -have certain responsibilities if you distribute copies of the -software, or if you modify it: responsibilities to respect the freedom -of others. - -For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - -Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - -Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the -manufacturer can do so. This is fundamentally incompatible with the -aim of protecting users' freedom to change the software. The -systematic pattern of such abuse occurs in the area of products for -individuals to use, which is precisely where it is most unacceptable. -Therefore, we have designed this version of the GPL to prohibit the -practice for those products. If such problems arise substantially in -other domains, we stand ready to extend this provision to those -domains in future versions of the GPL, as needed to protect the -freedom of users. - -Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish -to avoid the special danger that patents applied to a free program -could make it effectively proprietary. To prevent this, the GPL -assures that patents cannot be used to render the program non-free. - -The precise terms and conditions for copying, distribution and -modification follow. - -### TERMS AND CONDITIONS - -#### 0. Definitions. - -"This License" refers to version 3 of the GNU General Public License. - -"Copyright" also means copyright-like laws that apply to other kinds -of works, such as semiconductor masks. - -"The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - -To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of -an exact copy. The resulting work is called a "modified version" of -the earlier work or a work "based on" the earlier work. - -A "covered work" means either the unmodified Program or a work based -on the Program. - -To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - -To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user -through a computer network, with no transfer of a copy, is not -conveying. - -An interactive user interface displays "Appropriate Legal Notices" to -the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - -#### 1. Source Code. - -The "source code" for a work means the preferred form of the work for -making modifications to it. "Object code" means any non-source form of -a work. - -A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - -The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - -The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - -The Corresponding Source need not include anything that users can -regenerate automatically from other parts of the Corresponding Source. - -The Corresponding Source for a work in source code form is that same -work. - -#### 2. Basic Permissions. - -All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - -You may make, run and propagate covered works that you do not convey, -without conditions so long as your license otherwise remains in force. -You may convey covered works to others for the sole purpose of having -them make modifications exclusively for you, or provide you with -facilities for running those works, provided that you comply with the -terms of this License in conveying all material for which you do not -control copyright. Those thus making or running the covered works for -you must do so exclusively on your behalf, under your direction and -control, on terms that prohibit them from making any copies of your -copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under the -conditions stated below. Sublicensing is not allowed; section 10 makes -it unnecessary. - -#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - -No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - -When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such -circumvention is effected by exercising rights under this License with -respect to the covered work, and you disclaim any intention to limit -operation or modification of the work as a means of enforcing, against -the work's users, your or third parties' legal rights to forbid -circumvention of technological measures. - -#### 4. Conveying Verbatim Copies. - -You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - -You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - -#### 5. Conveying Modified Source Versions. - -You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these -conditions: - -- a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. -- b) The work must carry prominent notices stating that it is - released under this License and any conditions added under - section 7. This requirement modifies the requirement in section 4 - to "keep intact all notices". -- c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. -- d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - -A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - -#### 6. Conveying Non-Source Forms. - -You may convey a covered work in object code form under the terms of -sections 4 and 5, provided that you also convey the machine-readable -Corresponding Source under the terms of this License, in one of these -ways: - -- a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. -- b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the Corresponding - Source from a network server at no charge. -- c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. -- d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. -- e) Convey the object code using peer-to-peer transmission, - provided you inform other peers where the object code and - Corresponding Source of the work are being offered to the general - public at no charge under subsection 6d. - -A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - -A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, -family, or household purposes, or (2) anything designed or sold for -incorporation into a dwelling. In determining whether a product is a -consumer product, doubtful cases shall be resolved in favor of -coverage. For a particular product received by a particular user, -"normally used" refers to a typical or common use of that class of -product, regardless of the status of the particular user or of the way -in which the particular user actually uses, or expects or is expected -to use, the product. A product is a consumer product regardless of -whether the product has substantial commercial, industrial or -non-consumer uses, unless such uses represent the only significant -mode of use of the product. - -"Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to -install and execute modified versions of a covered work in that User -Product from a modified version of its Corresponding Source. The -information must suffice to ensure that the continued functioning of -the modified object code is in no case prevented or interfered with -solely because modification has been made. - -If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - -The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or -updates for a work that has been modified or installed by the -recipient, or for the User Product in which it has been modified or -installed. Access to a network may be denied when the modification -itself materially and adversely affects the operation of the network -or violates the rules and protocols for communication across the -network. - -Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - -#### 7. Additional Terms. - -"Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - -When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders -of that material) supplement the terms of this License with terms: - -- a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or -- b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or -- c) Prohibiting misrepresentation of the origin of that material, - or requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or -- d) Limiting the use for publicity purposes of names of licensors - or authors of the material; or -- e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or -- f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions - of it) with contractual assumptions of liability to the recipient, - for any liability that these contractual assumptions directly - impose on those licensors and authors. - -All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; the -above requirements apply either way. - -#### 8. Termination. - -You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - -However, if you cease all violation of this License, then your license -from a particular copyright holder is reinstated (a) provisionally, -unless and until the copyright holder explicitly and finally -terminates your license, and (b) permanently, if the copyright holder -fails to notify you of the violation by some reasonable means prior to -60 days after the cessation. - -Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - -Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - -#### 9. Acceptance Not Required for Having Copies. - -You are not required to accept this License in order to receive or run -a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - -#### 10. Automatic Licensing of Downstream Recipients. - -Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - -An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - -#### 11. Patents. - -A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - -A contributor's "essential patent claims" are all patent claims owned -or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - -In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - -If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - -A patent license is "discriminatory" if it does not include within the -scope of its coverage, prohibits the exercise of, or is conditioned on -the non-exercise of one or more of the rights that are specifically -granted under this License. You may not convey a covered work if you -are a party to an arrangement with a third party that is in the -business of distributing software, under which you make payment to the -third party based on the extent of your activity of conveying the -work, and under which the third party grants, to any of the parties -who would receive the covered work from you, a discriminatory patent -license (a) in connection with copies of the covered work conveyed by -you (or copies made from those copies), or (b) primarily for and in -connection with specific products or compilations that contain the -covered work, unless you entered into that arrangement, or that patent -license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - -#### 12. No Surrender of Others' Freedom. - -If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under -this License and any other pertinent obligations, then as a -consequence you may not convey it at all. For example, if you agree to -terms that obligate you to collect a royalty for further conveying -from those to whom you convey the Program, the only way you could -satisfy both those terms and this License would be to refrain entirely -from conveying the Program. - -#### 13. Use with the GNU Affero General Public License. - -Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - -#### 14. Revised Versions of this License. - -The Free Software Foundation may publish revised and/or new versions -of the GNU General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in -detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies that a certain numbered version of the GNU General Public -License "or any later version" applies to it, you have the option of -following the terms and conditions either of that numbered version or -of any later version published by the Free Software Foundation. If the -Program does not specify a version number of the GNU General Public -License, you may choose any version ever published by the Free -Software Foundation. - -If the Program specifies that a proxy can decide which future versions -of the GNU General Public License can be used, that proxy's public -statement of acceptance of a version permanently authorizes you to -choose that version for the Program. - -Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - -#### 15. Disclaimer of Warranty. - -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT -WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND -PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE -DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR -CORRECTION. - -#### 16. Limitation of Liability. - -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR -CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES -ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT -NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR -LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM -TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER -PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -#### 17. Interpretation of Sections 15 and 16. - -If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - -END OF TERMS AND CONDITIONS - -### How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these -terms. - -To do so, attach the following notices to the program. It is safest to -attach them to the start of each source file to most effectively state -the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 2017 Go Make Things, LLC - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper -mail. - -If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) 2017 Go Make Things, LLC - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands \`show w' and \`show c' should show the -appropriate parts of the General Public License. Of course, your -program's commands might be different; for a GUI interface, you would -use an "about box". - -You should also get your employer (if you work as a programmer) or -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. For more information on this, and how to apply and follow -the GNU GPL, see . - -The GNU General Public License does not permit incorporating your -program into proprietary programs. If your program is a subroutine -library, you may consider it more useful to permit linking proprietary -applications with the library. If this is what you want to do, use the -GNU Lesser General Public License instead of this License. But first, -please read . \ No newline at end of file +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index ee4711b..ed77c95 100755 --- a/README.md +++ b/README.md @@ -1,14 +1,404 @@ -# Smooth Scroll [![Build Status](https://travis-ci.org/cferdinandi/smooth-scroll.svg)](https://travis-ci.org/cferdinandi/smooth-scroll) +**DEPRECATION NOTICE:** + +Smooth Scroll is, without a doubt, my most popular and widely used plugin. + +But in the time since I created it, a CSS-only method for smooth scrolling has emerged, and now has fantastic browser support. It can do things this plugin can't (like scrolling to anchor links from another page), and addresses bugs and limitations in the plugin that I have never gotten around to fixing. + +This plugin has run its course, and the browser now offers a better, more feature rich and resilient solution out-of-the-box. + +Learn [how to animate scrolling to anchor links with one line of CSS](https://gomakethings.com/how-to-animate-scrolling-to-anchor-links-with-one-line-of-css/), and [how to prevent anchor links from scrolling behind fixed or sticky headers](https://gomakethings.com/how-to-prevent-anchor-links-from-scrolling-behind-a-sticky-header-with-one-line-of-css/). +Thanks for the years of support! + +--- + +# Smooth Scroll [![Build Status](https://travis-ci.org/cferdinandi/smooth-scroll.svg)](https://travis-ci.org/cferdinandi/smooth-scroll) A lightweight script to animate scrolling to anchor links. Smooth Scroll works great with [Gumshoe](https://github.com/cferdinandi/gumshoe). -[View the demo and documentation to get started](http://cferdinandi.github.com/smooth-scroll/). +**[View the Demo on CodePen →](https://codepen.io/cferdinandi/pen/wQzrdM)** + +[Getting Started](#getting-started) | [Scroll Speed](#scroll-speed) | [Easing Options](#easing-options) | [API](#api) | [What's new?](#whats-new) | [Known Issues](#known-issues) | [Browser Compatibility](#browser-compatibility) | [License](#license) + +*__Quick aside:__ you might not need this library. There's [a native CSS way to handle smooth scrolling](https://gomakethings.com/smooth-scrolling-links-with-only-css/) that might fit your needs.* + + +
+ +### Want to learn how to write your own vanilla JS plugins? Check out my [Vanilla JS Pocket Guides](https://vanillajsguides.com/) or join the [Vanilla JS Academy](https://vanillajsacademy.com) and level-up as a web developer. 🚀 + +
+ + +## Getting Started + +Compiled and production-ready code can be found in the `dist` directory. The `src` directory contains development code. + +### 1. Include Smooth Scroll on your site. + +There are two versions of Smooth Scroll: the standalone version, and one that comes preloaded with polyfills for `closest()`, `requestAnimationFrame()`, and `CustomEvent()`, which are only supported in newer browsers. + +If you're including your own polyfills or don't want to enable this feature for older browsers, use the standalone version. Otherwise, use the version with polyfills. + +**Direct Download** + +You can [download the files directly from GitHub](https://github.com/cferdinandi/smooth-scroll/archive/master.zip). + +```html + +``` + +**CDN** + +You can also use the [jsDelivr CDN](https://cdn.jsdelivr.net/gh/cferdinandi/smooth-scroll/dist/). I recommend linking to a specific version number or version range to prevent major updates from breaking your site. Smooth Scroll uses semantic versioning. + +```html + + + + + + + + + + + + +``` + +**NPM** + +You can also use NPM (or your favorite package manager). + +```bash +npm install smooth-scroll +``` + +### 2. Add the markup to your HTML. + +No special markup needed—just standard anchor links. Give the anchor location an ID just like you normally would. + +```html +Anchor Link +... +
Bazinga!
+``` + +***Note:*** *Smooth Scroll does not work with `` style anchors. It requires IDs.* + +### 3. Initialize Smooth Scroll. + +In the footer of your page, after the content, initialize Smooth Scroll by passing in a selector for the anchor links that should be animated. And that's it, you're done. Nice work! + +```html + +``` + +***Note:*** *The `a[href*="#"]` selector will apply Smooth Scroll to all anchor links. You can selectively target links using any other selector(s) you'd like. Smooth Scroll accepts multiple selectors as a comma separated list. Example: `'.js-scroll, [data-scroll], #some-link'`.* + + + +## Scroll Speed + +Smooth Scroll allows you to adjust the speed of your animations with the `speed` option. + +This a number representing the amount of time in milliseconds that it should take to scroll 1000px. Scroll distances shorter than that will take less time, and scroll distances longer than that will take more time. The default is 300ms. + +```js +var scroll = new SmoothScroll('a[href*="#"]', { + speed: 300 +}); +``` + +If you want all of your animations to take exactly the same amount of time (the value you set for `speed`), set the `speedAsDuration` option to `true`. + +```js +// All animations will take exactly 500ms +var scroll = new SmoothScroll('a[href*="#"]', { + speed: 500, + speedAsDuration: true +}); +``` + + +## Easing Options + +Smooth Scroll comes with about a dozen common easing patterns. [Here's a demo of the different patterns.](https://codepen.io/cferdinandi/pen/jQMGaB) + +**Linear** +*Moves at the same speed from start to finish.* + +- `Linear` + + +**Ease-In** +*Gradually increases in speed.* + +- `easeInQuad` +- `easeInCubic` +- `easeInQuart` +- `easeInQuint` + + +**Ease-In-Out** +*Gradually increases in speed, peaks, and then gradually slows down.* + +- `easeInOutQuad` +- `easeInOutCubic` +- `easeInOutQuart` +- `easeInOutQuint` + + +**Ease-Out** +*Gradually decreases in speed.* + +- `easeOutQuad` +- `easeOutCubic` +- `easeOutQuart` +- `easeOutQuint` + + +You can also pass in your own custom easing pattern [using the `customEasing` option](#global-settings). + +```js +var scroll = new SmoothScroll('a[href*="#"]', { + // Function. Custom easing pattern + // If this is set to anything other than null, will override the easing option above + customEasing: function (time) { + + // return + + // Example: easeInOut Quad + return time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; + + } +}); +``` + + + +## API + +Smooth Scroll includes smart defaults and works right out of the box. But if you want to customize things, it also has a robust API that provides multiple ways for you to adjust the default options and settings. + +### Options and Settings + +You can pass options and callbacks into Smooth Scroll when instantiating. + +```javascript +var scroll = new SmoothScroll('a[href*="#"]', { + + // Selectors + ignore: '[data-scroll-ignore]', // Selector for links to ignore (must be a valid CSS selector) + header: null, // Selector for fixed headers (must be a valid CSS selector) + topOnEmptyHash: true, // Scroll to the top of the page for links with href="#" + + // Speed & Duration + speed: 500, // Integer. Amount of time in milliseconds it should take to scroll 1000px + speedAsDuration: false, // If true, use speed as the total duration of the scroll animation + durationMax: null, // Integer. The maximum amount of time the scroll animation should take + durationMin: null, // Integer. The minimum amount of time the scroll animation should take + clip: true, // If true, adjust scroll distance to prevent abrupt stops near the bottom of the page + offset: function (anchor, toggle) { + + // Integer or Function returning an integer. How far to offset the scrolling anchor location in pixels + // This example is a function, but you could do something as simple as `offset: 25` + + // An example returning different values based on whether the clicked link was in the header nav or not + if (toggle.classList.closest('.my-header-nav')) { + return 25; + } else { + return 50; + } + + }, + + // Easing + easing: 'easeInOutCubic', // Easing pattern to use + customEasing: function (time) { + + // Function. Custom easing pattern + // If this is set to anything other than null, will override the easing option above + + // return + + // Example: easeInOut Quad + return time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; + + }, + + // History + updateURL: true, // Update the URL on scroll + popstate: true, // Animate scrolling with the forward/backward browser buttons (requires updateURL to be true) + + // Custom Events + emitEvents: true // Emit custom events + +}); +``` + +### Custom Events + +Smooth Scroll emits three custom events: + +- `scrollStart` is emitted when the scrolling animation starts. +- `scrollStop` is emitted when the scrolling animation stops. +- `scrollCancel` is emitted if the scrolling animation is canceled. + +All three events are emitted on the `document` element and bubble up. You can listen for them with the `addEventListener()` method. The `event.detail` object includes the `anchor` and `toggle` elements for the animation. + +```js +// Log scroll events +var logScrollEvent = function (event) { + + // The event type + console.log('type:', event.type); + + // The anchor element being scrolled to + console.log('anchor:', event.detail.anchor); + + // The anchor link that triggered the scroll + console.log('toggle:', event.detail.toggle); + +}; + +// Listen for scroll events +document.addEventListener('scrollStart', logScrollEvent, false); +document.addEventListener('scrollStop', logScrollEvent, false); +document.addEventListener('scrollCancel', logScrollEvent, false); +``` + +### Methods + +Smooth Scroll also exposes several public methods. + +#### animateScroll() +Animate scrolling to an anchor. + +```javascript +var scroll = new SmoothScroll(); +scroll.animateScroll( + anchor, // Node to scroll to. ex. document.querySelector('#bazinga') + toggle, // Node that toggles the animation, OR an integer. ex. document.querySelector('#toggle') + options // Classes and callbacks. Same options as those passed into the init() function. +); +``` + +**Example 1** + +```javascript +var scroll = new SmoothScroll(); +var anchor = document.querySelector('#bazinga'); +scroll.animateScroll(anchor); +``` + +**Example 2** + +```javascript +var scroll = new SmoothScroll(); +var anchor = document.querySelector('#bazinga'); +var toggle = document.querySelector('#toggle'); +var options = { speed: 1000, easing: 'easeOutCubic' }; +scroll.animateScroll(anchor, toggle, options); +``` + +**Example 3** + +```javascript +// You can optionally pass in a y-position to scroll to as an integer +var scroll = new SmoothScroll(); +scroll.animateScroll(750); +``` + +#### cancelScroll() +Cancel a scroll-in-progress. + +```javascript +var scroll = new SmoothScroll(); +scroll.cancelScroll(); +``` + +***Note:*** *This does not handle focus management. The user will stop in place, and focus will remain on the anchor link that triggered the scroll.* + +#### destroy() +Destroy the current initialization. This is called automatically in the `init` method to remove any existing initializations. + +```javascript +var scroll = new SmoothScroll(); +scroll.destroy(); +``` + + +### Fixed Headers + +If you're using a fixed header, Smooth Scroll will automatically offset scroll distances by the header height. Pass in a valid CSS selector for your fixed header as an option to the `init`. + +If you have multiple fixed headers, pass in the last one in the markup. + +```html + +... + +``` + + + +## What's new? + +Scroll duration now varies based on distance traveled. If you want to maintain the old scroll animation duration behavior, set the `speedAsDuration` option to `true`. + + + +## Known Issues + +### Reduce Motion Settings + +This isn't really an "issue" so-much as a question I get a lot. + +Smooth Scroll respects [the `Reduce Motion` setting](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) available in certain operating systems. In browsers that surface that setting, Smooth Scroll will not run and will revert to the default "jump to location" anchor link behavior. + +I've decided to respect user preferences of developer desires here. This is *not* a configurable setting. + +### `` styling + +If the `` element has been assigned a height of `100%` or `overflow: hidden`, Smooth Scroll is unable to properly calculate page distances and will not scroll to the right location. The `` element can have a fixed, non-percentage based height (ex. `500px`), or a height of `auto`, and an `overflow` of `visible`. + +### Animating from the bottom + +Animated scrolling links at the very bottom of the page (example: a "scroll to top" link) will stop animated almost immediately after they start when using certain easing patterns. This is an issue that's been around for a while and I've yet to find a good fix for it. I've found that `easeOut*` easing patterns work as expected, but other patterns can cause issues. [See this discussion for more details.](https://github.com/cferdinandi/smooth-scroll/issues/49) + +### Scrolling to an anchor link on another page + +This, unfortunately, cannot be done well. + +Most browsers instantly jump you to the anchor location when you load a page. You could use `scrollTo(0, 0)` to pull users back up to the top, and then manually use the `animateScroll()` method, but in my experience, it results in a visible jump on the page that's a worse experience than the default browser behavior. + + + +## Browser Compatibility + +Smooth Scroll works in all modern browsers, and IE 9 and above. + +Smooth Scroll is built with modern JavaScript APIs, and uses progressive enhancement. If the JavaScript file fails to load, or if your site is viewed on older and less capable browsers, anchor links will jump the way they normally would. + +*__Note:__ Smooth Scroll will not run—even in supported browsers—if users have `Reduce Motion` enabled. [Learn more in the "Known Issues" section.](#reduce-motion-settings)* + +### Polyfills + +Support back to IE9 requires polyfills for `closest()`, `requestAnimationFrame()`, and `CustomEvent()`. Without them, support starts with Edge. -## How to Contribute +Use the included polyfills version of Smooth Scroll, or include your own. -Please review the [contributing guidelines](CONTRIBUTING.md). ## License -The code is available under the [GPLv3 License](LICENSE.md) or a [Commercial License](https://cferdinandi.github.io/smooth-scroll/license#commercial-license). \ No newline at end of file +The code is available under the [MIT License](LICENSE.md). \ No newline at end of file diff --git a/dist/js/smooth-scroll.js b/dist/js/smooth-scroll.js deleted file mode 100755 index af2c9e0..0000000 --- a/dist/js/smooth-scroll.js +++ /dev/null @@ -1,599 +0,0 @@ -/*! - * smooth-scroll v11.1.0: Animate scrolling to anchor links - * (c) 2017 Chris Ferdinandi - * GPL-3.0 License - * http://github.com/cferdinandi/smooth-scroll - */ - -(function (root, factory) { - if ( typeof define === 'function' && define.amd ) { - define([], factory(root)); - } else if ( typeof exports === 'object' ) { - module.exports = factory(root); - } else { - root.smoothScroll = factory(root); - } -})(typeof global !== 'undefined' ? global : this.window || this.global, (function (root) { - - 'use strict'; - - // - // Variables - // - - var smoothScroll = {}; // Object for public APIs - var supports = 'querySelector' in document && 'addEventListener' in root; // Feature test - var settings, anchor, toggle, fixedHeader, headerHeight, eventTimeout, animationInterval; - - // Default settings - var defaults = { - // Selectors - selector: '[data-scroll]', - ignore: '[data-scroll-ignore]', - selectorHeader: null, - - // Speed & Easing - speed: 500, - offset: 0, - easing: 'easeInOutCubic', - easingPatterns: {}, - - // Callback API - before: function () {}, - after: function () {} - }; - - - // - // Methods - // - - /** - * Merge two or more objects. Returns a new object. - * @private - * @param {Boolean} deep If true, do a deep (or recursive) merge [optional] - * @param {Object} objects The objects to merge together - * @returns {Object} Merged values of defaults and options - */ - var extend = function () { - - // Variables - var extended = {}; - var deep = false; - var i = 0; - var length = arguments.length; - - // Check if a deep merge - if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { - deep = arguments[0]; - i++; - } - - // Merge the object into the extended object - var merge = function (obj) { - for ( var prop in obj ) { - if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { - // If deep merge and property is an object, merge properties - if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { - extended[prop] = extend( true, extended[prop], obj[prop] ); - } else { - extended[prop] = obj[prop]; - } - } - } - }; - - // Loop through each object and conduct a merge - for ( ; i < length; i++ ) { - var obj = arguments[i]; - merge(obj); - } - - return extended; - - }; - - /** - * Get the height of an element. - * @private - * @param {Node} elem The element to get the height of - * @return {Number} The element's height in pixels - */ - var getHeight = function ( elem ) { - return Math.max( elem.scrollHeight, elem.offsetHeight, elem.clientHeight ); - }; - - /** - * Get the closest matching element up the DOM tree. - * @private - * @param {Element} elem Starting element - * @param {String} selector Selector to match against - * @return {Boolean|Element} Returns null if not match found - */ - var getClosest = function ( elem, selector ) { - - // Element.matches() polyfill - if (!Element.prototype.matches) { - Element.prototype.matches = - Element.prototype.matchesSelector || - Element.prototype.mozMatchesSelector || - Element.prototype.msMatchesSelector || - Element.prototype.oMatchesSelector || - Element.prototype.webkitMatchesSelector || - function(s) { - var matches = (this.document || this.ownerDocument).querySelectorAll(s), - i = matches.length; - while (--i >= 0 && matches.item(i) !== this) {} - return i > -1; - }; - } - - // Get closest match - for ( ; elem && elem !== document; elem = elem.parentNode ) { - if ( elem.matches( selector ) ) return elem; - } - - return null; - - }; - - /** - * Escape special characters for use with querySelector - * @private - * @param {String} id The anchor ID to escape - * @author Mathias Bynens - * @link https://github.com/mathiasbynens/CSS.escape - */ - var escapeCharacters = function ( id ) { - - // Remove leading hash - if ( id.charAt(0) === '#' ) { - id = id.substr(1); - } - - var string = String(id); - var length = string.length; - var index = -1; - var codeUnit; - var result = ''; - var firstCodeUnit = string.charCodeAt(0); - while (++index < length) { - codeUnit = string.charCodeAt(index); - // Note: there’s no need to special-case astral symbols, surrogate - // pairs, or lone surrogates. - - // If the character is NULL (U+0000), then throw an - // `InvalidCharacterError` exception and terminate these steps. - if (codeUnit === 0x0000) { - throw new InvalidCharacterError( - 'Invalid character: the input contains U+0000.' - ); - } - - if ( - // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is - // U+007F, […] - (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || - // If the character is the first character and is in the range [0-9] - // (U+0030 to U+0039), […] - (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || - // If the character is the second character and is in the range [0-9] - // (U+0030 to U+0039) and the first character is a `-` (U+002D), […] - ( - index === 1 && - codeUnit >= 0x0030 && codeUnit <= 0x0039 && - firstCodeUnit === 0x002D - ) - ) { - // http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point - result += '\\' + codeUnit.toString(16) + ' '; - continue; - } - - // If the character is not handled by one of the above rules and is - // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or - // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to - // U+005A), or [a-z] (U+0061 to U+007A), […] - if ( - codeUnit >= 0x0080 || - codeUnit === 0x002D || - codeUnit === 0x005F || - codeUnit >= 0x0030 && codeUnit <= 0x0039 || - codeUnit >= 0x0041 && codeUnit <= 0x005A || - codeUnit >= 0x0061 && codeUnit <= 0x007A - ) { - // the character itself - result += string.charAt(index); - continue; - } - - // Otherwise, the escaped character. - // http://dev.w3.org/csswg/cssom/#escape-a-character - result += '\\' + string.charAt(index); - - } - - return '#' + result; - - }; - - /** - * Calculate the easing pattern - * @private - * @link https://gist.github.com/gre/1650294 - * @param {String} type Easing pattern - * @param {Number} time Time animation should take to complete - * @returns {Number} - */ - var easingPattern = function ( settings, time ) { - var pattern; - - // Default Easing Patterns - if ( settings.easing === 'easeInQuad' ) pattern = time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuad' ) pattern = time * (2 - time); // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuad' ) pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInCubic' ) pattern = time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutCubic' ) pattern = (--time) * time * time + 1; // decelerating to zero velocity - if ( settings.easing === 'easeInOutCubic' ) pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInQuart' ) pattern = time * time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuart' ) pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuart' ) pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInQuint' ) pattern = time * time * time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuint' ) pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuint' ) pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration - - // Custom Easing Patterns - if ( settings.easingPatterns[settings.easing] ) { - pattern = settings.easingPatterns[settings.easing]( time ); - } - - return pattern || time; // no easing, no acceleration - }; - - /** - * Calculate how far to scroll - * @private - * @param {Element} anchor The anchor element to scroll to - * @param {Number} headerHeight Height of a fixed header, if any - * @param {Number} offset Number of pixels by which to offset scroll - * @returns {Number} - */ - var getEndLocation = function ( anchor, headerHeight, offset ) { - var location = 0; - if (anchor.offsetParent) { - do { - location += anchor.offsetTop; - anchor = anchor.offsetParent; - } while (anchor); - } - location = Math.max(location - headerHeight - offset, 0); - return Math.min(location, getDocumentHeight() - getViewportHeight()); - }; - - /** - * Determine the viewport's height - * @private - * @returns {Number} - */ - var getViewportHeight = function() { - return Math.max( document.documentElement.clientHeight, root.innerHeight || 0 ); - }; - - /** - * Determine the document's height - * @private - * @returns {Number} - */ - var getDocumentHeight = function () { - return Math.max( - document.body.scrollHeight, document.documentElement.scrollHeight, - document.body.offsetHeight, document.documentElement.offsetHeight, - document.body.clientHeight, document.documentElement.clientHeight - ); - }; - - /** - * Convert data-options attribute into an object of key/value pairs - * @private - * @param {String} options Link-specific options as a data attribute string - * @returns {Object} - */ - var getDataOptions = function ( options ) { - return !options || !(typeof JSON === 'object' && typeof JSON.parse === 'function') ? {} : JSON.parse( options ); - }; - - /** - * Get the height of the fixed header - * @private - * @param {Node} header The header - * @return {Number} The height of the header - */ - var getHeaderHeight = function ( header ) { - return !header ? 0 : ( getHeight( header ) + header.offsetTop ); - }; - - /** - * Bring the anchored element into focus - * @private - */ - var adjustFocus = function ( anchor, endLocation, isNum ) { - - // Don't run if scrolling to a number on the page - if ( isNum ) return; - - // Otherwise, bring anchor element into focus - anchor.focus(); - if ( document.activeElement.id !== anchor.id ) { - anchor.setAttribute( 'tabindex', '-1' ); - anchor.focus(); - anchor.style.outline = 'none'; - } - root.scrollTo( 0 , endLocation ); - - }; - - /** - * Start/stop the scrolling animation - * @public - * @param {Node|Number} anchor The element or position to scroll to - * @param {Element} toggle The element that toggled the scroll event - * @param {Object} options - */ - smoothScroll.animateScroll = function ( anchor, toggle, options ) { - - // Options and overrides - var overrides = getDataOptions( toggle ? toggle.getAttribute('data-options') : null ); - var animateSettings = extend( settings || defaults, options || {}, overrides ); // Merge user options with defaults - - // Selectors and variables - var isNum = Object.prototype.toString.call( anchor ) === '[object Number]' ? true : false; - var anchorElem = isNum || !anchor.tagName ? null : anchor; - if ( !isNum && !anchorElem ) return; - var startLocation = root.pageYOffset; // Current location on the page - if ( animateSettings.selectorHeader && !fixedHeader ) { - // Get the fixed header if not already set - fixedHeader = document.querySelector( animateSettings.selectorHeader ); - } - if ( !headerHeight ) { - // Get the height of a fixed header if one exists and not already set - headerHeight = getHeaderHeight( fixedHeader ); - } - var endLocation = isNum ? anchor : getEndLocation( anchorElem, headerHeight, parseInt((typeof animateSettings.offset === 'function' ? animateSettings.offset() : animateSettings.offset), 10) ); // Location to scroll to - var distance = endLocation - startLocation; // distance to travel - var documentHeight = getDocumentHeight(); - var timeLapsed = 0; - var percentage, position; - - /** - * Stop the scroll animation when it reaches its target (or the bottom/top of page) - * @private - * @param {Number} position Current position on the page - * @param {Number} endLocation Scroll to location - * @param {Number} animationInterval How much to scroll on this loop - */ - var stopAnimateScroll = function ( position, endLocation, animationInterval ) { - var currentLocation = root.pageYOffset; - if ( position == endLocation || currentLocation == endLocation || ( (root.innerHeight + currentLocation) >= documentHeight ) ) { - - // Clear the animation timer - clearInterval(animationInterval); - - // Bring the anchored element into focus - adjustFocus( anchor, endLocation, isNum ); - - // Run callback after animation complete - animateSettings.after( anchor, toggle ); - - } - }; - - /** - * Loop scrolling animation - * @private - */ - var loopAnimateScroll = function () { - timeLapsed += 16; - percentage = ( timeLapsed / parseInt(animateSettings.speed, 10) ); - percentage = ( percentage > 1 ) ? 1 : percentage; - position = startLocation + ( distance * easingPattern(animateSettings, percentage) ); - root.scrollTo( 0, Math.floor(position) ); - stopAnimateScroll(position, endLocation, animationInterval); - }; - - /** - * Set interval timer - * @private - */ - var startAnimateScroll = function () { - clearInterval(animationInterval); - animationInterval = setInterval(loopAnimateScroll, 16); - }; - - /** - * Reset position to fix weird iOS bug - * @link https://github.com/cferdinandi/smooth-scroll/issues/45 - */ - if ( root.pageYOffset === 0 ) { - root.scrollTo( 0, 0 ); - } - - // Run callback before animation starts - animateSettings.before( anchor, toggle ); - - // Start scrolling animation - startAnimateScroll(); - - }; - - /** - * Handle has change event - * @private - */ - var hashChangeHandler = function (event) { - - // Get hash from URL - var hash; - try { - hash = escapeCharacters( decodeURIComponent( root.location.hash ) ); - } catch(e) { - hash = escapeCharacters( root.location.hash ); - } - - // Only run if there's an anchor element to scroll to - if ( !anchor ) return; - - // Reset the anchor element's ID - anchor.id = anchor.getAttribute( 'data-scroll-id' ); - - // Scroll to the anchored content - smoothScroll.animateScroll( anchor, toggle ); - - // Reset anchor and toggle - anchor = null; - toggle = null; - - }; - - /** - * If smooth scroll element clicked, animate scroll - * @private - */ - var clickHandler = function (event) { - - // Don't run if right-click or command/control + click - if ( event.button !== 0 || event.metaKey || event.ctrlKey ) return; - - // Check if a smooth scroll link was clicked - toggle = getClosest( event.target, settings.selector ); - if ( !toggle || toggle.tagName.toLowerCase() !== 'a' || getClosest( event.target, settings.ignore ) ) return; - - // Only run if link is an anchor and points to the current page - if ( toggle.hostname !== root.location.hostname || toggle.pathname !== root.location.pathname || !/#/.test(toggle.href) ) return; - - // Get the sanitized hash - var hash; - try { - hash = escapeCharacters( decodeURIComponent( toggle.hash ) ); - } catch(e) { - hash = escapeCharacters( toggle.hash ); - } - - // If the hash is empty, scroll to the top of the page - if ( hash === '#' ) { - - // Prevent default link behavior - event.preventDefault(); - - // Set the anchored element - anchor = document.body; - - // Save or create the ID as a data attribute and remove it (prevents scroll jump) - var id = anchor.id ? anchor.id : 'smooth-scroll-top'; - anchor.setAttribute( 'data-scroll-id', id ); - anchor.id = ''; - - // If no hash change event will happen, fire manually - // Otherwise, update the hash - if ( root.location.hash.substring(1) === id ) { - hashChangeHandler(); - } else { - root.location.hash = id; - } - - return; - - } - - // Get the anchored element - anchor = document.querySelector( hash ); - - // If anchored element exists, save the ID as a data attribute and remove it (prevents scroll jump) - if ( !anchor ) return; - anchor.setAttribute( 'data-scroll-id', anchor.id ); - anchor.id = ''; - - // If no hash change event will happen, fire manually - if ( toggle.hash === root.location.hash ) { - event.preventDefault(); - hashChangeHandler(); - } - - }; - - /** - * On window scroll and resize, only run events at a rate of 15fps for better performance - * @private - * @param {Function} eventTimeout Timeout function - * @param {Object} settings - */ - var resizeThrottler = function (event) { - if ( !eventTimeout ) { - eventTimeout = setTimeout((function() { - eventTimeout = null; // Reset timeout - headerHeight = getHeaderHeight( fixedHeader ); // Get the height of a fixed header if one exists - }), 66); - } - }; - - /** - * Destroy the current initialization. - * @public - */ - smoothScroll.destroy = function () { - - // If plugin isn't already initialized, stop - if ( !settings ) return; - - // Remove event listeners - document.removeEventListener( 'click', clickHandler, false ); - root.removeEventListener( 'resize', resizeThrottler, false ); - - // Reset varaibles - settings = null; - anchor = null; - toggle = null; - fixedHeader = null; - headerHeight = null; - eventTimeout = null; - animationInterval = null; - }; - - /** - * Initialize Smooth Scroll - * @public - * @param {Object} options User settings - */ - smoothScroll.init = function ( options ) { - - // feature test - if ( !supports ) return; - - // Destroy any existing initializations - smoothScroll.destroy(); - - // Selectors and variables - settings = extend( defaults, options || {} ); // Merge user options with defaults - fixedHeader = settings.selectorHeader ? document.querySelector( settings.selectorHeader ) : null; // Get the fixed header - headerHeight = getHeaderHeight( fixedHeader ); - - // When a toggle is clicked, run the click handler - document.addEventListener( 'click', clickHandler, false ); - - // Listen for hash changes - root.addEventListener('hashchange', hashChangeHandler, false); - - // If window is resized and there's a fixed header, recalculate its size - if ( fixedHeader ) { - root.addEventListener( 'resize', resizeThrottler, false ); - } - - }; - - - // - // Public APIs - // - - return smoothScroll; - -})); \ No newline at end of file diff --git a/dist/js/smooth-scroll.min.js b/dist/js/smooth-scroll.min.js deleted file mode 100755 index b0b54aa..0000000 --- a/dist/js/smooth-scroll.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! smooth-scroll v11.1.0 | (c) 2017 Chris Ferdinandi | GPL-3.0 License | http://github.com/cferdinandi/smooth-scroll */ -!(function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.smoothScroll=t(e)})("undefined"!=typeof global?global:this.window||this.global,(function(e){"use strict";var t,n,o,r,a,i,c,l={},s="querySelector"in document&&"addEventListener"in e,u={selector:"[data-scroll]",ignore:"[data-scroll-ignore]",selectorHeader:null,speed:500,offset:0,easing:"easeInOutCubic",easingPatterns:{},before:function(){},after:function(){}},f=function(){var e={},t=!1,n=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(;n=0&&t.item(n)!==this;);return n>-1});e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null},m=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,r=-1,a="",i=n.charCodeAt(0);++r=1&&t<=31||127==t||0===r&&t>=48&&t<=57||1===r&&t>=48&&t<=57&&45===i?a+="\\"+t.toString(16)+" ":a+=t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+a},g=function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.easingPatterns[e.easing]&&(n=e.easingPatterns[e.easing](t)),n||t},p=function(e,t,n){var o=0;if(e.offsetParent)do{o+=e.offsetTop,e=e.offsetParent}while(e);return o=Math.max(o-t-n,0),Math.min(o,y()-b())},b=function(){return Math.max(document.documentElement.clientHeight,e.innerHeight||0)},y=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},v=function(e){return e&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(e):{}},O=function(e){return e?d(e)+e.offsetTop:0},S=function(t,n,o){o||(t.focus(),document.activeElement.id!==t.id&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))};l.animateScroll=function(n,o,i){var l=v(o?o.getAttribute("data-options"):null),s=f(t||u,i||{},l),d="[object Number]"===Object.prototype.toString.call(n),h=d||!n.tagName?null:n;if(d||h){var m=e.pageYOffset;s.selectorHeader&&!r&&(r=document.querySelector(s.selectorHeader)),a||(a=O(r));var b,E,I=d?n:p(h,a,parseInt("function"==typeof s.offset?s.offset():s.offset,10)),H=I-m,A=y(),j=0,C=function(t,r,a){var i=e.pageYOffset;(t==r||i==r||e.innerHeight+i>=A)&&(clearInterval(a),S(n,r,d),s.after(n,o))},M=function(){j+=16,b=j/parseInt(s.speed,10),b=b>1?1:b,E=m+H*g(s,b),e.scrollTo(0,Math.floor(E)),C(E,I,c)};0===e.pageYOffset&&e.scrollTo(0,0),s.before(n,o),(function(){clearInterval(c),c=setInterval(M,16)})()}};var E=function(t){try{m(decodeURIComponent(e.location.hash))}catch(t){m(e.location.hash)}n&&(n.id=n.getAttribute("data-scroll-id"),l.animateScroll(n,o),n=null,o=null)},I=function(r){if(0===r.button&&!r.metaKey&&!r.ctrlKey&&(o=h(r.target,t.selector))&&"a"===o.tagName.toLowerCase()&&!h(r.target,t.ignore)&&o.hostname===e.location.hostname&&o.pathname===e.location.pathname&&/#/.test(o.href)){var a;try{a=m(decodeURIComponent(o.hash))}catch(e){a=m(o.hash)}if("#"===a){r.preventDefault(),n=document.body;var i=n.id?n.id:"smooth-scroll-top";return n.setAttribute("data-scroll-id",i),n.id="",void(e.location.hash.substring(1)===i?E():e.location.hash=i)}n=document.querySelector(a),n&&(n.setAttribute("data-scroll-id",n.id),n.id="",o.hash===e.location.hash&&(r.preventDefault(),E()))}},H=function(e){i||(i=setTimeout((function(){i=null,a=O(r)}),66))};return l.destroy=function(){t&&(document.removeEventListener("click",I,!1),e.removeEventListener("resize",H,!1),t=null,n=null,o=null,r=null,a=null,i=null,c=null)},l.init=function(n){s&&(l.destroy(),t=f(u,n||{}),r=t.selectorHeader?document.querySelector(t.selectorHeader):null,a=O(r),document.addEventListener("click",I,!1),e.addEventListener("hashchange",E,!1),r&&e.addEventListener("resize",H,!1))},l})); \ No newline at end of file diff --git a/dist/smooth-scroll.js b/dist/smooth-scroll.js new file mode 100644 index 0000000..4984899 --- /dev/null +++ b/dist/smooth-scroll.js @@ -0,0 +1,629 @@ +/*! SmoothScroll v16.1.4 | (c) 2020 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = global || self, global.SmoothScroll = factory()); +}(this, (function () { 'use strict'; + + // + // Default settings + // + + var defaults = { + + // Selectors + ignore: '[data-scroll-ignore]', + header: null, + topOnEmptyHash: true, + + // Speed & Duration + speed: 500, + speedAsDuration: false, + durationMax: null, + durationMin: null, + clip: true, + offset: 0, + + // Easing + easing: 'easeInOutCubic', + customEasing: null, + + // History + updateURL: true, + popstate: true, + + // Custom Events + emitEvents: true + + }; + + + // + // Utility Methods + // + + /** + * Check if browser supports required methods + * @return {Boolean} Returns true if all required methods are supported + */ + var supports = function () { + return ( + 'querySelector' in document && + 'addEventListener' in window && + 'requestAnimationFrame' in window && + 'closest' in window.Element.prototype + ); + }; + + /** + * Merge two or more objects together. + * @param {Object} objects The objects to merge together + * @returns {Object} Merged values of defaults and options + */ + var extend = function () { + var merged = {}; + Array.prototype.forEach.call(arguments, function (obj) { + for (var key in obj) { + if (!obj.hasOwnProperty(key)) return; + merged[key] = obj[key]; + } + }); + return merged; + }; + + /** + * Check to see if user prefers reduced motion + * @param {Object} settings Script settings + */ + var reduceMotion = function () { + if ('matchMedia' in window && window.matchMedia('(prefers-reduced-motion)').matches) { + return true; + } + return false; + }; + + /** + * Get the height of an element. + * @param {Node} elem The element to get the height of + * @return {Number} The element's height in pixels + */ + var getHeight = function (elem) { + return parseInt(window.getComputedStyle(elem).height, 10); + }; + + /** + * Escape special characters for use with querySelector + * @author Mathias Bynens + * @link https://github.com/mathiasbynens/CSS.escape + * @param {String} id The anchor ID to escape + */ + var escapeCharacters = function (id) { + + // Remove leading hash + if (id.charAt(0) === '#') { + id = id.substr(1); + } + + var string = String(id); + var length = string.length; + var index = -1; + var codeUnit; + var result = ''; + var firstCodeUnit = string.charCodeAt(0); + while (++index < length) { + codeUnit = string.charCodeAt(index); + // Note: there’s no need to special-case astral symbols, surrogate + // pairs, or lone surrogates. + + // If the character is NULL (U+0000), then throw an + // `InvalidCharacterError` exception and terminate these steps. + if (codeUnit === 0x0000) { + throw new InvalidCharacterError( + 'Invalid character: the input contains U+0000.' + ); + } + + if ( + // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is + // U+007F, […] + (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || + // If the character is the first character and is in the range [0-9] + // (U+0030 to U+0039), […] + (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || + // If the character is the second character and is in the range [0-9] + // (U+0030 to U+0039) and the first character is a `-` (U+002D), […] + ( + index === 1 && + codeUnit >= 0x0030 && codeUnit <= 0x0039 && + firstCodeUnit === 0x002D + ) + ) { + // http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point + result += '\\' + codeUnit.toString(16) + ' '; + continue; + } + + // If the character is not handled by one of the above rules and is + // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or + // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to + // U+005A), or [a-z] (U+0061 to U+007A), […] + if ( + codeUnit >= 0x0080 || + codeUnit === 0x002D || + codeUnit === 0x005F || + codeUnit >= 0x0030 && codeUnit <= 0x0039 || + codeUnit >= 0x0041 && codeUnit <= 0x005A || + codeUnit >= 0x0061 && codeUnit <= 0x007A + ) { + // the character itself + result += string.charAt(index); + continue; + } + + // Otherwise, the escaped character. + // http://dev.w3.org/csswg/cssom/#escape-a-character + result += '\\' + string.charAt(index); + + } + + // Return sanitized hash + return '#' + result; + + }; + + /** + * Calculate the easing pattern + * @link https://gist.github.com/gre/1650294 + * @param {Object} settings Easing pattern + * @param {Number} time Time animation should take to complete + * @returns {Number} + */ + var easingPattern = function (settings, time) { + var pattern; + + // Default Easing Patterns + if (settings.easing === 'easeInQuad') pattern = time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuad') pattern = time * (2 - time); // decelerating to zero velocity + if (settings.easing === 'easeInOutQuad') pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInCubic') pattern = time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutCubic') pattern = (--time) * time * time + 1; // decelerating to zero velocity + if (settings.easing === 'easeInOutCubic') pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInQuart') pattern = time * time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuart') pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity + if (settings.easing === 'easeInOutQuart') pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInQuint') pattern = time * time * time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuint') pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity + if (settings.easing === 'easeInOutQuint') pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration + + // Custom Easing Patterns + if (!!settings.customEasing) pattern = settings.customEasing(time); + + return pattern || time; // no easing, no acceleration + }; + + /** + * Determine the document's height + * @returns {Number} + */ + var getDocumentHeight = function () { + return Math.max( + document.body.scrollHeight, document.documentElement.scrollHeight, + document.body.offsetHeight, document.documentElement.offsetHeight, + document.body.clientHeight, document.documentElement.clientHeight + ); + }; + + /** + * Calculate how far to scroll + * Clip support added by robjtede - https://github.com/cferdinandi/smooth-scroll/issues/405 + * @param {Element} anchor The anchor element to scroll to + * @param {Number} headerHeight Height of a fixed header, if any + * @param {Number} offset Number of pixels by which to offset scroll + * @param {Boolean} clip If true, adjust scroll distance to prevent abrupt stops near the bottom of the page + * @returns {Number} + */ + var getEndLocation = function (anchor, headerHeight, offset, clip) { + var location = 0; + if (anchor.offsetParent) { + do { + location += anchor.offsetTop; + anchor = anchor.offsetParent; + } while (anchor); + } + location = Math.max(location - headerHeight - offset, 0); + if (clip) { + location = Math.min(location, getDocumentHeight() - window.innerHeight); + } + return location; + }; + + /** + * Get the height of the fixed header + * @param {Node} header The header + * @return {Number} The height of the header + */ + var getHeaderHeight = function (header) { + return !header ? 0 : (getHeight(header) + header.offsetTop); + }; + + /** + * Calculate the speed to use for the animation + * @param {Number} distance The distance to travel + * @param {Object} settings The plugin settings + * @return {Number} How fast to animate + */ + var getSpeed = function (distance, settings) { + var speed = settings.speedAsDuration ? settings.speed : Math.abs(distance / 1000 * settings.speed); + if (settings.durationMax && speed > settings.durationMax) return settings.durationMax; + if (settings.durationMin && speed < settings.durationMin) return settings.durationMin; + return parseInt(speed, 10); + }; + + var setHistory = function (options) { + + // Make sure this should run + if (!history.replaceState || !options.updateURL || history.state) return; + + // Get the hash to use + var hash = window.location.hash; + hash = hash ? hash : ''; + + // Set a default history + history.replaceState( + { + smoothScroll: JSON.stringify(options), + anchor: hash ? hash : window.pageYOffset + }, + document.title, + hash ? hash : window.location.href + ); + + }; + + /** + * Update the URL + * @param {Node} anchor The anchor that was scrolled to + * @param {Boolean} isNum If true, anchor is a number + * @param {Object} options Settings for Smooth Scroll + */ + var updateURL = function (anchor, isNum, options) { + + // Bail if the anchor is a number + if (isNum) return; + + // Verify that pushState is supported and the updateURL option is enabled + if (!history.pushState || !options.updateURL) return; + + // Update URL + history.pushState( + { + smoothScroll: JSON.stringify(options), + anchor: anchor.id + }, + document.title, + anchor === document.documentElement ? '#top' : '#' + anchor.id + ); + + }; + + /** + * Bring the anchored element into focus + * @param {Node} anchor The anchor element + * @param {Number} endLocation The end location to scroll to + * @param {Boolean} isNum If true, scroll is to a position rather than an element + */ + var adjustFocus = function (anchor, endLocation, isNum) { + + // Is scrolling to top of page, blur + if (anchor === 0) { + document.body.focus(); + } + + // Don't run if scrolling to a number on the page + if (isNum) return; + + // Otherwise, bring anchor element into focus + anchor.focus(); + if (document.activeElement !== anchor) { + anchor.setAttribute('tabindex', '-1'); + anchor.focus(); + anchor.style.outline = 'none'; + } + window.scrollTo(0 , endLocation); + + }; + + /** + * Emit a custom event + * @param {String} type The event type + * @param {Object} options The settings object + * @param {Node} anchor The anchor element + * @param {Node} toggle The toggle element + */ + var emitEvent = function (type, options, anchor, toggle) { + if (!options.emitEvents || typeof window.CustomEvent !== 'function') return; + var event = new CustomEvent(type, { + bubbles: true, + detail: { + anchor: anchor, + toggle: toggle + } + }); + document.dispatchEvent(event); + }; + + + // + // SmoothScroll Constructor + // + + var SmoothScroll = function (selector, options) { + + // + // Variables + // + + var smoothScroll = {}; // Object for public APIs + var settings, toggle, fixedHeader, animationInterval; + + + // + // Methods + // + + /** + * Cancel a scroll-in-progress + */ + smoothScroll.cancelScroll = function (noEvent) { + cancelAnimationFrame(animationInterval); + animationInterval = null; + if (noEvent) return; + emitEvent('scrollCancel', settings); + }; + + /** + * Start/stop the scrolling animation + * @param {Node|Number} anchor The element or position to scroll to + * @param {Element} toggle The element that toggled the scroll event + * @param {Object} options + */ + smoothScroll.animateScroll = function (anchor, toggle, options) { + + // Cancel any in progress scrolls + smoothScroll.cancelScroll(); + + // Local settings + var _settings = extend(settings || defaults, options || {}); // Merge user options with defaults + + // Selectors and variables + var isNum = Object.prototype.toString.call(anchor) === '[object Number]' ? true : false; + var anchorElem = isNum || !anchor.tagName ? null : anchor; + if (!isNum && !anchorElem) return; + var startLocation = window.pageYOffset; // Current location on the page + if (_settings.header && !fixedHeader) { + // Get the fixed header if not already set + fixedHeader = document.querySelector(_settings.header); + } + var headerHeight = getHeaderHeight(fixedHeader); + var endLocation = isNum ? anchor : getEndLocation(anchorElem, headerHeight, parseInt((typeof _settings.offset === 'function' ? _settings.offset(anchor, toggle) : _settings.offset), 10), _settings.clip); // Location to scroll to + var distance = endLocation - startLocation; // distance to travel + var documentHeight = getDocumentHeight(); + var timeLapsed = 0; + var speed = getSpeed(distance, _settings); + var start, percentage, position; + + /** + * Stop the scroll animation when it reaches its target (or the bottom/top of page) + * @param {Number} position Current position on the page + * @param {Number} endLocation Scroll to location + * @param {Number} animationInterval How much to scroll on this loop + */ + var stopAnimateScroll = function (position, endLocation) { + + // Get the current location + var currentLocation = window.pageYOffset; + + // Check if the end location has been reached yet (or we've hit the end of the document) + if (position == endLocation || currentLocation == endLocation || ((startLocation < endLocation && window.innerHeight + currentLocation) >= documentHeight)) { + + // Clear the animation timer + smoothScroll.cancelScroll(true); + + // Bring the anchored element into focus + adjustFocus(anchor, endLocation, isNum); + + // Emit a custom event + emitEvent('scrollStop', _settings, anchor, toggle); + + // Reset start + start = null; + animationInterval = null; + + return true; + + } + }; + + /** + * Loop scrolling animation + */ + var loopAnimateScroll = function (timestamp) { + if (!start) { start = timestamp; } + timeLapsed += timestamp - start; + percentage = speed === 0 ? 0 : (timeLapsed / speed); + percentage = (percentage > 1) ? 1 : percentage; + position = startLocation + (distance * easingPattern(_settings, percentage)); + window.scrollTo(0, Math.floor(position)); + if (!stopAnimateScroll(position, endLocation)) { + animationInterval = window.requestAnimationFrame(loopAnimateScroll); + start = timestamp; + } + }; + + /** + * Reset position to fix weird iOS bug + * @link https://github.com/cferdinandi/smooth-scroll/issues/45 + */ + if (window.pageYOffset === 0) { + window.scrollTo(0, 0); + } + + // Update the URL + updateURL(anchor, isNum, _settings); + + // If the user prefers reduced motion, jump to location + if (reduceMotion()) { + adjustFocus(anchor, Math.floor(endLocation), false); + return; + } + + // Emit a custom event + emitEvent('scrollStart', _settings, anchor, toggle); + + // Start scrolling animation + smoothScroll.cancelScroll(true); + window.requestAnimationFrame(loopAnimateScroll); + + }; + + /** + * If smooth scroll element clicked, animate scroll + */ + var clickHandler = function (event) { + + // Don't run if event was canceled but still bubbled up + // By @mgreter - https://github.com/cferdinandi/smooth-scroll/pull/462/ + if (event.defaultPrevented) return; + + // Don't run if right-click or command/control + click or shift + click + if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey) return; + + // Check if event.target has closest() method + // By @totegi - https://github.com/cferdinandi/smooth-scroll/pull/401/ + if (!('closest' in event.target)) return; + + // Check if a smooth scroll link was clicked + toggle = event.target.closest(selector); + if (!toggle || toggle.tagName.toLowerCase() !== 'a' || event.target.closest(settings.ignore)) return; + + // Only run if link is an anchor and points to the current page + if (toggle.hostname !== window.location.hostname || toggle.pathname !== window.location.pathname || !/#/.test(toggle.href)) return; + + // Get an escaped version of the hash + var hash; + try { + hash = escapeCharacters(decodeURIComponent(toggle.hash)); + } catch(e) { + hash = escapeCharacters(toggle.hash); + } + + // Get the anchored element + var anchor; + if (hash === '#') { + if (!settings.topOnEmptyHash) return; + anchor = document.documentElement; + } else { + anchor = document.querySelector(hash); + } + anchor = !anchor && hash === '#top' ? document.documentElement : anchor; + + // If anchored element exists, scroll to it + if (!anchor) return; + event.preventDefault(); + setHistory(settings); + smoothScroll.animateScroll(anchor, toggle); + + }; + + /** + * Animate scroll on popstate events + */ + var popstateHandler = function () { + + // Stop if history.state doesn't exist (ex. if clicking on a broken anchor link). + // fixes `Cannot read property 'smoothScroll' of null` error getting thrown. + if (history.state === null) return; + + // Only run if state is a popstate record for this instantiation + if (!history.state.smoothScroll || history.state.smoothScroll !== JSON.stringify(settings)) return; + + // Get the anchor + var anchor = history.state.anchor; + if (typeof anchor === 'string' && anchor) { + anchor = document.querySelector(escapeCharacters(history.state.anchor)); + if (!anchor) return; + } + + // Animate scroll to anchor link + smoothScroll.animateScroll(anchor, null, {updateURL: false}); + + }; + + /** + * Destroy the current initialization. + */ + smoothScroll.destroy = function () { + + // If plugin isn't already initialized, stop + if (!settings) return; + + // Remove event listeners + document.removeEventListener('click', clickHandler, false); + window.removeEventListener('popstate', popstateHandler, false); + + // Cancel any scrolls-in-progress + smoothScroll.cancelScroll(); + + // Reset variables + settings = null; + toggle = null; + fixedHeader = null; + animationInterval = null; + + }; + + /** + * Initialize Smooth Scroll + * @param {Object} options User settings + */ + var init = function () { + + // feature test + if (!supports()) throw 'Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.'; + + // Destroy any existing initializations + smoothScroll.destroy(); + + // Selectors and variables + settings = extend(defaults, options || {}); // Merge user options with defaults + fixedHeader = settings.header ? document.querySelector(settings.header) : null; // Get the fixed header + + // When a toggle is clicked, run the click handler + document.addEventListener('click', clickHandler, false); + + // If updateURL and popState are enabled, listen for pop events + if (settings.updateURL && settings.popstate) { + window.addEventListener('popstate', popstateHandler, false); + } + + }; + + + // + // Initialize plugin + // + + init(); + + + // + // Public APIs + // + + return smoothScroll; + + }; + + return SmoothScroll; + +}))); diff --git a/dist/smooth-scroll.min.js b/dist/smooth-scroll.min.js new file mode 100644 index 0000000..b3d1fe0 --- /dev/null +++ b/dist/smooth-scroll.min.js @@ -0,0 +1,2 @@ +/*! SmoothScroll v16.1.4 | (c) 2020 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).SmoothScroll=t()}(this,(function(){"use strict";var e={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},t=function(){var e={};return Array.prototype.forEach.call(arguments,(function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}})),e},n=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,a=-1,i="",r=n.charCodeAt(0);++a=1&&t<=31||127==t||0===a&&t>=48&&t<=57||1===a&&t>=48&&t<=57&&45===r?i+="\\"+t.toString(16)+" ":i+=t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(a):"\\"+n.charAt(a)}return"#"+i},o=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},a=function(e){return e?(t=e,parseInt(window.getComputedStyle(t).height,10)+e.offsetTop):0;var t},i=function(e,t,n){0===e&&document.body.focus(),n||(e.focus(),document.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),window.scrollTo(0,t))},r=function(e,t,n,o){if(t.emitEvents&&"function"==typeof window.CustomEvent){var a=new CustomEvent(e,{bubbles:!0,detail:{anchor:n,toggle:o}});document.dispatchEvent(a)}};return function(s,c){var u,l,d,f,m={};m.cancelScroll=function(e){cancelAnimationFrame(f),f=null,e||r("scrollCancel",u)},m.animateScroll=function(n,s,c){m.cancelScroll();var l=t(u||e,c||{}),h="[object Number]"===Object.prototype.toString.call(n),p=h||!n.tagName?null:n;if(h||p){var w=window.pageYOffset;l.header&&!d&&(d=document.querySelector(l.header));var g,y,v,S=a(d),E=h?n:function(e,t,n,a){var i=0;if(e.offsetParent)do{i+=e.offsetTop,e=e.offsetParent}while(e);return i=Math.max(i-t-n,0),a&&(i=Math.min(i,o()-window.innerHeight)),i}(p,S,parseInt("function"==typeof l.offset?l.offset(n,s):l.offset,10),l.clip),b=E-w,O=o(),I=0,M=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n1?1:y),window.scrollTo(0,Math.floor(v)),function(e,t){var o=window.pageYOffset;if(e==t||o==t||(w=O)return m.cancelScroll(!0),i(n,t,h),r("scrollStop",l,n,s),g=null,f=null,!0}(v,E)||(f=window.requestAnimationFrame(A),g=e)};0===window.pageYOffset&&window.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(n,h,l),"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches?i(n,Math.floor(E),!1):(r("scrollStart",l,n,s),m.cancelScroll(!0),window.requestAnimationFrame(A))}};var h=function(e){if(!e.defaultPrevented&&!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)&&"closest"in e.target&&(l=e.target.closest(s))&&"a"===l.tagName.toLowerCase()&&!e.target.closest(u.ignore)&&l.hostname===window.location.hostname&&l.pathname===window.location.pathname&&/#/.test(l.href)){var t,o;try{t=n(decodeURIComponent(l.hash))}catch(e){t=n(l.hash)}if("#"===t){if(!u.topOnEmptyHash)return;o=document.documentElement}else o=document.querySelector(t);(o=o||"#top"!==t?o:document.documentElement)&&(e.preventDefault(),function(e){if(history.replaceState&&e.updateURL&&!history.state){var t=window.location.hash;t=t||"",history.replaceState({smoothScroll:JSON.stringify(e),anchor:t||window.pageYOffset},document.title,t||window.location.href)}}(u),m.animateScroll(o,l))}},p=function(){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(u)){var e=history.state.anchor;"string"==typeof e&&e&&!(e=document.querySelector(n(history.state.anchor)))||m.animateScroll(e,null,{updateURL:!1})}};m.destroy=function(){u&&(document.removeEventListener("click",h,!1),window.removeEventListener("popstate",p,!1),m.cancelScroll(),u=null,l=null,d=null,f=null)};return function(){if(!("querySelector"in document&&"addEventListener"in window&&"requestAnimationFrame"in window&&"closest"in window.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";m.destroy(),u=t(e,c||{}),d=u.header?document.querySelector(u.header):null,document.addEventListener("click",h,!1),u.updateURL&&u.popstate&&window.addEventListener("popstate",p,!1)}(),m}})); diff --git a/dist/smooth-scroll.polyfills.js b/dist/smooth-scroll.polyfills.js new file mode 100644 index 0000000..3c98174 --- /dev/null +++ b/dist/smooth-scroll.polyfills.js @@ -0,0 +1,700 @@ +/*! SmoothScroll v16.1.4 | (c) 2020 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = global || self, global.SmoothScroll = factory()); +}(this, (function () { 'use strict'; + + /** + * closest() polyfill + * @link https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill + */ + if (window.Element && !Element.prototype.closest) { + Element.prototype.closest = function(s) { + var matches = (this.document || this.ownerDocument).querySelectorAll(s), + i, + el = this; + do { + i = matches.length; + while (--i >= 0 && matches.item(i) !== el) {} + } while ((i < 0) && (el = el.parentElement)); + return el; + }; + } + + /** + * CustomEvent() polyfill + * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill + */ + (function () { + + if (typeof window.CustomEvent === "function") return false; + + function CustomEvent(event, params) { + params = params || { bubbles: false, cancelable: false, detail: undefined }; + var evt = document.createEvent('CustomEvent'); + evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); + return evt; + } + + CustomEvent.prototype = window.Event.prototype; + + window.CustomEvent = CustomEvent; + })(); + + /** + * requestAnimationFrame() polyfill + * By Erik Möller. Fixes from Paul Irish and Tino Zijdel. + * @link http://paulirish.com/2011/requestanimationframe-for-smart-animating/ + * @link http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating + * @license MIT + */ + (function() { + var lastTime = 0; + var vendors = ['ms', 'moz', 'webkit', 'o']; + for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; + window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] || + window[vendors[x]+'CancelRequestAnimationFrame']; + } + + if (!window.requestAnimationFrame) { + window.requestAnimationFrame = function(callback, element) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = window.setTimeout(function() { callback(currTime + timeToCall); }, + timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + } + + if (!window.cancelAnimationFrame) { + window.cancelAnimationFrame = function(id) { + clearTimeout(id); + }; + } + }()); + + // + // Default settings + // + + var defaults = { + + // Selectors + ignore: '[data-scroll-ignore]', + header: null, + topOnEmptyHash: true, + + // Speed & Duration + speed: 500, + speedAsDuration: false, + durationMax: null, + durationMin: null, + clip: true, + offset: 0, + + // Easing + easing: 'easeInOutCubic', + customEasing: null, + + // History + updateURL: true, + popstate: true, + + // Custom Events + emitEvents: true + + }; + + + // + // Utility Methods + // + + /** + * Check if browser supports required methods + * @return {Boolean} Returns true if all required methods are supported + */ + var supports = function () { + return ( + 'querySelector' in document && + 'addEventListener' in window && + 'requestAnimationFrame' in window && + 'closest' in window.Element.prototype + ); + }; + + /** + * Merge two or more objects together. + * @param {Object} objects The objects to merge together + * @returns {Object} Merged values of defaults and options + */ + var extend = function () { + var merged = {}; + Array.prototype.forEach.call(arguments, function (obj) { + for (var key in obj) { + if (!obj.hasOwnProperty(key)) return; + merged[key] = obj[key]; + } + }); + return merged; + }; + + /** + * Check to see if user prefers reduced motion + * @param {Object} settings Script settings + */ + var reduceMotion = function () { + if ('matchMedia' in window && window.matchMedia('(prefers-reduced-motion)').matches) { + return true; + } + return false; + }; + + /** + * Get the height of an element. + * @param {Node} elem The element to get the height of + * @return {Number} The element's height in pixels + */ + var getHeight = function (elem) { + return parseInt(window.getComputedStyle(elem).height, 10); + }; + + /** + * Escape special characters for use with querySelector + * @author Mathias Bynens + * @link https://github.com/mathiasbynens/CSS.escape + * @param {String} id The anchor ID to escape + */ + var escapeCharacters = function (id) { + + // Remove leading hash + if (id.charAt(0) === '#') { + id = id.substr(1); + } + + var string = String(id); + var length = string.length; + var index = -1; + var codeUnit; + var result = ''; + var firstCodeUnit = string.charCodeAt(0); + while (++index < length) { + codeUnit = string.charCodeAt(index); + // Note: there’s no need to special-case astral symbols, surrogate + // pairs, or lone surrogates. + + // If the character is NULL (U+0000), then throw an + // `InvalidCharacterError` exception and terminate these steps. + if (codeUnit === 0x0000) { + throw new InvalidCharacterError( + 'Invalid character: the input contains U+0000.' + ); + } + + if ( + // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is + // U+007F, […] + (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || + // If the character is the first character and is in the range [0-9] + // (U+0030 to U+0039), […] + (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || + // If the character is the second character and is in the range [0-9] + // (U+0030 to U+0039) and the first character is a `-` (U+002D), […] + ( + index === 1 && + codeUnit >= 0x0030 && codeUnit <= 0x0039 && + firstCodeUnit === 0x002D + ) + ) { + // http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point + result += '\\' + codeUnit.toString(16) + ' '; + continue; + } + + // If the character is not handled by one of the above rules and is + // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or + // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to + // U+005A), or [a-z] (U+0061 to U+007A), […] + if ( + codeUnit >= 0x0080 || + codeUnit === 0x002D || + codeUnit === 0x005F || + codeUnit >= 0x0030 && codeUnit <= 0x0039 || + codeUnit >= 0x0041 && codeUnit <= 0x005A || + codeUnit >= 0x0061 && codeUnit <= 0x007A + ) { + // the character itself + result += string.charAt(index); + continue; + } + + // Otherwise, the escaped character. + // http://dev.w3.org/csswg/cssom/#escape-a-character + result += '\\' + string.charAt(index); + + } + + // Return sanitized hash + return '#' + result; + + }; + + /** + * Calculate the easing pattern + * @link https://gist.github.com/gre/1650294 + * @param {Object} settings Easing pattern + * @param {Number} time Time animation should take to complete + * @returns {Number} + */ + var easingPattern = function (settings, time) { + var pattern; + + // Default Easing Patterns + if (settings.easing === 'easeInQuad') pattern = time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuad') pattern = time * (2 - time); // decelerating to zero velocity + if (settings.easing === 'easeInOutQuad') pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInCubic') pattern = time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutCubic') pattern = (--time) * time * time + 1; // decelerating to zero velocity + if (settings.easing === 'easeInOutCubic') pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInQuart') pattern = time * time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuart') pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity + if (settings.easing === 'easeInOutQuart') pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInQuint') pattern = time * time * time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuint') pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity + if (settings.easing === 'easeInOutQuint') pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration + + // Custom Easing Patterns + if (!!settings.customEasing) pattern = settings.customEasing(time); + + return pattern || time; // no easing, no acceleration + }; + + /** + * Determine the document's height + * @returns {Number} + */ + var getDocumentHeight = function () { + return Math.max( + document.body.scrollHeight, document.documentElement.scrollHeight, + document.body.offsetHeight, document.documentElement.offsetHeight, + document.body.clientHeight, document.documentElement.clientHeight + ); + }; + + /** + * Calculate how far to scroll + * Clip support added by robjtede - https://github.com/cferdinandi/smooth-scroll/issues/405 + * @param {Element} anchor The anchor element to scroll to + * @param {Number} headerHeight Height of a fixed header, if any + * @param {Number} offset Number of pixels by which to offset scroll + * @param {Boolean} clip If true, adjust scroll distance to prevent abrupt stops near the bottom of the page + * @returns {Number} + */ + var getEndLocation = function (anchor, headerHeight, offset, clip) { + var location = 0; + if (anchor.offsetParent) { + do { + location += anchor.offsetTop; + anchor = anchor.offsetParent; + } while (anchor); + } + location = Math.max(location - headerHeight - offset, 0); + if (clip) { + location = Math.min(location, getDocumentHeight() - window.innerHeight); + } + return location; + }; + + /** + * Get the height of the fixed header + * @param {Node} header The header + * @return {Number} The height of the header + */ + var getHeaderHeight = function (header) { + return !header ? 0 : (getHeight(header) + header.offsetTop); + }; + + /** + * Calculate the speed to use for the animation + * @param {Number} distance The distance to travel + * @param {Object} settings The plugin settings + * @return {Number} How fast to animate + */ + var getSpeed = function (distance, settings) { + var speed = settings.speedAsDuration ? settings.speed : Math.abs(distance / 1000 * settings.speed); + if (settings.durationMax && speed > settings.durationMax) return settings.durationMax; + if (settings.durationMin && speed < settings.durationMin) return settings.durationMin; + return parseInt(speed, 10); + }; + + var setHistory = function (options) { + + // Make sure this should run + if (!history.replaceState || !options.updateURL || history.state) return; + + // Get the hash to use + var hash = window.location.hash; + hash = hash ? hash : ''; + + // Set a default history + history.replaceState( + { + smoothScroll: JSON.stringify(options), + anchor: hash ? hash : window.pageYOffset + }, + document.title, + hash ? hash : window.location.href + ); + + }; + + /** + * Update the URL + * @param {Node} anchor The anchor that was scrolled to + * @param {Boolean} isNum If true, anchor is a number + * @param {Object} options Settings for Smooth Scroll + */ + var updateURL = function (anchor, isNum, options) { + + // Bail if the anchor is a number + if (isNum) return; + + // Verify that pushState is supported and the updateURL option is enabled + if (!history.pushState || !options.updateURL) return; + + // Update URL + history.pushState( + { + smoothScroll: JSON.stringify(options), + anchor: anchor.id + }, + document.title, + anchor === document.documentElement ? '#top' : '#' + anchor.id + ); + + }; + + /** + * Bring the anchored element into focus + * @param {Node} anchor The anchor element + * @param {Number} endLocation The end location to scroll to + * @param {Boolean} isNum If true, scroll is to a position rather than an element + */ + var adjustFocus = function (anchor, endLocation, isNum) { + + // Is scrolling to top of page, blur + if (anchor === 0) { + document.body.focus(); + } + + // Don't run if scrolling to a number on the page + if (isNum) return; + + // Otherwise, bring anchor element into focus + anchor.focus(); + if (document.activeElement !== anchor) { + anchor.setAttribute('tabindex', '-1'); + anchor.focus(); + anchor.style.outline = 'none'; + } + window.scrollTo(0 , endLocation); + + }; + + /** + * Emit a custom event + * @param {String} type The event type + * @param {Object} options The settings object + * @param {Node} anchor The anchor element + * @param {Node} toggle The toggle element + */ + var emitEvent = function (type, options, anchor, toggle) { + if (!options.emitEvents || typeof window.CustomEvent !== 'function') return; + var event = new CustomEvent(type, { + bubbles: true, + detail: { + anchor: anchor, + toggle: toggle + } + }); + document.dispatchEvent(event); + }; + + + // + // SmoothScroll Constructor + // + + var SmoothScroll = function (selector, options) { + + // + // Variables + // + + var smoothScroll = {}; // Object for public APIs + var settings, toggle, fixedHeader, animationInterval; + + + // + // Methods + // + + /** + * Cancel a scroll-in-progress + */ + smoothScroll.cancelScroll = function (noEvent) { + cancelAnimationFrame(animationInterval); + animationInterval = null; + if (noEvent) return; + emitEvent('scrollCancel', settings); + }; + + /** + * Start/stop the scrolling animation + * @param {Node|Number} anchor The element or position to scroll to + * @param {Element} toggle The element that toggled the scroll event + * @param {Object} options + */ + smoothScroll.animateScroll = function (anchor, toggle, options) { + + // Cancel any in progress scrolls + smoothScroll.cancelScroll(); + + // Local settings + var _settings = extend(settings || defaults, options || {}); // Merge user options with defaults + + // Selectors and variables + var isNum = Object.prototype.toString.call(anchor) === '[object Number]' ? true : false; + var anchorElem = isNum || !anchor.tagName ? null : anchor; + if (!isNum && !anchorElem) return; + var startLocation = window.pageYOffset; // Current location on the page + if (_settings.header && !fixedHeader) { + // Get the fixed header if not already set + fixedHeader = document.querySelector(_settings.header); + } + var headerHeight = getHeaderHeight(fixedHeader); + var endLocation = isNum ? anchor : getEndLocation(anchorElem, headerHeight, parseInt((typeof _settings.offset === 'function' ? _settings.offset(anchor, toggle) : _settings.offset), 10), _settings.clip); // Location to scroll to + var distance = endLocation - startLocation; // distance to travel + var documentHeight = getDocumentHeight(); + var timeLapsed = 0; + var speed = getSpeed(distance, _settings); + var start, percentage, position; + + /** + * Stop the scroll animation when it reaches its target (or the bottom/top of page) + * @param {Number} position Current position on the page + * @param {Number} endLocation Scroll to location + * @param {Number} animationInterval How much to scroll on this loop + */ + var stopAnimateScroll = function (position, endLocation) { + + // Get the current location + var currentLocation = window.pageYOffset; + + // Check if the end location has been reached yet (or we've hit the end of the document) + if (position == endLocation || currentLocation == endLocation || ((startLocation < endLocation && window.innerHeight + currentLocation) >= documentHeight)) { + + // Clear the animation timer + smoothScroll.cancelScroll(true); + + // Bring the anchored element into focus + adjustFocus(anchor, endLocation, isNum); + + // Emit a custom event + emitEvent('scrollStop', _settings, anchor, toggle); + + // Reset start + start = null; + animationInterval = null; + + return true; + + } + }; + + /** + * Loop scrolling animation + */ + var loopAnimateScroll = function (timestamp) { + if (!start) { start = timestamp; } + timeLapsed += timestamp - start; + percentage = speed === 0 ? 0 : (timeLapsed / speed); + percentage = (percentage > 1) ? 1 : percentage; + position = startLocation + (distance * easingPattern(_settings, percentage)); + window.scrollTo(0, Math.floor(position)); + if (!stopAnimateScroll(position, endLocation)) { + animationInterval = window.requestAnimationFrame(loopAnimateScroll); + start = timestamp; + } + }; + + /** + * Reset position to fix weird iOS bug + * @link https://github.com/cferdinandi/smooth-scroll/issues/45 + */ + if (window.pageYOffset === 0) { + window.scrollTo(0, 0); + } + + // Update the URL + updateURL(anchor, isNum, _settings); + + // If the user prefers reduced motion, jump to location + if (reduceMotion()) { + adjustFocus(anchor, Math.floor(endLocation), false); + return; + } + + // Emit a custom event + emitEvent('scrollStart', _settings, anchor, toggle); + + // Start scrolling animation + smoothScroll.cancelScroll(true); + window.requestAnimationFrame(loopAnimateScroll); + + }; + + /** + * If smooth scroll element clicked, animate scroll + */ + var clickHandler = function (event) { + + // Don't run if event was canceled but still bubbled up + // By @mgreter - https://github.com/cferdinandi/smooth-scroll/pull/462/ + if (event.defaultPrevented) return; + + // Don't run if right-click or command/control + click or shift + click + if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey) return; + + // Check if event.target has closest() method + // By @totegi - https://github.com/cferdinandi/smooth-scroll/pull/401/ + if (!('closest' in event.target)) return; + + // Check if a smooth scroll link was clicked + toggle = event.target.closest(selector); + if (!toggle || toggle.tagName.toLowerCase() !== 'a' || event.target.closest(settings.ignore)) return; + + // Only run if link is an anchor and points to the current page + if (toggle.hostname !== window.location.hostname || toggle.pathname !== window.location.pathname || !/#/.test(toggle.href)) return; + + // Get an escaped version of the hash + var hash; + try { + hash = escapeCharacters(decodeURIComponent(toggle.hash)); + } catch(e) { + hash = escapeCharacters(toggle.hash); + } + + // Get the anchored element + var anchor; + if (hash === '#') { + if (!settings.topOnEmptyHash) return; + anchor = document.documentElement; + } else { + anchor = document.querySelector(hash); + } + anchor = !anchor && hash === '#top' ? document.documentElement : anchor; + + // If anchored element exists, scroll to it + if (!anchor) return; + event.preventDefault(); + setHistory(settings); + smoothScroll.animateScroll(anchor, toggle); + + }; + + /** + * Animate scroll on popstate events + */ + var popstateHandler = function () { + + // Stop if history.state doesn't exist (ex. if clicking on a broken anchor link). + // fixes `Cannot read property 'smoothScroll' of null` error getting thrown. + if (history.state === null) return; + + // Only run if state is a popstate record for this instantiation + if (!history.state.smoothScroll || history.state.smoothScroll !== JSON.stringify(settings)) return; + + // Get the anchor + var anchor = history.state.anchor; + if (typeof anchor === 'string' && anchor) { + anchor = document.querySelector(escapeCharacters(history.state.anchor)); + if (!anchor) return; + } + + // Animate scroll to anchor link + smoothScroll.animateScroll(anchor, null, {updateURL: false}); + + }; + + /** + * Destroy the current initialization. + */ + smoothScroll.destroy = function () { + + // If plugin isn't already initialized, stop + if (!settings) return; + + // Remove event listeners + document.removeEventListener('click', clickHandler, false); + window.removeEventListener('popstate', popstateHandler, false); + + // Cancel any scrolls-in-progress + smoothScroll.cancelScroll(); + + // Reset variables + settings = null; + toggle = null; + fixedHeader = null; + animationInterval = null; + + }; + + /** + * Initialize Smooth Scroll + * @param {Object} options User settings + */ + var init = function () { + + // feature test + if (!supports()) throw 'Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.'; + + // Destroy any existing initializations + smoothScroll.destroy(); + + // Selectors and variables + settings = extend(defaults, options || {}); // Merge user options with defaults + fixedHeader = settings.header ? document.querySelector(settings.header) : null; // Get the fixed header + + // When a toggle is clicked, run the click handler + document.addEventListener('click', clickHandler, false); + + // If updateURL and popState are enabled, listen for pop events + if (settings.updateURL && settings.popstate) { + window.addEventListener('popstate', popstateHandler, false); + } + + }; + + + // + // Initialize plugin + // + + init(); + + + // + // Public APIs + // + + return smoothScroll; + + }; + + return SmoothScroll; + +}))); diff --git a/dist/smooth-scroll.polyfills.min.js b/dist/smooth-scroll.polyfills.min.js new file mode 100644 index 0000000..575a67b --- /dev/null +++ b/dist/smooth-scroll.polyfills.min.js @@ -0,0 +1,10 @@ +/*! SmoothScroll v16.1.4 | (c) 2020 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).SmoothScroll=t()}(this,(function(){"use strict";window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;--t>=0&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(), +/** + * requestAnimationFrame() polyfill + * By Erik Möller. Fixes from Paul Irish and Tino Zijdel. + * @link http://paulirish.com/2011/requestanimationframe-for-smart-animating/ + * @link http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating + * @license MIT + */ +function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n=1&&t<=31||127==t||0===i&&t>=48&&t<=57||1===i&&t>=48&&t<=57&&45===r?a+="\\"+t.toString(16)+" ":a+=t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(i):"\\"+n.charAt(i)}return"#"+a},o=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(e){return e?(t=e,parseInt(window.getComputedStyle(t).height,10)+e.offsetTop):0;var t},a=function(e,t,n){0===e&&document.body.focus(),n||(e.focus(),document.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),window.scrollTo(0,t))},r=function(e,t,n,o){if(t.emitEvents&&"function"==typeof window.CustomEvent){var i=new CustomEvent(e,{bubbles:!0,detail:{anchor:n,toggle:o}});document.dispatchEvent(i)}};return function(c,u){var s,l,d,m,f={};f.cancelScroll=function(e){cancelAnimationFrame(m),m=null,e||r("scrollCancel",s)},f.animateScroll=function(n,c,u){f.cancelScroll();var l=t(s||e,u||{}),w="[object Number]"===Object.prototype.toString.call(n),h=w||!n.tagName?null:n;if(w||h){var p=window.pageYOffset;l.header&&!d&&(d=document.querySelector(l.header));var g,y,v,S=i(d),E=w?n:function(e,t,n,i){var a=0;if(e.offsetParent)do{a+=e.offsetTop,e=e.offsetParent}while(e);return a=Math.max(a-t-n,0),i&&(a=Math.min(a,o()-window.innerHeight)),a}(h,S,parseInt("function"==typeof l.offset?l.offset(n,c):l.offset,10),l.clip),b=E-p,A=o(),O=0,C=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n1?1:y),window.scrollTo(0,Math.floor(v)),function(e,t){var o=window.pageYOffset;if(e==t||o==t||(p=A)return f.cancelScroll(!0),a(n,t,w),r("scrollStop",l,n,c),g=null,m=null,!0}(v,E)||(m=window.requestAnimationFrame(M),g=e)};0===window.pageYOffset&&window.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(n,w,l),"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches?a(n,Math.floor(E),!1):(r("scrollStart",l,n,c),f.cancelScroll(!0),window.requestAnimationFrame(M))}};var w=function(e){if(!e.defaultPrevented&&!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)&&"closest"in e.target&&(l=e.target.closest(c))&&"a"===l.tagName.toLowerCase()&&!e.target.closest(s.ignore)&&l.hostname===window.location.hostname&&l.pathname===window.location.pathname&&/#/.test(l.href)){var t,o;try{t=n(decodeURIComponent(l.hash))}catch(e){t=n(l.hash)}if("#"===t){if(!s.topOnEmptyHash)return;o=document.documentElement}else o=document.querySelector(t);(o=o||"#top"!==t?o:document.documentElement)&&(e.preventDefault(),function(e){if(history.replaceState&&e.updateURL&&!history.state){var t=window.location.hash;t=t||"",history.replaceState({smoothScroll:JSON.stringify(e),anchor:t||window.pageYOffset},document.title,t||window.location.href)}}(s),f.animateScroll(o,l))}},h=function(){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(s)){var e=history.state.anchor;"string"==typeof e&&e&&!(e=document.querySelector(n(history.state.anchor)))||f.animateScroll(e,null,{updateURL:!1})}};f.destroy=function(){s&&(document.removeEventListener("click",w,!1),window.removeEventListener("popstate",h,!1),f.cancelScroll(),s=null,l=null,d=null,m=null)};return function(){if(!("querySelector"in document&&"addEventListener"in window&&"requestAnimationFrame"in window&&"closest"in window.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";f.destroy(),s=t(e,u||{}),d=s.header?document.querySelector(s.header):null,document.addEventListener("click",w,!1),s.updateURL&&s.popstate&&window.addEventListener("popstate",h,!1)}(),f}})); diff --git a/docs/assets/css/custom.css b/docs/assets/css/custom.css deleted file mode 100755 index dbe16cd..0000000 --- a/docs/assets/css/custom.css +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Typography - */ - -body { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -} - -h1, h2, h3, h4, h5, h6 { - font-weight: bold; -} - - -/** - * Background color - */ - -@media (min-width: 40em) { - body { - background-image: -webkit-linear-gradient(left, #f7f7f7 0%, #f7f7f7 25%, transparent 25%, transparent 100%); - background-image: linear-gradient(to right, #f7f7f7 0, #f7f7f7 25%, transparent 25%, transparent 100%); - } -} - - -/** - * Navigation - */ - -@media (max-width: 40em) { - .list-nav { - margin-left: -0.25em; - margin-right: -0.25em; - padding: 0; - } - - .list-nav > li { - display: inline-block; - margin-left: 0.25em; - margin-right: 0.25em; - } - - .list-nav > li:before { - content: "\00b7"; - margin-right: 0.5em; - } - - .list-nav > li:first-child:before { - content: ""; - margin-right: 0; - } -} - -@media (max-width: 40em) { - .nav { - border-bottom: 1px solid #e5e5e5; - } -} - -.nav-section a.active { - color: #808080; -} - -/* Disable current page nav */ -a.nav-active { - pointer-events: none; - color: #808080; - cursor: not-allowed; -} - -/* Sticky nav */ -@media (min-width: 40em) { - .sticky-header { - background-color: #f7f7f7; - bottom: 0; - overflow-y: auto; - position: fixed; - top: 0; - width: 22.2%; - } - - .sticky-body { - margin-left: 27.8%; - } -} - -@media (min-width: 80em) { - .sticky-header { - width: 17.75em; - } -} - - -/** - * Buttons - */ - -.btn { - background-color: #f7272f; - border-color: #f7272f; -} - -a.btn:active, -a.btn:focus, -a.btn:hover { - background-color: #cb070e; - border-color: #cb070e; -} - - - -/** - * Prism - * Code syntax highlighting by Lea Verou. - * http://prismjs.com/ - */ - -@media screen { - - .token.comment, - .token.prolog, - .token.doctype, - .token.cdata { - color: slategray; - } - - .token.punctuation { - color: #999; - } - - .token.property, - .token.tag, - .token.boolean, - .token.number, - .token.constant, - .token.symbol { - color: #905; - } - - .token.selector, - .token.attr-name, - .token.string, - .token.builtin { - color: #690; - } - - .token.operator, - .token.entity, - .token.url, - .language-css .token.string, - .style .token.string, - .token.variable { - color: #a67f59; - } - - .token.atrule, - .token.attr-value, - .token.keyword { - color: #07a; - } - - - .token.regex, - .token.important { - color: #e90; - } - - .token.important { - font-weight: bold; - } - - .token.entity { - cursor: help; - } - -} \ No newline at end of file diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css deleted file mode 100755 index 7e5a18f..0000000 --- a/docs/assets/css/main.css +++ /dev/null @@ -1,1559 +0,0 @@ -/*! - * Kraken v7.5.2: A lightweight front-end boilerplate - * (c) 2017 Chris Ferdinandi - * MIT License - * http://github.com/cferdinandi/kraken - */ - -/** - * @section Normalize.css - * Normalize.css base with custom code. - * Additional normalize styles incorporated throughout components. - * @link http://necolas.github.io/normalize.css/ - */ -/** - * Mobile screen resizing - * @link http://dev.w3.org/csswg/css-device-adapt/ - */ -@-webkit-viewport { - width: device-width; - zoom: 1.0; -} - -@-moz-viewport { - width: device-width; - zoom: 1.0; -} - -@-ms-viewport { - width: device-width; - zoom: 1.0; -} - -@-o-viewport { - width: device-width; - zoom: 1.0; -} - -@viewport { - width: device-width; - zoom: 1.0; -} - -/** - * Remove the tap delay in webkit - * @link https://medium.com/@adactio/delay-a9df9edceef3#.7dmbl3xow - */ -/* line 23, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -a, .link-block-styled, -button, -input, -select, -textarea, -label, -summary { - -ms-touch-action: manipulation; - touch-action: manipulation; -} - -/** - * Add box sizing to everything - * @link http://www.paulirish.com/2012/box-sizing-border-box-ftw/ - */ -/* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -*, -*:before, -*:after { - box-sizing: border-box; -} - -/** - * 1. Set default font family to default. - * 2. Force scrollbar display to prevent jumping on pages. - * 3. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - */ -/* line 51, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -html { - font-family: "Helvetica Neue", Arial, sans-serif; - /* 1 */ - overflow-y: scroll; - /* 2 */ - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - text-size-adjust: 100%; - /* 3 */ -} - -/** - * Remove default margin. - */ -/* line 60, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -body { - margin: 0; -} - -/** - * Correct `block` display not defined for any HTML5 element in IE 8/9. - * Correct `block` display not defined for `details` in IE 10/11 - * and Firefox. - * Correct `block` display not defined for `main` in IE 11. - */ -/* line 70, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -article, -aside, -cite, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -menu, -nav, -section { - display: block; -} - -/* - * Add the correct display in all browsers. - */ -/* line 89, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -summary { - display: list-item; -} - -/** - * Correct `inline-block` display not defined in IE 8/9. - */ -/* line 96, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -audio, -canvas, -progress, -video { - display: inline-block; - /* 1 */ -} - -/** - * Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. - */ -/* line 106, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -progress { - vertical-align: baseline; -} - -/** - * Prevent modern browsers from displaying `audio` without controls. - * Remove excess height in iOS 5 devices. - */ -/* line 114, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Prevent img and video elements from spilling outside of the page on smaller screens. - */ -/* line 122, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -img, -video { - max-width: 100%; - height: auto; -} - -/** - * Prevent iframe, object, and embed elements from spilling outside of the page on smaller screens. - * height: auto causes iframes to smush, so it's omitted here. - */ -/* line 132, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -iframe, -object, -embed { - max-width: 100%; -} - -/** - * Hide the template element in IE, Safari, and Firefox < 22. - */ -/** - * 1. Remove border when inside `a` element in IE 8/9/10. - * 2. Prevents IE from making scaled images look like crap - */ -/* line 149, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -img { - border: 0; - /* 1 */ - -ms-interpolation-mode: bicubic; - /* 2 */ -} - -/** - * Correct overflow not hidden in IE 9/10/11. - */ -/* line 157, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -svg:not(:root) { - overflow: hidden; -} - -/** - * Address inconsistent margin. - */ -/* line 164, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -figure { - margin: 0; -} - -/** - * @workaround Remove focus from
element when using tabindex="-1" hack for skipnav link - * @link https://code.google.com/p/chromium/issues/detail?id=37721 - */ -/* line 172, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -.tabindex:focus { - outline: none; -} - -/** - * @section Grid - * Structure and layout - */ -/** - * Base grid styles: single column - */ -/* line 9, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.container { - margin-left: auto; - margin-right: auto; - max-width: 80em; - width: 88%; -} - -/* line 16, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.row { - margin-left: -1.4%; - margin-right: -1.4%; -} - -/* line 21, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.grid-fourth, .grid-third, .grid-half, .grid-two-thirds, .grid-three-fourths, .grid-full, .grid-dynamic { - float: left; - padding-left: 1.4%; - padding-right: 1.4%; - width: 100%; -} - -/** - * Reverses order of grid for content choreography - */ -/* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.grid-flip { - float: right; -} - -/** - * Add columns to grid on bigger screens - */ -@media (min-width: 20em) { - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-fourth { - width: 25%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-third { - width: 33.33333%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-half { - width: 50%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-two-thirds { - width: 66.66667%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-three-fourths { - width: 75%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-full { - width: 100%; - } -} - -@media (min-width: 30em) { - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-fourth { - width: 25%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-third { - width: 33.33333%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-half { - width: 50%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-two-thirds { - width: 66.66667%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-three-fourths { - width: 75%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-full { - width: 100%; - } -} - -@media (min-width: 40em) { - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-fourth { - width: 25%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-third { - width: 33.33333%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-half { - width: 50%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-two-thirds { - width: 66.66667%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-three-fourths { - width: 75%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-full { - width: 100%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-fourth { - margin-left: 25%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-third { - margin-left: 33.33333%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-half { - margin-left: 50%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-two-thirds { - margin-left: 66.66667%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-three-fourths { - margin-left: 75%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-full { - margin-left: 100%; - } -} - -/** - * Dynamic grid - */ -@media (min-width: 20em) { - /* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-dynamic { - width: 50%; - } -} - -@media (min-width: 30em) { - /* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-dynamic { - width: 33.33333%; - } -} - -@media (min-width: 40em) { - /* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-dynamic { - width: 25%; - } -} - -/** - * @section Typography - * Sets font styles for entire site - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -body { - background: #ffffff; - color: #272727; - font-family: "Helvetica Neue", Arial, sans-serif; - font-size: 100%; - line-height: 1.5; -} - -@media (min-width: 40em) { - /* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ - body { - line-height: 1.5625; - } -} - -/* line 18, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -p { - margin: 0 0 1.5625em; -} - -/** - * Hyperlink styling - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ -/* line 29, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a, .link-block-styled { - background-color: transparent; - /* 1 */ - color: #0088cc; - text-decoration: none; - word-wrap: break-word; - -webkit-text-decoration-skip: objects; - /* 2 */ - /** - * Improve readability when focused and also mouse hovered in all browsers. - */ -} - -/* line 39, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a:active, .link-block-styled:active, a:hover, .link-block-styled:hover, .link-block:hover .link-block-styled { - outline: 0; -} - -/* line 44, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a:active, .link-block-styled:active, a:focus, .link-block-styled:focus, a:hover, .link-block-styled:hover, .link-block:hover .link-block-styled { - color: #005580; - text-decoration: underline; -} - -/** - * Creates block-level links - */ -/* line 57, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a.link-block, .link-block.link-block-styled { - color: #272727; - display: block; - text-decoration: none; -} - -/** - * List styling - */ -/* line 76, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -ul, -ol { - margin: 0 0 1.5625em 2em; - padding: 0; -} - -/* line 82, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -ul ul, -ul ol, -ol ol, -ol ul { - margin-bottom: 0; -} - -/* line 89, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dl, -dd { - margin: 0; - padding: 0; -} - -/* line 95, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dd { - margin-bottom: 1.5625em; -} - -/* line 99, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dt { - font-weight: bold; -} - -/** - * Removes list styling. - * For semantic reasons, should only be used on unordered lists. - */ -/* line 107, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -.list-unstyled { - margin-left: 0; - list-style: none; -} - -/** - * Display lists on a single line. - */ -/* line 116, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -.list-inline { - list-style: none; - margin-left: -0.5em; - margin-right: -0.5em; - padding: 0; -} - -/* line 123, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -.list-inline > li { - display: inline; - margin-left: 0.5em; - margin-right: 0.5em; -} - -/** - * Heading styling for h1 through h6 elements. - * Heading class lets you use one heading type for semantics, but style it as another heading type. - */ -/* line 135, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h1, h2, h3, h4, h5, h6 { - font-weight: normal; - line-height: 1.2; - margin: 0 0 1em; - padding: 1em 0 0; - word-wrap: break-word; -} - -/* line 143, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h1, -.h1 { - font-size: 1.5em; - padding-top: .5em; -} - -@media (min-width: 40em) { - /* line 143, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ - h1, - .h1 { - font-size: 1.75em; - } -} - -/* line 153, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h2, -.h2 { - font-size: 1.3125em; -} - -/* line 158, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h3, -.h3 { - font-size: 1.1875em; -} - -/* line 163, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h4, h5, h6, -.h4, .h5, .h6 { - font-size: 1em; -} - -/* line 168, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h4, -.h4 { - text-transform: uppercase; -} - -/** - * Lines, Quotes and Emphasis - */ -/* line 178, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -hr { - border: 0; - border-top: 1px solid #e5e5e5; - border-bottom: 0 solid #ffffff; - box-sizing: content-box; - margin: 2em auto; - overflow: visible; -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ -/* line 190, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ -/* line 198, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -b, -strong { - font-weight: bolder; -} - -/** - * 1. Remove the bottom border in Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ -/* line 207, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -abbr[title] { - border-bottom: none; - /* 1 */ - text-decoration: underline; - /* 2 */ - text-decoration: underline dotted; - /* 2 */ -} - -/** - * Address styling not present in Safari and Chrome. - */ -/* line 216, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dfn { - font-style: italic; -} - -/** - * Address styling not present in IE 8/9. - */ -/* line 223, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -mark { - background: #ff0; - color: #000000; -} - -/** - * Address inconsistent and variable font size in all browsers. - */ -/* line 231, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` affecting `line-height` in all browsers. - */ -/* line 238, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -/* line 246, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -sup { - top: -0.5em; -} - -/* line 250, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -sub { - bottom: -0.25em; -} - -/** - * Blockquotes - */ -/* line 259, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote { - font-size: 1.1875em; - font-style: italic; - margin: 0 0 1.5625em; - padding-left: 0.84211em; - padding-right: 0.84211em; -} - -/* line 266, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote cite { - color: #808080; - font-size: 0.84211em; - padding-top: 1em; -} - -/* line 273, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote, -q { - quotes: none; -} - -/* line 278, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ''; -} - -/** - * @section Code - * Styling for code and preformatted text. - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -code, -kbd, -pre, -samp { - border-radius: 1px; - font-family: Menlo, Monaco, "Courier New", monospace; - font-size: 0.875em; -} - -/* line 15, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -code { - background-color: #f7f7f7; - color: #dd1144; - padding: 0.25em; - word-wrap: break-word; -} - -/* line 22, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -pre { - background-color: #f4f4f4; - display: block; - line-height: 1.5; - margin-bottom: 1.5625em; - overflow: auto; - padding: 0.8125em; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - white-space: pre-wrap; - word-break: break-all; -} - -/* line 33, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -pre code { - background-color: transparent; - border: 0; - color: inherit; - font-size: 1em; - padding: 0; -} - -/** - * @section Buttons - * Styling for CSS buttons. - */ -/** - * Primary buttons - */ -/* line 10, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn { - background-color: #0088cc; - border: 1px solid #0088cc; - border-radius: 1px; - color: #ffffff; - display: inline-block; - font-size: 0.9375em; - font-weight: normal; - line-height: 1.2; - margin-right: 0.3125em; - margin-bottom: 0.3125em; - padding: 0.5em 0.6875em; -} - -/* line 23, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn:hover, -a .btn:hover, .link-block-styled .btn:hover, .btn:focus, -a .btn:focus, .link-block-styled .btn:focus, .btn:active, -a .btn:active, .link-block-styled .btn:active, .btn.active { - background-color: #005580; - border-color: #005580; - color: #ffffff; - text-decoration: none; -} - -/** - * Secondary buttons - */ -/* line 41, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-secondary { - background-color: #808080; - border-color: #808080; -} - -/* line 45, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-secondary:hover, -a .btn-secondary:hover, .link-block-styled .btn-secondary:hover, .btn-secondary:focus, -a .btn-secondary:focus, .link-block-styled .btn-secondary:focus, .btn-secondary:active, -a .btn-secondary:active, .link-block-styled .btn-secondary:active, .btn-secondary.active { - background-color: #5a5a5a; - border-color: #5a5a5a; -} - -/** - * Active state - */ -/* line 61, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn:active, -.btn.active { - box-shadow: inset 0 0.15625em 0.25em rgba(0, 0, 0, 0.15), 0 1px 0.15625em rgba(0, 0, 0, 0.05); - outline: 0; -} - -/** - * Disabled state - */ -/* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn.disabled, -.btn[disabled] { - box-shadow: none; - cursor: not-allowed; - opacity: 0.5; - pointer-events: none; -} - -/** - * Button size - */ -/* line 83, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-large { - font-size: 1em; - line-height: normal; - padding: 0.6875em 0.9375em; -} - -/** - * Block-level buttons - */ -/* line 93, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-block, -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - display: block; - margin-right: 0; - padding-right: 0; - padding-left: 0; - width: 100%; -} - -/** - * General styles - */ -/* line 108, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn, -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - cursor: pointer; - text-align: center; - vertical-align: middle; - /** - * @workaround Override default button styling - * @affected Webkit/Firefox - */ - -webkit-appearance: none; -} - -/** - * Remove right margin on last element and inputs - */ -/* line 129, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn:last-child, -input.btn { - margin-right: 0; -} - -/** - * @section Forms - * Styling for form elements. - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -form, -fieldset { - margin-bottom: 1.5625em; -} - -/* line 11, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -fieldset { - border: 0; - padding: 0; -} - -/* line 16, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -legend, -label { - display: block; - font-weight: normal; - margin: 0 0 0.3125em; - padding: 0; -} - -/** - * 1. Correct color not being inherited. - * Known issue: affects color of disabled elements. - * 2. Correct font properties not being inherited. - * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. - */ -/* line 30, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button, -input, -optgroup, -select, -textarea { - color: #555555; - /* 1 */ - font: inherit; - /* 2 */ - margin: 0; - /* 3 */ - padding: 0.3125em; -} - -/** - * Address `overflow` set to `hidden` in IE 8/9/10/11. - */ -/* line 44, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button { - overflow: visible; -} - -/** - * Address inconsistent `text-transform` inheritance for `button` and `select`. - * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. - * Correct `select` style inheritance in Firefox. - */ -/* line 54, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button, -select { - text-transform: none; -} - -/* line 59, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -input, -textarea, -select { - border: 1px solid #b8b8b8; - border-radius: 1px; - display: block; - line-height: 1.5; - margin-bottom: 1.1875em; - width: 100%; -} - -@media (min-width: 40em) { - /* line 59, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ - input, - textarea, - select { - line-height: 1.5625; - } -} - -/** - * Don't inherit the `font-weight` (applied by a rule above). - * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. - */ -/* line 78, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -optgroup { - font-weight: bold; -} - -/* line 82, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -form button, -form .button { - margin-bottom: 1.1875em; -} - -/* line 87, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -textarea { - height: 12em; - overflow: auto; -} - -/* line 92, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="image"], -[type="checkbox"], -[type="radio"] { - cursor: pointer; - display: inline-block; - height: auto; - margin-bottom: 0.3125em; - padding: 0; - width: auto; -} - -/** - * Fix the cursor style for Chrome's increment/decrement buttons. For certain - * `font-size` values of the `input`, it causes the cursor style of the - * decrement button to change from `default` to `text`. - */ -/* line 108, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/* line 113, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -input:focus, -textarea:focus { - border-color: rgba(82, 168, 236, 0.8); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0.5em rgba(82, 168, 236, 0.6); - outline: 0; - outline: thin dotted \9; -} - -/* line 121, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="file"]:focus, -[type="checkbox"]:focus, -select:focus { - outline: thin dotted; - outline: 0.3125em auto -webkit-focus-ring-color; - outline-offset: -0.125em; -} - -/** - * Remove the inner border and padding in Firefox. - */ -/* line 133, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ -/* line 145, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ -/* line 157, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -::-webkit-file-upload-button { - -webkit-appearance: button; - /* 1 */ - font: inherit; - /* 2 */ -} - -/** - * Inline inputs - */ -/* line 166, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.input-inline { - display: inline-block; - vertical-align: middle; - width: auto; -} - -/** - * Condensed inputs - */ -/* line 176, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.input-condensed { - padding: 1px 0.3125em; - font-size: 0.9375em; -} - -/** - * Search - */ -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ -/* line 191, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="search"] { - -webkit-appearance: textfield; - /* 1 */ - outline-offset: -2px; - /* 2 */ -} - -/** - * Remove inner padding and search cancel button in Safari and Chrome on OS X. - * Safari (but not Chrome) clips the cancel button when the search input has - * padding (and `textfield` appearance). - */ -/* line 201, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * Create rounded search bar - */ -/* line 210, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.input-search { - width: 85%; - padding-left: 0.9375em; - padding-right: 2.5em; - border-radius: 1.3125em; - transition: width 300ms ease-in; -} - -@media (min-width: 40em) { - /* line 210, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ - .input-search { - width: 65%; - } -} - -/** - * Special styling for search icon as button - */ -/* line 226, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search { - display: inline; - color: #808080; - border: none; - background: none; - margin-left: -2.5em; - margin-bottom: 0; -} - -/* line 234, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search .icon { - fill: #808080; -} - -/* line 238, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search:hover { - color: #5a5a5a; -} - -/* line 241, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search:hover .icon { - fill: #5a5a5a; -} - -/** - * @section SVGs - * SVG icon sprite styling. - * @link http://css-tricks.com/svg-sprites-use-better-icon-fonts/ - * @link http://css-tricks.com/svg-use-external-source/ - */ -/** - * Basic styles - * Only displayed when SVGs are supported to avoid large empty spaces - */ -/* line 12, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_svg.scss */ -.icon { - display: inline-block; - fill: currentColor; - height: 0; - width: 0; -} - -/* line 18, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_svg.scss */ -.svg .icon { - height: 1em; - width: 1em; -} - -/** - * Hide fallback text if browser supports SVG - */ -/** - * @section Tables - * Styling for tables - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -table { - border-collapse: collapse; - border-spacing: 0; - margin-bottom: 1.5625em; - max-width: 100%; - width: 100%; -} - -/* line 14, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -th, -td { - text-align: left; - padding: 0.5em; -} - -/* line 20, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -th { - border-bottom: 0.125em solid #e5e5e5; - font-weight: bold; - vertical-align: bottom; -} - -/* line 27, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -td { - border-top: 1px solid #e5e5e5; - vertical-align: top; -} - -/** - * Adds zebra striping - */ -/* line 35, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -.table-striped tbody tr:nth-child(odd) { - background-color: #f7f7f7; -} - -/** - * Reduces padding on condensed tables - */ -/* line 43, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -.table-condensed th, -.table-condensed td { - padding: 0.25em; -} - -/** - * Pure CSS responsive tables - * Adds label to each cell using the [data-label] attribute - * @link https://techblog.livingsocial.com/blog/2015/04/06/responsive-tables-in-pure-css/ - */ -@media (max-width: 40em) { - /* line 57, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive thead { - display: none; - visibility: hidden; - } - /* line 62, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive tr { - border-top: 1px solid #ededed; - display: block; - padding: 0.5em; - } - /* line 68, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive td { - border: 0; - display: block; - padding: 0.25em; - } - /* line 73, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive td:before { - content: attr(data-label); - display: block; - font-weight: bold; - } -} - -/** - * @section Overrides - * Nudge and tweak alignment, spacing, and visibility. - */ -/** - * Text sizes - */ -/* line 11, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-small { - font-size: 0.9375em; -} - -/* line 15, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-large { - font-size: 1.1875em; - line-height: 1.4; -} - -@media (min-width: 40em) { - /* line 15, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ - .text-large { - font-size: 1.3125em; - } -} - -/** - * Text colors - */ -/* line 29, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-muted { - color: #808080; -} - -/** - * Text alignment - */ -/* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-center { - text-align: center; -} - -/* line 42, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-right { - text-align: right; -} - -/* line 46, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-left { - text-align: left; -} - -@media (min-width: 40em) { - /* line 51, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ - .text-right-medium { - text-align: right; - } -} - -/** - * Floats - */ -/* line 61, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.float-left { - float: left; -} - -/* line 65, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.float-center { - float: none; - margin-left: auto; - margin-right: auto; -} - -/* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.float-right { - float: right; -} - -/** - * Margins - */ -/* line 80, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-margin-top { - margin-top: 0; -} - -/* line 84, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-margin-bottom { - margin-bottom: 0; -} - -/* line 88, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-top { - margin-top: 1.5625em; -} - -/* line 92, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-bottom { - margin-bottom: 1.5625em; -} - -/* line 96, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-bottom-small { - margin-bottom: 0.5em; -} - -/* line 100, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-bottom-large { - margin-bottom: 2em; -} - -/** - * Padding - */ -/* line 109, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-padding-top { - padding-top: 0; -} - -/* line 113, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-padding-bottom { - padding-bottom: 0; -} - -/* line 117, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-top { - padding-top: 1.5625em; -} - -/* line 121, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-top-small { - padding-top: 0.5em; -} - -/* line 125, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-top-large { - padding-top: 2em; -} - -/* line 129, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-bottom { - padding-bottom: 1.5625em; -} - -/* line 133, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-bottom-small { - padding-bottom: 0.5em; -} - -/* line 137, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-bottom-large { - padding-bottom: 2em; -} - -/** - * Visibility - */ -/** - * Visually hide an element, but leave it available for screen readers - * @link https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/main.css - * @link http://snook.ca/archives/html_and_css/hiding-content-for-accessibility - */ -/* line 151, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.screen-reader, .svg .icon-fallback-text { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - white-space: nowrap; - width: 1px; -} - -/** - * Extends the .screen-reader class to allow the element to be focusable when navigated to via the keyboard - * @link https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/main.css - * @link https://www.drupal.org/node/897638 - */ -/* line 168, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.screen-reader-focusable:active, -.screen-reader-focusable:focus { - clip: auto; - height: auto; - margin: 0; - overflow: visible; - position: static; - white-space: normal; - width: auto; -} - -/** - * @workaround - * @affected IE 8/9/10 - * @link http://juicystudio.com/article/screen-readers-display-none.php - */ -/* line 184, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -[hidden], template { - display: none; - visibility: hidden; -} - -/** - * Contain floats - * The space content is one way to avoid an Opera bug when the `contenteditable` attribute is included anywhere else in the document. - * @link https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/main.css - */ -/* line 196, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.clearfix:before, .container:before, -.row:before, -.clearfix:after, -.container:after, -.row:after { - display: table; - content: " "; -} - -/* line 202, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.clearfix:after, .container:after, -.row:after { - clear: both; -} - -/** - * @section Print - * Styling for printed content. Adapted from HTML5BP. - * @link http://html5boilerplate.com - */ -@media print { - /** - * Universal selector. - * Reset all content to transparent background, black color, and remove box and text shadows. - */ - /* line 13, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - * { - background: transparent !important; - color: #000 !important; - box-shadow: none !important; - text-shadow: none !important; - } - /** - * Specifies page margin - */ - @page { - margin: 0.5cm; - } - /** - * Underline all links - */ - /* line 30, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - a, .link-block-styled, - a:visited, - .link-block-styled:visited { - text-decoration: underline; - } - /** - * Show URL after links - */ - /* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - a[href]:after, [href].link-block-styled:after { - content: " (" attr(href) ")"; - } - /** - * Don't show URL for internal links - */ - /* line 45, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - a[href^="#"]:after, [href^="#"].link-block-styled:after { - content: ""; - } - /** - * Specifies the minimum number of lines to print at the top and bottom of a page. - */ - /* line 52, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - p, - h1, h2, h3 { - orphans: 3; - widows: 3; - } - /** - * Avoid inserting a page break after headers - */ - /* line 61, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - h1, h2, h3 { - page-break-after: avoid; - } - /** - * Change border color on blockquotes and preformatted text. - * Avoid page breaks inside the content - */ - /* line 69, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - pre, - blockquote { - border-color: #999; - page-break-inside: avoid; - } - /** - * Displayed as a table header row group - */ - /* line 78, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - thead { - display: table-header-group; - } - /** - * Avoid inserting a page break inside table rows and images - */ - /* line 85, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - tr, - img { - page-break-inside: avoid; - } -} diff --git a/docs/assets/img/favicon.ico b/docs/assets/img/favicon.ico deleted file mode 100755 index 9c98897..0000000 Binary files a/docs/assets/img/favicon.ico and /dev/null differ diff --git a/docs/assets/js/gumshoe.min.js b/docs/assets/js/gumshoe.min.js deleted file mode 100755 index 266bcc3..0000000 --- a/docs/assets/js/gumshoe.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! gumshoe v3.1.2 | (c) 2016 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/gumshoe */ -!function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.gumshoe=t(e)}("undefined"!=typeof global?global:this.window||this.global,function(e){"use strict";var t,n,o,r,a,c,i={},s="querySelector"in document&&"addEventListener"in e&&"classList"in document.createElement("_"),l=[],u={selector:"[data-gumshoe] a",selectorHeader:"[data-gumshoe-header]",offset:0,activeClass:"active",callback:function(){}},f=function(e,t,n){if("[object Object]"===Object.prototype.toString.call(e))for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(n,e[o],o,e);else for(var r=0,a=e.length;a>r;r++)t.call(n,e[r],r,e)},d=function(){var e={},t=!1,n=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var r=function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t&&"[object Object]"===Object.prototype.toString.call(n[o])?e[o]=d(!0,e[o],n[o]):e[o]=n[o])};o>n;n++){var a=arguments[n];r(a)}return e},v=function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},m=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},g=function(e){var n=0;if(e.offsetParent){do n+=e.offsetTop,e=e.offsetParent;while(e)}else n=e.offsetTop;return n=n-a-t.offset,n>=0?n:0},h=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},p=function(){l.sort(function(e,t){return e.distance>t.distance?-1:e.distance=o&&h(l[0].target))return H(l[0]),l[0];for(var r=0,a=l.length;a>r;r++){var c=l[r];if(c.distance<=n)return H(c),c}y(),t.callback()};var C=function(){f(l,function(e){e.nav.classList.contains(t.activeClass)&&(c={nav:e.nav,parent:e.parent})})};i.destroy=function(){t&&(e.removeEventListener("resize",L,!1),e.removeEventListener("scroll",L,!1),l=[],t=null,n=null,o=null,r=null,a=null,c=null)};var L=function(e){n||(n=setTimeout(function(){n=null,"scroll"===e.type&&i.getCurrentNav(),"resize"===e.type&&(i.setDistances(),i.getCurrentNav())},66))};return i.init=function(n){s&&(i.destroy(),t=d(u,n||{}),r=document.querySelector(t.selectorHeader),b(),0!==l.length&&(C(),i.setDistances(),i.getCurrentNav(),e.addEventListener("resize",L,!1),e.addEventListener("scroll",L,!1)))},i}); \ No newline at end of file diff --git a/docs/assets/js/highlight-active-nav.js b/docs/assets/js/highlight-active-nav.js deleted file mode 100755 index 4aa4981..0000000 --- a/docs/assets/js/highlight-active-nav.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * highlight-active-nav.js - * @description Highlight the active navigation element - * @version 1.0.0 - * @author Chris Ferdinandi - * @license MIT - */ - -(function (root, factory) { - if ( typeof define === 'function' && define.amd ) { - define([], factory(root)); - } else if ( typeof exports === 'object' ) { - module.exports = factory(root); - } else { - root.highlightActiveNav = factory(root); - } -})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) { - - 'use strict'; - - // - // Variables - // - - var highlight = {}; // Object for public APIs - var supports = !!document.querySelector && !!root.addEventListener; // Feature test - var settings; - - // Default settings - var defaults = { - selector: '[data-nav-highlight]', - activeClass: 'nav-active', - urlPrefix: null, - callback: function () {} - }; - - - // - // Methods - // - - /** - * Merge defaults with user options - * @private - * @param {Object} defaults Default settings - * @param {Object} options User options - * @returns {Object} Merged values of defaults and options - */ - var extend = function () { - - // Variables - var extended = {}; - var deep = false; - var i = 0; - var length = arguments.length; - - // Check if a deep merge - if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { - deep = arguments[0]; - i++; - } - - // Merge the object into the extended object - var merge = function (obj) { - for ( var prop in obj ) { - if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { - // If deep merge and property is an object, merge properties - if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { - extended[prop] = extend( true, extended[prop], obj[prop] ); - } else { - extended[prop] = obj[prop]; - } - } - } - }; - - // Loop through each object and conduct a merge - for ( ; i < length; i++ ) { - var obj = arguments[i]; - merge(obj); - } - - return extended; - - }; - - /** - * Destroy the current initialization. - * @public - */ - highlight.destroy = function () { - if ( !settings ) return; - document.documentElement.classList.remove( settings.initClass ); - settings = null; - container = null; - }; - - /** - * Initialize highlightActiveNav - * @public - * @param {Object} options User settings - */ - highlight.init = function ( options ) { - - // feature test - if ( !supports ) return; - - // Destroy any existing initializations - highlight.destroy(); - - // Merge user options with defaults - settings = extend( defaults, options || {} ); - - // Get the container - var href = settings.urlPrefix ? location.pathname.split( settings.urlPrefix )[1] : location.pathname; - var nav = document.querySelector( settings.selector + ' a[href^="' + href + '"]' ); - if ( !nav ) return; - - // Add class to active nav - nav.className += ' ' + settings.activeClass; - - // Run callback - settings.callback(); - - }; - - - // - // Public APIs - // - - return highlight; - -}); \ No newline at end of file diff --git a/docs/assets/js/houdini.min.js b/docs/assets/js/houdini.min.js deleted file mode 100644 index 2f1b226..0000000 --- a/docs/assets/js/houdini.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Houdini v9.4.0 | (c) 2017 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/houdini */ -!(function(t,e){"function"==typeof define&&define.amd?define([],e(t)):"object"==typeof exports?module.exports=e(t):t.houdini=e(t)})("undefined"!=typeof global?global:this.window||this.global,(function(t){"use strict";var e,o,n={},c="querySelector"in document&&"addEventListener"in t&&"classList"in document.createElement("_"),a={selectorToggle:"[data-collapse]",selectorContent:".collapse",toggleActiveClass:"active",contentActiveClass:"active",initClass:"js-houdini",stopVideo:!0,callbackOpen:function(){},callbackClose:function(){}},i=function(t,e,o){if("[object Object]"===Object.prototype.toString.call(t))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(o,t[n],n,t);else for(var c=0,a=t.length;c=0&&e.item(o)!==this;);return o>-1});t&&t!==document;t=t.parentNode)if(t.matches(e))return t;return null},l=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,o=String(t),n=o.length,c=-1,a="",i=o.charCodeAt(0);++c=1&&e<=31||127==e||0===c&&e>=48&&e<=57||1===c&&e>=48&&e<=57&&45===i?a+="\\"+e.toString(16)+" ":a+=e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?o.charAt(c):"\\"+o.charAt(c)}return"#"+a},u=function(t,e){if(e.stopVideo&&t.classList.contains(e.contentActiveClass)){var o=t.querySelector("iframe"),n=t.querySelector("video");if(o){var c=o.src;o.src=c}n&&n.pause()}},d=function(e,o){if(!e.hasAttribute("data-houdini-no-focus")){if(!e.classList.contains(o.contentActiveClass))return void(e.hasAttribute("data-houdini-focused")&&e.removeAttribute("tabindex"));var n={x:t.pageXOffset,y:t.pageYOffset};e.focus(),document.activeElement.id!==e.id&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-houdini-focused",!0),e.focus()),t.scrollTo(n.x,n.y)}};n.closeContent=function(t,o,n){var c=r(e||a,n||{}),i=document.querySelector(l(t));i&&(u(i,c),o&&o.classList.remove(c.toggleActiveClass),i.classList.remove(c.contentActiveClass),d(i,c),e.callbackClose(i,o))},n.openContent=function(t,o,c){var s=r(e||a,c||{}),u=document.querySelector(l(t)),f=o&&o.hasAttribute("data-group")?document.querySelectorAll('[data-group="'+o.getAttribute("data-group")+'"]'):[];u&&(i(f,(function(t){n.closeContent(t.hash,t)})),o&&o.classList.add(s.toggleActiveClass),u.classList.add(s.contentActiveClass),d(u,s),u.removeAttribute("data-houdini-no-focus"),s.callbackOpen(u,o))};var f=function(c){var a=t.location.hash;if(o&&(o.id=o.getAttribute("data-collapse-id"),o=null),a){var i=document.querySelector(e.selectorToggle+'[href*="'+a+'"]');n.openContent(a,i)}},h=function(c){if(0===c.button&&!c.metaKey&&!c.ctrlKey){var a=s(c.target,e.selectorToggle);if(a&&a.hash){if(a.classList.contains(e.toggleActiveClass))return c.preventDefault(),void n.closeContent(a.hash,a);o=document.querySelector(a.hash),o&&(o.setAttribute("data-collapse-id",o.id),o.id="",a.hash===t.location.hash&&(c.preventDefault(),f()))}}},v=function(n){if((o=s(n.target,e.selectorContent))&&!o.classList.contains(e.contentActiveClass)){var c=o.id;if(o.setAttribute("data-collapse-id",c),o.setAttribute("data-houdini-no-focus",!0),o.id="",c===t.location.hash.substring(1))return void f();t.location.hash=c}};return n.destroy=function(){e&&(document.documentElement.classList.remove(e.initClass),document.removeEventListener("click",h,!1),document.removeEventListener("focus",v,!0),t.removeEventListener("hashchange",f,!1),e=null,o=null)},n.init=function(o){c&&(n.destroy(),e=r(a,o||{}),document.documentElement.classList.add(e.initClass),document.addEventListener("click",h,!1),document.addEventListener("focus",v,!0),t.addEventListener("hashchange",f,!1),f())},n})); \ No newline at end of file diff --git a/docs/assets/js/prism.js b/docs/assets/js/prism.js deleted file mode 100755 index 92b3663..0000000 --- a/docs/assets/js/prism.js +++ /dev/null @@ -1,21 +0,0 @@ -/* ============================================================= - - Prism v1.0 - Lightweight, robust, elegant syntax highlighting, by Lea Verou - http://lea.verou.me - - Licensed under MIT License. - http://www.opensource.org/licenses/mit-license.php/ - - * ============================================================= */ - - (function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=self.Prism={util:{type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){var n=t.util.type(e);switch(n){case"Object":var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.util.clone(e[i]));return r;case"Array":return e.slice()}return e}},languages:{extend:function(e,n){var r=t.util.clone(t.languages[e]);for(var i in n)r[i]=n[i];return r},insertBefore:function(e,n,r,i){i=i||t.languages;var s=i[e],o={};for(var u in s)if(s.hasOwnProperty(u)){if(u==n)for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);o[u]=s[u]}return i[e]=o},DFS:function(e,n){for(var r in e){n.call(e,r,e[r]);t.util.type(e)==="Object"&&t.languages.DFS(e[r],n)}}},highlightAll:function(e,n){var r=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code');for(var i=0,s;s=r[i++];)t.highlightElement(s,e===!0,n)},highlightElement:function(r,i,s){var o,u,a=r;while(a&&!e.test(a.className))a=a.parentNode;if(a){o=(a.className.match(e)||[,""])[1];u=t.languages[o]}if(!u)return;r.className=r.className.replace(e,"").replace(/\s+/g," ")+" language-"+o;a=r.parentNode;/pre/i.test(a.nodeName)&&(a.className=a.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var f=r.textContent;if(!f)return;f=f.replace(/&/g,"&").replace(/e.length)break e;if(p instanceof i)continue;a.lastIndex=0;var d=a.exec(p);if(d){l&&(c=d[1].length);var v=d.index-1+c,d=d[0].slice(c),m=d.length,g=v+m,y=p.slice(0,v+1),b=p.slice(g+1),w=[h,1];y&&w.push(y);var E=new i(u,f?t.tokenize(d,f):d);w.push(E);b&&w.push(b);Array.prototype.splice.apply(s,w)}}}return s},hooks:{all:{},add:function(e,n){var r=t.hooks.all;r[e]=r[e]||[];r[e].push(n)},run:function(e,n){var r=t.hooks.all[e];if(!r||!r.length)return;for(var i=0,s;s=r[i++];)s(n)}}},n=t.Token=function(e,t){this.type=e;this.content=t};n.stringify=function(e,r,i){if(typeof e=="string")return e;if(Object.prototype.toString.call(e)=="[object Array]")return e.map(function(t){return n.stringify(t,r,e)}).join("");var s={type:e.type,content:n.stringify(e.content,r,i),tag:"span",classes:["token",e.type],attributes:{},language:r,parent:i};s.type=="comment"&&(s.attributes.spellcheck="true");t.hooks.run("wrap",s);var o="";for(var u in s.attributes)o+=u+'="'+(s.attributes[u]||"")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'" '+o+">"+s.content+""};if(!self.document){self.addEventListener("message",function(e){var n=JSON.parse(e.data),r=n.language,i=n.code;self.postMessage(JSON.stringify(t.tokenize(i,t.languages[r])));self.close()},!1);return}var r=document.getElementsByTagName("script");r=r[r.length-1];if(r){t.filename=r.src;document.addEventListener&&!r.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",t.highlightAll)}})();; - Prism.languages.markup={comment:/<!--[\w\W]*?-->/g,prolog:/<\?.+?\?>/,doctype:/<!DOCTYPE.+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?[\w:-]+\s*(?:\s+[\w:-]+(?:=(?:("|')(\\?[\w\W])*?\1|\w+))?\s*)*\/?>/gi,inside:{tag:{pattern:/^<\/?[\w:-]+/i,inside:{punctuation:/^<\/?/,namespace:/^[\w-]+?:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/gi,inside:{punctuation:/=|>|"/g}},punctuation:/\/?>/g,"attr-name":{pattern:/[\w:-]+/g,inside:{namespace:/^[\w-]+?:/}}}},entity:/&#?[\da-z]{1,8};/gi};Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))});; - Prism.languages.css={comment:/\/\*[\w\W]*?\*\//g,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*{))/gi,inside:{punctuation:/[;:]/g}},url:/url\((["']?).*?\1\)/gi,selector:/[^\{\}\s][^\{\};]*(?=\s*\{)/g,property:/(\b|\B)[\w-]+(?=\s*:)/ig,string:/("|')(\\?.)*?\1/g,important:/\B!important\b/gi,ignore:/&(lt|gt|amp);/gi,punctuation:/[\{\};:]/g};Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<|<)style[\w\W]*?(>|>)[\w\W]*?(<|<)\/style(>|>)/ig,inside:{tag:{pattern:/(<|<)style[\w\W]*?(>|>)|(<|<)\/style(>|>)/ig,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.css}}});; - Prism.languages.clike={comment:{pattern:/(^|[^\\])(\/\*[\w\W]*?\*\/|(^|[^:])\/\/.*?(\r?\n|$))/g,lookbehind:!0},string:/("|')(\\?.)*?\1/g,"class-name":{pattern:/((?:(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/ig,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/g,"boolean":/\b(true|false)\b/g,"function":{pattern:/[a-z0-9_]+\(/ig,inside:{punctuation:/\(/}}, number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,operator:/[-+]{1,2}|!|<=?|>=?|={1,3}|(&){1,2}|\|?\||\?|\*|\/|\~|\^|\%/g,ignore:/&(lt|gt|amp);/gi,punctuation:/[{}[\];(),.:]/g}; - ; - Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(var|let|if|else|while|do|for|return|in|instanceof|function|new|with|typeof|try|throw|catch|finally|null|break|continue)\b/g,number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?|NaN|-?Infinity)\b/g});Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/g,lookbehind:!0}});Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<|<)script[\w\W]*?(>|>)[\w\W]*?(<|<)\/script(>|>)/ig,inside:{tag:{pattern:/(<|<)script[\w\W]*?(>|>)|(<|<)\/script(>|>)/ig,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.javascript}}}); - ; - Prism.languages.php=Prism.languages.extend("clike",{keyword:/\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|extends|private|protected|parent|static|throw|null|echo|print|trait|namespace|use|final|yield|goto|instanceof|finally|try|catch)\b/ig, constant:/\b[A-Z0-9_]{2,}\b/g});Prism.languages.insertBefore("php","keyword",{delimiter:/(\?>|<\?php|<\?)/ig,variable:/(\$\w+)\b/ig,"package":{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/g,lookbehind:!0,inside:{punctuation:/\\/}}});Prism.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/g,lookbehind:!0}}); Prism.languages.markup&&(Prism.hooks.add("before-highlight",function(a){"php"===a.language&&(a.tokenStack=[],a.code=a.code.replace(/(?:<\?php|<\?|<\?php|<\?)[\w\W]*?(?:\?>|\?>)/ig,function(b){a.tokenStack.push(b);return"{{{PHP"+a.tokenStack.length+"}}}"}))}),Prism.hooks.add("after-highlight",function(a){if("php"===a.language){for(var b=0,c;c=a.tokenStack[b];b++)a.highlightedCode=a.highlightedCode.replace("{{{PHP"+(b+1)+"}}}",Prism.highlight(c,a.grammar,"php"));a.element.innerHTML=a.highlightedCode}}), Prism.hooks.add("wrap",function(a){"php"===a.language&&"markup"===a.type&&(a.content=a.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g,'$1'))}),Prism.languages.insertBefore("php","comment",{markup:{pattern:/(<|<)[^?]\/?(.*?)(>|>)/g,inside:Prism.languages.markup},php:/\{\{\{PHP[0-9]+\}\}\}/g}));; - Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(\/\*[\w\W]*?\*\/|\/\/.*?(\r?\n|$))/g,lookbehind:!0},atrule:/@[\w-]+(?=\s+(\(|\{|;))/gi,url:/([-a-z]+-)*url(http://github.com/?=\()/gi,selector:/([^@;\{\}\(\)]?([^@;\{\}\(\)]|&|\#\{\$[-_\w]+\})+)(?=\s*\{(\}|\s|[^\}]+(:|\{)[^\}]+))/gm});Prism.languages.insertBefore("scss","atrule",{keyword:/@(if|else if|else|for|each|while|import|extend|debug|warn|mixin|include|function|return)|(?=@for\s+\$[-_\w]+\s)+from/i});Prism.languages.insertBefore("scss","property",{variable:/((\$[-_\w]+)|(#\{\$[-_\w]+\}))/i});Prism.languages.insertBefore("scss","ignore",{placeholder:/%[-_\w]+/i,statement:/\B!(default|optional)\b/gi,"boolean":/\b(true|false)\b/g,"null":/\b(null)\b/g,operator:/\s+([-+]{1,2}|={1,2}|!=|\|?\||\?|\*|\/|\%)\s+/g}); - ; \ No newline at end of file diff --git a/docs/assets/js/toc.js b/docs/assets/js/toc.js deleted file mode 100755 index 6b03942..0000000 --- a/docs/assets/js/toc.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * tableOfContents.js - * @description Dynamically create a table of contents - * @version 1.0.0 - * @author Chris Ferdinandi - * @license MIT - */ - -(function (root, factory) { - if ( typeof define === 'function' && define.amd ) { - define([], factory(root)); - } else if ( typeof exports === 'object' ) { - module.exports = factory(root); - } else { - root.tableOfContents = factory(root); - } -})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) { - - 'use strict'; - - // - // Variables - // - - var toc = {}; // Object for public APIs - var supports = !!document.querySelector && !!root.addEventListener; // Feature test - var settings, container; - - // Default settings - var defaults = { - container: '[data-toc]', - selectors: '[data-toc-content] h2', - heading: 'Contents', - headingType: 'h2', - headingClass: '', - navClass: '', - linkClass: '', - initClass: 'js-table-of-contents', - callback: function () {} - }; - - - // - // Methods - // - - /** - * A simple forEach() implementation for Arrays, Objects and NodeLists - * @private - * @param {Array|Object|NodeList} collection Collection of items to iterate - * @param {Function} callback Callback function for each iteration - * @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating over (aka `this`) - */ - var forEach = function (collection, callback, scope) { - if (Object.prototype.toString.call(collection) === '[object Object]') { - for (var prop in collection) { - if (Object.prototype.hasOwnProperty.call(collection, prop)) { - callback.call(scope, collection[prop], prop, collection); - } - } - } else { - for (var i = 0, len = collection.length; i < len; i++) { - callback.call(scope, collection[i], i, collection); - } - } - }; - - /** - * Merge defaults with user options - * @private - * @param {Object} defaults Default settings - * @param {Object} options User options - * @returns {Object} Merged values of defaults and options - */ - var extend = function () { - - // Variables - var extended = {}; - var deep = false; - var i = 0; - var length = arguments.length; - - // Check if a deep merge - if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { - deep = arguments[0]; - i++; - } - - // Merge the object into the extended object - var merge = function (obj) { - for ( var prop in obj ) { - if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { - // If deep merge and property is an object, merge properties - if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { - extended[prop] = extend( true, extended[prop], obj[prop] ); - } else { - extended[prop] = obj[prop]; - } - } - } - }; - - // Loop through each object and conduct a merge - for ( ; i < length; i++ ) { - var obj = arguments[i]; - merge(obj); - } - - return extended; - - }; - - /** - * Render the Table of Contents - */ - toc.render = function () { - - // Variables - var sections = document.querySelectorAll( settings.selectors ); - var toc = ''; - - if ( sections.length === 0 ) return; - - // Loop through each section and create a link to it - forEach(sections, function (section) { - - // Ignore sections without an id - var id = section.id; - if ( !id ) return; - - // Create section navigation - toc += '
  • ' + section.innerHTML + '
  • '; - - }); - - // Inject table of contents into the DOM - container.innerHTML = '<' + settings.headingType + '>' + settings.heading + '
      ' + toc + '
    '; - - // Run callback - settings.callback(); - - }; - - /** - * Destroy the current initialization. - * @public - */ - toc.destroy = function () { - if ( !settings ) return; - document.documentElement.classList.remove( settings.initClass ); - container.innerHTML = ''; - settings = null; - container = null; - }; - - /** - * Initialize tableOfContents - * @public - * @param {Object} options User settings - */ - toc.init = function ( options ) { - - // feature test - if ( !supports ) return; - - // Destroy any existing initializations - toc.destroy(); - - // Merge user options with defaults - settings = extend( defaults, options || {} ); - - // Get the container - container = document.querySelector( settings.container ); - if ( !container ) return; - - // Add class to HTML element to activate conditional CSS - document.documentElement.classList.add( settings.initClass ); - - // Render the table of contents - toc.render(); - - }; - - - // - // Public APIs - // - - return toc; - -}); \ No newline at end of file diff --git a/docs/browsers.html b/docs/browsers.html deleted file mode 100755 index cd33189..0000000 --- a/docs/browsers.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -

    Browser Compatibility

    -

    Supported Browsers

    -

    Smooth Scroll works in all modern browsers, and IE 9 and above.

    -

    Smooth Scroll is built with modern JavaScript APIs, and uses progressive enhancement. If the JavaScript file fails to load, or if your site is viewed on older and less capable browsers, anchor links will jump the way they normally would.

    -
    - - -

    Known Issues

    -

    <body> styling

    -

    If the <body> element has been assigned a height of 100% or overflow: hidden, Smooth Scroll is unable to properly calculate page distances and will not scroll to the right location. The <body> element can have a fixed, non-percentage based height (ex. 500px), or a height of auto, and an overflow of visible.

    -

    Animating from the bottom

    -

    Animated scrolling links at the very bottom of the page (example: a "scroll to top" link) will stop animated almost immediately after they start when using certain easing patterns. This is an issue that's been around for a while and I've yet to find a good fix for it. I've found that easeOut* easing patterns work as expected, but other patterns can cause issues. See this discussion for more details.

    - - - -
    -
    -
    - - - - - - - - - - - \ No newline at end of file diff --git a/docs/dist/js/smooth-scroll.js b/docs/dist/js/smooth-scroll.js deleted file mode 100755 index af2c9e0..0000000 --- a/docs/dist/js/smooth-scroll.js +++ /dev/null @@ -1,599 +0,0 @@ -/*! - * smooth-scroll v11.1.0: Animate scrolling to anchor links - * (c) 2017 Chris Ferdinandi - * GPL-3.0 License - * http://github.com/cferdinandi/smooth-scroll - */ - -(function (root, factory) { - if ( typeof define === 'function' && define.amd ) { - define([], factory(root)); - } else if ( typeof exports === 'object' ) { - module.exports = factory(root); - } else { - root.smoothScroll = factory(root); - } -})(typeof global !== 'undefined' ? global : this.window || this.global, (function (root) { - - 'use strict'; - - // - // Variables - // - - var smoothScroll = {}; // Object for public APIs - var supports = 'querySelector' in document && 'addEventListener' in root; // Feature test - var settings, anchor, toggle, fixedHeader, headerHeight, eventTimeout, animationInterval; - - // Default settings - var defaults = { - // Selectors - selector: '[data-scroll]', - ignore: '[data-scroll-ignore]', - selectorHeader: null, - - // Speed & Easing - speed: 500, - offset: 0, - easing: 'easeInOutCubic', - easingPatterns: {}, - - // Callback API - before: function () {}, - after: function () {} - }; - - - // - // Methods - // - - /** - * Merge two or more objects. Returns a new object. - * @private - * @param {Boolean} deep If true, do a deep (or recursive) merge [optional] - * @param {Object} objects The objects to merge together - * @returns {Object} Merged values of defaults and options - */ - var extend = function () { - - // Variables - var extended = {}; - var deep = false; - var i = 0; - var length = arguments.length; - - // Check if a deep merge - if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { - deep = arguments[0]; - i++; - } - - // Merge the object into the extended object - var merge = function (obj) { - for ( var prop in obj ) { - if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { - // If deep merge and property is an object, merge properties - if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { - extended[prop] = extend( true, extended[prop], obj[prop] ); - } else { - extended[prop] = obj[prop]; - } - } - } - }; - - // Loop through each object and conduct a merge - for ( ; i < length; i++ ) { - var obj = arguments[i]; - merge(obj); - } - - return extended; - - }; - - /** - * Get the height of an element. - * @private - * @param {Node} elem The element to get the height of - * @return {Number} The element's height in pixels - */ - var getHeight = function ( elem ) { - return Math.max( elem.scrollHeight, elem.offsetHeight, elem.clientHeight ); - }; - - /** - * Get the closest matching element up the DOM tree. - * @private - * @param {Element} elem Starting element - * @param {String} selector Selector to match against - * @return {Boolean|Element} Returns null if not match found - */ - var getClosest = function ( elem, selector ) { - - // Element.matches() polyfill - if (!Element.prototype.matches) { - Element.prototype.matches = - Element.prototype.matchesSelector || - Element.prototype.mozMatchesSelector || - Element.prototype.msMatchesSelector || - Element.prototype.oMatchesSelector || - Element.prototype.webkitMatchesSelector || - function(s) { - var matches = (this.document || this.ownerDocument).querySelectorAll(s), - i = matches.length; - while (--i >= 0 && matches.item(i) !== this) {} - return i > -1; - }; - } - - // Get closest match - for ( ; elem && elem !== document; elem = elem.parentNode ) { - if ( elem.matches( selector ) ) return elem; - } - - return null; - - }; - - /** - * Escape special characters for use with querySelector - * @private - * @param {String} id The anchor ID to escape - * @author Mathias Bynens - * @link https://github.com/mathiasbynens/CSS.escape - */ - var escapeCharacters = function ( id ) { - - // Remove leading hash - if ( id.charAt(0) === '#' ) { - id = id.substr(1); - } - - var string = String(id); - var length = string.length; - var index = -1; - var codeUnit; - var result = ''; - var firstCodeUnit = string.charCodeAt(0); - while (++index < length) { - codeUnit = string.charCodeAt(index); - // Note: there’s no need to special-case astral symbols, surrogate - // pairs, or lone surrogates. - - // If the character is NULL (U+0000), then throw an - // `InvalidCharacterError` exception and terminate these steps. - if (codeUnit === 0x0000) { - throw new InvalidCharacterError( - 'Invalid character: the input contains U+0000.' - ); - } - - if ( - // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is - // U+007F, […] - (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || - // If the character is the first character and is in the range [0-9] - // (U+0030 to U+0039), […] - (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || - // If the character is the second character and is in the range [0-9] - // (U+0030 to U+0039) and the first character is a `-` (U+002D), […] - ( - index === 1 && - codeUnit >= 0x0030 && codeUnit <= 0x0039 && - firstCodeUnit === 0x002D - ) - ) { - // http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point - result += '\\' + codeUnit.toString(16) + ' '; - continue; - } - - // If the character is not handled by one of the above rules and is - // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or - // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to - // U+005A), or [a-z] (U+0061 to U+007A), […] - if ( - codeUnit >= 0x0080 || - codeUnit === 0x002D || - codeUnit === 0x005F || - codeUnit >= 0x0030 && codeUnit <= 0x0039 || - codeUnit >= 0x0041 && codeUnit <= 0x005A || - codeUnit >= 0x0061 && codeUnit <= 0x007A - ) { - // the character itself - result += string.charAt(index); - continue; - } - - // Otherwise, the escaped character. - // http://dev.w3.org/csswg/cssom/#escape-a-character - result += '\\' + string.charAt(index); - - } - - return '#' + result; - - }; - - /** - * Calculate the easing pattern - * @private - * @link https://gist.github.com/gre/1650294 - * @param {String} type Easing pattern - * @param {Number} time Time animation should take to complete - * @returns {Number} - */ - var easingPattern = function ( settings, time ) { - var pattern; - - // Default Easing Patterns - if ( settings.easing === 'easeInQuad' ) pattern = time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuad' ) pattern = time * (2 - time); // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuad' ) pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInCubic' ) pattern = time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutCubic' ) pattern = (--time) * time * time + 1; // decelerating to zero velocity - if ( settings.easing === 'easeInOutCubic' ) pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInQuart' ) pattern = time * time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuart' ) pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuart' ) pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInQuint' ) pattern = time * time * time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuint' ) pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuint' ) pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration - - // Custom Easing Patterns - if ( settings.easingPatterns[settings.easing] ) { - pattern = settings.easingPatterns[settings.easing]( time ); - } - - return pattern || time; // no easing, no acceleration - }; - - /** - * Calculate how far to scroll - * @private - * @param {Element} anchor The anchor element to scroll to - * @param {Number} headerHeight Height of a fixed header, if any - * @param {Number} offset Number of pixels by which to offset scroll - * @returns {Number} - */ - var getEndLocation = function ( anchor, headerHeight, offset ) { - var location = 0; - if (anchor.offsetParent) { - do { - location += anchor.offsetTop; - anchor = anchor.offsetParent; - } while (anchor); - } - location = Math.max(location - headerHeight - offset, 0); - return Math.min(location, getDocumentHeight() - getViewportHeight()); - }; - - /** - * Determine the viewport's height - * @private - * @returns {Number} - */ - var getViewportHeight = function() { - return Math.max( document.documentElement.clientHeight, root.innerHeight || 0 ); - }; - - /** - * Determine the document's height - * @private - * @returns {Number} - */ - var getDocumentHeight = function () { - return Math.max( - document.body.scrollHeight, document.documentElement.scrollHeight, - document.body.offsetHeight, document.documentElement.offsetHeight, - document.body.clientHeight, document.documentElement.clientHeight - ); - }; - - /** - * Convert data-options attribute into an object of key/value pairs - * @private - * @param {String} options Link-specific options as a data attribute string - * @returns {Object} - */ - var getDataOptions = function ( options ) { - return !options || !(typeof JSON === 'object' && typeof JSON.parse === 'function') ? {} : JSON.parse( options ); - }; - - /** - * Get the height of the fixed header - * @private - * @param {Node} header The header - * @return {Number} The height of the header - */ - var getHeaderHeight = function ( header ) { - return !header ? 0 : ( getHeight( header ) + header.offsetTop ); - }; - - /** - * Bring the anchored element into focus - * @private - */ - var adjustFocus = function ( anchor, endLocation, isNum ) { - - // Don't run if scrolling to a number on the page - if ( isNum ) return; - - // Otherwise, bring anchor element into focus - anchor.focus(); - if ( document.activeElement.id !== anchor.id ) { - anchor.setAttribute( 'tabindex', '-1' ); - anchor.focus(); - anchor.style.outline = 'none'; - } - root.scrollTo( 0 , endLocation ); - - }; - - /** - * Start/stop the scrolling animation - * @public - * @param {Node|Number} anchor The element or position to scroll to - * @param {Element} toggle The element that toggled the scroll event - * @param {Object} options - */ - smoothScroll.animateScroll = function ( anchor, toggle, options ) { - - // Options and overrides - var overrides = getDataOptions( toggle ? toggle.getAttribute('data-options') : null ); - var animateSettings = extend( settings || defaults, options || {}, overrides ); // Merge user options with defaults - - // Selectors and variables - var isNum = Object.prototype.toString.call( anchor ) === '[object Number]' ? true : false; - var anchorElem = isNum || !anchor.tagName ? null : anchor; - if ( !isNum && !anchorElem ) return; - var startLocation = root.pageYOffset; // Current location on the page - if ( animateSettings.selectorHeader && !fixedHeader ) { - // Get the fixed header if not already set - fixedHeader = document.querySelector( animateSettings.selectorHeader ); - } - if ( !headerHeight ) { - // Get the height of a fixed header if one exists and not already set - headerHeight = getHeaderHeight( fixedHeader ); - } - var endLocation = isNum ? anchor : getEndLocation( anchorElem, headerHeight, parseInt((typeof animateSettings.offset === 'function' ? animateSettings.offset() : animateSettings.offset), 10) ); // Location to scroll to - var distance = endLocation - startLocation; // distance to travel - var documentHeight = getDocumentHeight(); - var timeLapsed = 0; - var percentage, position; - - /** - * Stop the scroll animation when it reaches its target (or the bottom/top of page) - * @private - * @param {Number} position Current position on the page - * @param {Number} endLocation Scroll to location - * @param {Number} animationInterval How much to scroll on this loop - */ - var stopAnimateScroll = function ( position, endLocation, animationInterval ) { - var currentLocation = root.pageYOffset; - if ( position == endLocation || currentLocation == endLocation || ( (root.innerHeight + currentLocation) >= documentHeight ) ) { - - // Clear the animation timer - clearInterval(animationInterval); - - // Bring the anchored element into focus - adjustFocus( anchor, endLocation, isNum ); - - // Run callback after animation complete - animateSettings.after( anchor, toggle ); - - } - }; - - /** - * Loop scrolling animation - * @private - */ - var loopAnimateScroll = function () { - timeLapsed += 16; - percentage = ( timeLapsed / parseInt(animateSettings.speed, 10) ); - percentage = ( percentage > 1 ) ? 1 : percentage; - position = startLocation + ( distance * easingPattern(animateSettings, percentage) ); - root.scrollTo( 0, Math.floor(position) ); - stopAnimateScroll(position, endLocation, animationInterval); - }; - - /** - * Set interval timer - * @private - */ - var startAnimateScroll = function () { - clearInterval(animationInterval); - animationInterval = setInterval(loopAnimateScroll, 16); - }; - - /** - * Reset position to fix weird iOS bug - * @link https://github.com/cferdinandi/smooth-scroll/issues/45 - */ - if ( root.pageYOffset === 0 ) { - root.scrollTo( 0, 0 ); - } - - // Run callback before animation starts - animateSettings.before( anchor, toggle ); - - // Start scrolling animation - startAnimateScroll(); - - }; - - /** - * Handle has change event - * @private - */ - var hashChangeHandler = function (event) { - - // Get hash from URL - var hash; - try { - hash = escapeCharacters( decodeURIComponent( root.location.hash ) ); - } catch(e) { - hash = escapeCharacters( root.location.hash ); - } - - // Only run if there's an anchor element to scroll to - if ( !anchor ) return; - - // Reset the anchor element's ID - anchor.id = anchor.getAttribute( 'data-scroll-id' ); - - // Scroll to the anchored content - smoothScroll.animateScroll( anchor, toggle ); - - // Reset anchor and toggle - anchor = null; - toggle = null; - - }; - - /** - * If smooth scroll element clicked, animate scroll - * @private - */ - var clickHandler = function (event) { - - // Don't run if right-click or command/control + click - if ( event.button !== 0 || event.metaKey || event.ctrlKey ) return; - - // Check if a smooth scroll link was clicked - toggle = getClosest( event.target, settings.selector ); - if ( !toggle || toggle.tagName.toLowerCase() !== 'a' || getClosest( event.target, settings.ignore ) ) return; - - // Only run if link is an anchor and points to the current page - if ( toggle.hostname !== root.location.hostname || toggle.pathname !== root.location.pathname || !/#/.test(toggle.href) ) return; - - // Get the sanitized hash - var hash; - try { - hash = escapeCharacters( decodeURIComponent( toggle.hash ) ); - } catch(e) { - hash = escapeCharacters( toggle.hash ); - } - - // If the hash is empty, scroll to the top of the page - if ( hash === '#' ) { - - // Prevent default link behavior - event.preventDefault(); - - // Set the anchored element - anchor = document.body; - - // Save or create the ID as a data attribute and remove it (prevents scroll jump) - var id = anchor.id ? anchor.id : 'smooth-scroll-top'; - anchor.setAttribute( 'data-scroll-id', id ); - anchor.id = ''; - - // If no hash change event will happen, fire manually - // Otherwise, update the hash - if ( root.location.hash.substring(1) === id ) { - hashChangeHandler(); - } else { - root.location.hash = id; - } - - return; - - } - - // Get the anchored element - anchor = document.querySelector( hash ); - - // If anchored element exists, save the ID as a data attribute and remove it (prevents scroll jump) - if ( !anchor ) return; - anchor.setAttribute( 'data-scroll-id', anchor.id ); - anchor.id = ''; - - // If no hash change event will happen, fire manually - if ( toggle.hash === root.location.hash ) { - event.preventDefault(); - hashChangeHandler(); - } - - }; - - /** - * On window scroll and resize, only run events at a rate of 15fps for better performance - * @private - * @param {Function} eventTimeout Timeout function - * @param {Object} settings - */ - var resizeThrottler = function (event) { - if ( !eventTimeout ) { - eventTimeout = setTimeout((function() { - eventTimeout = null; // Reset timeout - headerHeight = getHeaderHeight( fixedHeader ); // Get the height of a fixed header if one exists - }), 66); - } - }; - - /** - * Destroy the current initialization. - * @public - */ - smoothScroll.destroy = function () { - - // If plugin isn't already initialized, stop - if ( !settings ) return; - - // Remove event listeners - document.removeEventListener( 'click', clickHandler, false ); - root.removeEventListener( 'resize', resizeThrottler, false ); - - // Reset varaibles - settings = null; - anchor = null; - toggle = null; - fixedHeader = null; - headerHeight = null; - eventTimeout = null; - animationInterval = null; - }; - - /** - * Initialize Smooth Scroll - * @public - * @param {Object} options User settings - */ - smoothScroll.init = function ( options ) { - - // feature test - if ( !supports ) return; - - // Destroy any existing initializations - smoothScroll.destroy(); - - // Selectors and variables - settings = extend( defaults, options || {} ); // Merge user options with defaults - fixedHeader = settings.selectorHeader ? document.querySelector( settings.selectorHeader ) : null; // Get the fixed header - headerHeight = getHeaderHeight( fixedHeader ); - - // When a toggle is clicked, run the click handler - document.addEventListener( 'click', clickHandler, false ); - - // Listen for hash changes - root.addEventListener('hashchange', hashChangeHandler, false); - - // If window is resized and there's a fixed header, recalculate its size - if ( fixedHeader ) { - root.addEventListener( 'resize', resizeThrottler, false ); - } - - }; - - - // - // Public APIs - // - - return smoothScroll; - -})); \ No newline at end of file diff --git a/docs/dist/js/smooth-scroll.min.js b/docs/dist/js/smooth-scroll.min.js deleted file mode 100755 index b0b54aa..0000000 --- a/docs/dist/js/smooth-scroll.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! smooth-scroll v11.1.0 | (c) 2017 Chris Ferdinandi | GPL-3.0 License | http://github.com/cferdinandi/smooth-scroll */ -!(function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.smoothScroll=t(e)})("undefined"!=typeof global?global:this.window||this.global,(function(e){"use strict";var t,n,o,r,a,i,c,l={},s="querySelector"in document&&"addEventListener"in e,u={selector:"[data-scroll]",ignore:"[data-scroll-ignore]",selectorHeader:null,speed:500,offset:0,easing:"easeInOutCubic",easingPatterns:{},before:function(){},after:function(){}},f=function(){var e={},t=!1,n=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(;n=0&&t.item(n)!==this;);return n>-1});e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null},m=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,r=-1,a="",i=n.charCodeAt(0);++r=1&&t<=31||127==t||0===r&&t>=48&&t<=57||1===r&&t>=48&&t<=57&&45===i?a+="\\"+t.toString(16)+" ":a+=t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+a},g=function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.easingPatterns[e.easing]&&(n=e.easingPatterns[e.easing](t)),n||t},p=function(e,t,n){var o=0;if(e.offsetParent)do{o+=e.offsetTop,e=e.offsetParent}while(e);return o=Math.max(o-t-n,0),Math.min(o,y()-b())},b=function(){return Math.max(document.documentElement.clientHeight,e.innerHeight||0)},y=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},v=function(e){return e&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(e):{}},O=function(e){return e?d(e)+e.offsetTop:0},S=function(t,n,o){o||(t.focus(),document.activeElement.id!==t.id&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))};l.animateScroll=function(n,o,i){var l=v(o?o.getAttribute("data-options"):null),s=f(t||u,i||{},l),d="[object Number]"===Object.prototype.toString.call(n),h=d||!n.tagName?null:n;if(d||h){var m=e.pageYOffset;s.selectorHeader&&!r&&(r=document.querySelector(s.selectorHeader)),a||(a=O(r));var b,E,I=d?n:p(h,a,parseInt("function"==typeof s.offset?s.offset():s.offset,10)),H=I-m,A=y(),j=0,C=function(t,r,a){var i=e.pageYOffset;(t==r||i==r||e.innerHeight+i>=A)&&(clearInterval(a),S(n,r,d),s.after(n,o))},M=function(){j+=16,b=j/parseInt(s.speed,10),b=b>1?1:b,E=m+H*g(s,b),e.scrollTo(0,Math.floor(E)),C(E,I,c)};0===e.pageYOffset&&e.scrollTo(0,0),s.before(n,o),(function(){clearInterval(c),c=setInterval(M,16)})()}};var E=function(t){try{m(decodeURIComponent(e.location.hash))}catch(t){m(e.location.hash)}n&&(n.id=n.getAttribute("data-scroll-id"),l.animateScroll(n,o),n=null,o=null)},I=function(r){if(0===r.button&&!r.metaKey&&!r.ctrlKey&&(o=h(r.target,t.selector))&&"a"===o.tagName.toLowerCase()&&!h(r.target,t.ignore)&&o.hostname===e.location.hostname&&o.pathname===e.location.pathname&&/#/.test(o.href)){var a;try{a=m(decodeURIComponent(o.hash))}catch(e){a=m(o.hash)}if("#"===a){r.preventDefault(),n=document.body;var i=n.id?n.id:"smooth-scroll-top";return n.setAttribute("data-scroll-id",i),n.id="",void(e.location.hash.substring(1)===i?E():e.location.hash=i)}n=document.querySelector(a),n&&(n.setAttribute("data-scroll-id",n.id),n.id="",o.hash===e.location.hash&&(r.preventDefault(),E()))}},H=function(e){i||(i=setTimeout((function(){i=null,a=O(r)}),66))};return l.destroy=function(){t&&(document.removeEventListener("click",I,!1),e.removeEventListener("resize",H,!1),t=null,n=null,o=null,r=null,a=null,i=null,c=null)},l.init=function(n){s&&(l.destroy(),t=f(u,n||{}),r=t.selectorHeader?document.querySelector(t.selectorHeader):null,a=O(r),document.addEventListener("click",I,!1),e.addEventListener("hashchange",E,!1),r&&e.addEventListener("resize",H,!1))},l})); \ No newline at end of file diff --git a/docs/extras.html b/docs/extras.html deleted file mode 100644 index 7fa4274..0000000 --- a/docs/extras.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -

    Extras

    -

    Frequently asked questions, code snippets, and more to help you get the most out of Smooth Scroll.

    -
    - - -

    This, unfortunately, cannot be done well.

    -

    Most browsers instantly jump you to the anchor location when you load a page. You could use scrollTo(0, 0) to pull users back up to the top, and then manually use the smoothScroll.animateScroll() method, but in my experience, it results in a visible jump on the page that's a worse experience than the default browser behavior.

    -
    - -

    Scrolling without updating the URL

    -

    Smooth Scroll is designed to progressively enhance anchor links while offloading as much to the browser as possible. In it's current implementation, it relies on hashchange events (which occur whenever a # changes in the URL) to trigger the scrolling behavior.

    -

    A benefit of this approach is that it preserves browser history and let's users navigate between anchors with the forward and back buttons on the browsers, just like you would normally.

    -

    However, I know certain front-end frameworks also use URL hashes for their own internal processes. While I view this as an anti-pattern, and won't bake hashless anchor links into Smooth Scroll's core, you can enable scrolling without updating the URL via the Smooth Scroll API.

    -

    Here's a relatively lightweight helper function that listens for click events and uses the smoothScroll.animateScroll() method to scroll to the anchor. If you use this, you should not need initialize Smooth Scroll with smoothScroll.init().

    -
    var smoothScrollWithoutHash = function (selector, settings) {
    -
    -    /**
    -     * Get the closest matching element up the DOM tree.
    -     * @private
    -     * @param  {Element} elem     Starting element
    -     * @param  {String}  selector Selector to match against
    -     * @return {Boolean|Element}  Returns null if not match found
    -     */
    -    var getClosest = function ( elem, selector ) {
    -
    -        // Element.matches() polyfill
    -        if (!Element.prototype.matches) {
    -            Element.prototype.matches =
    -                Element.prototype.matchesSelector ||
    -                Element.prototype.mozMatchesSelector ||
    -                Element.prototype.msMatchesSelector ||
    -                Element.prototype.oMatchesSelector ||
    -                Element.prototype.webkitMatchesSelector ||
    -                function(s) {
    -                    var matches = (this.document || this.ownerDocument).querySelectorAll(s),
    -                        i = matches.length;
    -                    while (--i >= 0 && matches.item(i) !== this) {}
    -                    return i > -1;
    -                };
    -        }
    -
    -        // Get closest match
    -        for ( ; elem && elem !== document; elem = elem.parentNode ) {
    -            if ( elem.matches( selector ) ) return elem;
    -        }
    -
    -        return null;
    -
    -    };
    -
    -
    -    /**
    -     * If smooth scroll element clicked, animate scroll
    -     * @private
    -     */
    -    var clickHandler = function (event) {
    -        var toggle = getClosest( event.target, selector );
    -        console.log(toggle);
    -        if ( !toggle || toggle.tagName.toLowerCase() !== 'a' ) return;
    -        console.log(toggle.hash);
    -        var anchor = document.querySelector( toggle.hash );
    -        if ( !anchor ) return;
    -
    -        event.preventDefault(); // Prevent default click event
    -        smoothScroll.animateScroll( anchor, toggle, settings || {} ); // Animate scroll
    -    };
    -
    -    window.addEventListener('click', clickHandler, false );
    -
    -};
    -
    -// Run our function
    -smoothScrollWithoutHash( 'a[href*="#"]' );
    -
    - - - -
    -
    -
    - - - - - - - - - - - \ No newline at end of file diff --git a/docs/index.html b/docs/index.html deleted file mode 100755 index 6905013..0000000 --- a/docs/index.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -

    Smooth Scroll

    -

    Smooth Scroll is a lightweight script to animate scrolling to anchor links. It works great with Gumshoe.

    -
    - -

    Demo

    -

    - Linear
    - Linear (no other options)
    -

    - -

    - Ease-In
    - Quad
    - Cubic
    - Quart
    - Quint -

    - -

    - Ease-In-Out
    - Quad
    - Cubic
    - Quart
    - Quint -

    - -

    - Ease-Out
    - Quad
    - Cubic
    - Quart
    - Quint -

    - -

    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . -

    - -

    - Non-ASCII Characters
    - 中文 -

    - -

    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . -

    - -

    中文

    - -

    Bazinga!

    - -

    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . -

    - -

    Back to the top

    - - -
    -
    -
    - - - - - - - - - - - \ No newline at end of file diff --git a/docs/license.html b/docs/license.html deleted file mode 100755 index b5ffc56..0000000 --- a/docs/license.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -

    License

    -

    Smooth Scroll has three types of licenses:

    -
      -
    1. Open Source, for personal and open source projects.
    2. -
    3. Commercial, for commercial projects and applications.
    4. -
    5. OEM, for when this Smooth Scroll will be bundled with a commercial interface builder, SDK, or toolkit.
    6. -
    -
    - - -

    Open Source License

    -

    If you're looking to use Smooth Scroll on an open source or personal project, the code is available under the GPLv3 License. GPLv3 has many terms, but the most important one is that it requires you to license you entire project under the terms of GPLv3 as well:

    -
    -

    You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged.

    -
    -

    You can absolutely use the open source license for commercial projects, but those projects must also be open sourced in their entirety with a GPLv3 license.

    -
    - - -

    Commercial License

    -

    The Commercial License let's you use Smooth Scroll in commercial projects and applications without the provisions of GPLv3. With this license, your code is kept proprietary.

    -
      -
    • You can modify the source code.
    • -
    • You can include it in your own commercial products and applications, such as premium CMS themes, plugins, or templates.
    • -
    • Customers and users of your products do not need to purchase their own license, as long as they're not developing their own commercial products with Smooth Scroll.
    • -
    -

    Buy a Commercial License

    -

    Commercial Licenses are priced based on the number of websites, applications, or other products that use Smooth Scroll. Pay with credit card and instantly receive a PDF of your Commercial License.

    - - - - - - - - - - - - - - - - - - - - - -
    DescriptionPrice
    1 Site or AppBuy a 1 Site License now for $29
    5 Sites or AppsBuy a 5 Site License now for $59
    25 Sites or AppsBuy a 25 Site License now for $119
    - -

    You can read the full text of the Commercial License below. Email me at chris@gomakethings.com with any questions you have about licensing.

    -

    The Commercial License Agreement

    -

    This Software License Agreement (the “Agreement”) is between Go Make Things, LLC (“Go Make Things”) and You (including your agents and affiliates), a commercial licensee of Go Make Things's software. If you have not purchased a Smooth Scroll Commercial License from Go Make Things, these terms do not apply to you, and your use of the Go Make Things software is instead governed by the GNU General Public License, version 3.

    -

    1. Definitions

    -
      -
    • “Application” means any software, application, or elements that Your Licensed Developers develop using the Software or Modifications in accordance with this Agreement.
    • -
    • “End User” means an end user of Your Application who acquires a license to such solely for their own use and not for distribution, resale, user interface design, or software development purposes.
    • -
    • “Licensed Developer” shall mean an individual person permitted to use the Software and make Modifications for your Applications, whether such person is Your employee or a consultant or contractor providing services to You.
    • -
    • “Modification” means any revision, adaptation, or derivative of the Software produced by You.
    • -
    • The “Software” means Smooth Scroll version 11.
    • -
    -

    2. Commercial license grant

    -

    Subject to the terms of this Agreement, Go Make Things grants to You a revocable, non-exclusive, non-transferable license:

    -
      -
    • for Licensed Developers to use the Software to create Modifications and [n—varies based on the license you purchase] Applications;
    • -
    • for You to distribute the Software and/or Modifications to an unlimited number of End Users solely as integrated into the Applications;
    • -
    • and for End Users to use the Software as incorporated into Your Applications in accordance with the terms of this Agreement.
    • -
    -

    You are entitled to receive all updates to the major version of the Software licensed by you, as well as any later version of the Software that Go Make Things, in writing, explicitly authorizes you to use. (For illustration purposes only, if you purchased a license for version 2.0, this licenses authorizes you to use version 2.9, but not 3.0.) Go Make Things makes no representation that any update will be compatible with your Application.

    -

    3. Ownership

    -

    This is a license agreement and not an agreement for sale. Go Make Things reserves ownership of all intellectual property rights inherent in or relating to the Software and corresponding source code, which include all copyright, patent rights, all rights in relation to registered and unregistered trademarks (including service marks), confidential information (including trade secrets and know-how) and all rights other than those expressly granted by this Agreement.

    -

    You must not remove, obscure or interfere with any copyright, acknowledgment, attribution, trademark, warning or disclaimer statement affixed to, incorporated in or otherwise applied in connection with the Software. Notwithstanding the above, you are permitted to produce, use, and distribute compressed or “minified” copies of the Software that do not bear the notices contained in the Software’s source code, so long as you otherwise comply with the terms of this license.

    -

    4. Prohibited Uses

    -

    Your Application must have substantially different functionality than, and must not compete directly with, the Software.

    -

    You may not distribute the Software or Modifications except as included within Your Application.

    -

    If You produce an Application for a customer, You are responsible for ensuring that your customer does not make use of the Software except with Applications licensed herein.

    -

    Your Application must not enable End Users to produce separate applications that incorporate the Software or Modifications. For example, if Your Application is a development toolkit or library, an application builder, a website builder that can be used to incorporate the Software into a new Application, You must obtain a separate OEM license from Go Make Things.

    -

    5. Termination

    -

    This Agreement and the license granted hereunder shall continue until terminated in accordance with this Section. Unless otherwise specified in this Agreement, the license shall last as long as Your use of the Software is in compliance with the terms herein.

    -

    Go Make Things shall have the right to terminate this Agreement and the license granted hereunder immediately if You breach any of the material terms of this Agreement. Upon termination of this Agreement, all licenses granted to You in this Agreement shall terminate automatically and You shall immediately cease use and distribution of the Software.

    -

    Upon termination of this Agreement, You must cease all use of the Software. If, prior to your breach of this Agreement, you delivered Applications incorporating the Software to Your End Users, those End Users’ licenses shall survive termination.

    -

    6. Disclaimer of Warranties

    -

    TO THE EXTENT PERMITTED BY LAW, GO MAKE THINGS DISCLAIMS ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE. WE DO NOT GUARANTEE THAT THE OPERATION OF THE SOFTWARE OR YOUR APPLICATION WILL BE UNINTERRUPTED OR ERROR-FREE, AND YOU ACKNOWLEDGE THAT IT IS NOT TECHNICALLY PRACTICABLE FOR US TO DO SO.

    -

    7. Limitation of Liabilities

    -

    TO THE EXTENT PERMITTED BY LAW, IN NO EVENT SHALL GO MAKE THINGS BE LIABLE UNDER ANY LEGAL OR EQUITABLE THEORY FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LAW) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE OR THE CODE IT PRODUCES OR ANY OTHER SUBJECT MATTER RELATING TO THIS AGREEMENT, EVEN IF GO MAKE THINGS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN ANY CASE, GO MAKE THINGS’S ENTIRE LIABILITY WITH RESPECT TO ANY SUBJECT MATTER RELATING TO THIS AGREEMENT SHALL BE LIMITED TO THE GREATER OF: (I) THE AMOUNT ACTUALLY PAID BY YOU FOR THE LICENSE, OR (II) FIVE HUNDRED DOLLARS ($500).

    -

    8. Indemnification

    -

    While redistributing the Software or Modifications thereof as part of Your Application, You may choose to offer acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this Agreement. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, and not on Go Make Things’s behalf.

    -

    You agree to indemnify, hold harmless, and defend Go Make Things and its owners, officers, agents, and affiliates from and against any and all claims, lawsuits and proceedings (collectively “Claims”), and all expenses, costs (including attorney's fees), judgments, damages and other liabilities resulting from such Claims, that arise or result from:

    -
      -
    • your use of the Software in violation of this Agreement;
    • -
    • the use or distribution of Your Application, except to the extent such claim is based solely on the inclusion of the Software therein;
    • -
    • your Modification of the Software’s source code; or
    • -
    • your accepting support, warranty, indemnity, or additional liability as described in the preceding paragraph.
    • -
    -

    9. Payment and Taxes

    -

    All payments under this Agreement are due to Go Make Things upon Your purchase of a license to the Software.

    -

    Each party shall be responsible for all taxes (including, but not limited to, taxes based upon its income) or levies imposed on it under applicable laws, regulations and tax treaties as a result of this Agreement and any payments made hereunder (including those required to be withheld or deducted from payments); provided that You shall be responsible for any value added tax, use tax, sales tax, or similar tax, and shall pay or reimburse Go Make Things for the same upon invoice. Each party shall furnish evidence of such paid taxes as is sufficient to enable the other party to obtain any credits available to it, including original tax withholding certificates.

    -

    10. Miscellaneous

    -

    Software Updates and Upgrades. The license granted herein applies only to the version of the Software available when purchased in connection with the terms of this Agreement, and to any updates and/or upgrades to which You may be entitled. Any previous or subsequent license granted to You for use of the Software shall be governed by the terms and conditions of the agreement entered in connection with purchase or download of that version of the Software.

    -

    Survival. The provisions of sections 4 through 10 will survive termination of this Agreement.

    -

    Compliance with Applicable Laws. You agree that You will comply with all applicable laws and regulations with respect to the Software, including without limitation all export control laws and regulations.

    -

    Marketing. You agree to Go Make Things’s use of Your name, trade name, and trademark, for use in Go Make Things’s marketing materials and its website, solely to identify you as a customer of Go Make Things.

    -

    Assignment. This Agreement may be assigned by Go Make Things in whole or in part and will inure to the benefit of Go Make Things’s successors and assigns. You may not assign or transfer this Agreement without Go Make Things’s prior written consent. Notwithstanding the foregoing, however, if You transfer ownership of an Application to a customer for which it was developed, You may assign this Agreement to that customer (the “Assignee”) provided:

    -
      -
    1. You provide written notice to Go Make Things prior to the effective date of such assignment; and
    2. -
    3. there is a written agreement, wherein the Assignee accepts the terms of this Agreement.
    4. -
    -

    Entire Agreement. The terms and conditions stated herein set forth the entire agreement of the parties and replace and supersede all other contracts, agreements, and understandings, written or oral, relating to the subject matter hereof.

    -

    Severability. In the event that any portion of this Agreement is held to be unenforceable, such portions shall not limit or otherwise modify or affect any other portion of this Agreement.

    -

    Modification; Waiver. This Agreement cannot be amended except by a written instrument executed by Go Make Things.

 All Additional Terms are hereby incorporated into this Agreement by this reference.

 The failure of Go Make Things to enforce any provision of this Agreement may not be deemed a waiver of that or any other provision of this Agreement.

    -

    Governing Law. This Agreement is subject to, and shall be interpreted and enforced in accordance with, the laws of the Commonwealth of Massachusetts in all respects without regard to conflict of law principles. The Courts of Bristol County, Massachusetts and Norfolk County, Massachusetts shall be the sole and exclusive Courts in which either party may attempt to enforce or establish the existence or scope of any rights, benefits or obligations under this Agreement. The UN Convention on Contracts for the International Sale of Goods is expressly excluded.

    -

    Government Use. If the Software or any related documentation is licensed to the U.S. Government or any agency thereof, it will be considered to be “commercial computer software” or “commercial computer software documentation,” as those terms are used in 48 CFR § 12.212 or 48 CFR § 227.7202, and is being licensed with only those rights as are granted to all other licensees as set forth in this Agreement.

    -
    - - -

    OEM License

    -

    If you'll be including Smooth Scroll in a project that can be used to build new products, websites, or applications—such as a commercial interface builder, SDK, or toolkit—you need to purchase an OEM License.

    -

    The OEM License is customized for you. Please content me chris@gomakethings.com to discuss your project.

    - - - -
    -
    -
    - - - - - - - - - - - \ No newline at end of file diff --git a/docs/options.html b/docs/options.html deleted file mode 100755 index f5965ff..0000000 --- a/docs/options.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -

    Options and Settings

    -

    Smooth Scroll includes smart defaults and works right out of the box. But if you want to customize things, it also has a robust API that provides multiple ways for you to adjust the default options and settings.

    -
    - -

    Global Settings

    -

    You can pass options and callbacks into Smooth Scroll through the init() function:

    -
    smoothScroll.init({
    -    // Selectors
    -    selector: '[data-scroll]', // Selector for links (must be a valid CSS selector)
    -    ignore: '[data-scroll-ignore]' // Selector to ignore (won't animate scrolling on links with this selector)
    -    selectorHeader: null, // Selector for fixed headers (must be a valid CSS selector) [optional]
    -
    -    // Speed & Easing
    -    speed: 500, // Integer. How fast to complete the scroll in milliseconds
    -    offset: 0, // Integer or Function returning an integer. How far to offset the scrolling anchor location in pixels
    -    easing: 'easeInOutCubic', // Easing pattern to use
    -
    -    // Custom easing patterns.
    -    // Must be an object with the easing name as the key
    -    // Each pattern must be a function, with `time` as the argument, that returns the pattern
    -    easingPatterns: {
    -        myCustomEasingPattern: function (time) {
    -            return time * (2 - time);
    -        }
    -    }
    -
    -    // Callback API
    -    before: function (anchor, toggle) {}, // Function to run before scrolling starts
    -    after: function (anchor, toggle) {} // Function to run after scrolling completes
    -});
    -
    -

    Note: To programatically add Smooth Scroll to all anchor links on a page, pass selector: 'a[href*="#"]' into init.

    -

    Easing Options

    -

    Linear -Moves at the same speed from start to finish.

    -
      -
    • Linear
    • -
    -

    Ease-In -Gradually increases in speed.

    -
      -
    • easeInQuad
    • -
    • easeInCubic
    • -
    • easeInQuart
    • -
    • easeInQuint
    • -
    -

    Ease-In-Out -Gradually increases in speed, peaks, and then gradually slows down.

    -
      -
    • easeInOutQuad
    • -
    • easeInOutCubic
    • -
    • easeInOutQuart
    • -
    • easeInOutQuint
    • -
    -

    Ease-Out -Gradually decreases in speed.

    -
      -
    • easeOutQuad
    • -
    • easeOutCubic
    • -
    • easeOutQuart
    • -
    • easeOutQuint
    • -
    -

    Learn more about the different easing patterns and what they do at easings.net.

    -
    - - -

    Override settings with data attributes

    -

    Smooth Scroll also lets you override global settings on a link-by-link basis using the [data-options] data attribute.

    -
    <a data-scroll
    -   data-options='{
    -                    "speed": 500,
    -                    "easing": "easeInOutCubic",
    -                    "offset": 0
    -                }'
    ->
    -    Anchor Link
    -</a>
    -
    -

    Note: You must use valid JSON in order for the data-options feature to work. Does not support the before and after callback methods, or the easingPatterns object.

    -
    - - -

    Use Smooth Scroll events in your own scripts

    -

    You can also call Smooth Scroll's scroll animation events in your own scripts.

    -

    animateScroll()

    -

    Animate scrolling to an anchor.

    -
    smoothScroll.animateScroll(
    -    anchor, // Node to scroll to, OR an integer. ex. document.querySelector( '#bazinga' )
    -    toggle, // Node that toggles the animation. ex. document.querySelector( '#toggle' )
    -    options // Classes and callbacks. Same options as those passed into the init() function.
    -);
    -
    -

    Example 1

    -
    var anchor = document.querySelector( '#bazinga' );
    -smoothScroll.animateScroll( anchor );
    -
    -

    Example 2

    -
    var anchor = document.querySelector( '#bazinga' );
    -var toggle = document.querySelector('#toggle');
    -var options = { speed: 1000, easing: 'easeOutCubic' };
    -smoothScroll.animateScroll( anchor, toggle, options );
    -
    -

    Example 3

    -
    // You can optionally pass in a y-position to scroll to as an integer
    -smoothScroll.animateScroll( 750 );
    -
    -

    destroy()

    -

    Destroy the current smoothScroll.init(). This is called automatically during the init function to remove any existing initializations.

    -
    smoothScroll.destroy();
    -
    -
    - - -

    Fixed Headers

    -

    If you're using a fixed header, Smooth Scroll will automatically offset scroll distances by the header height. Pass in a valid CSS selector for your fixed header as an option to the init.

    -

    If you have multiple fixed headers, pass in the last one in the markup.

    -
    <nav data-scroll-header>
    -    ...
    -</nav>
    -...
    -<script>
    -    smoothScroll.init({
    -        selectorHeader: '[data-scroll-header]'
    -    });
    -</script>
    -
    - - - -
    -
    -
    - - - - - - - - - - - \ No newline at end of file diff --git a/docs/setup.html b/docs/setup.html deleted file mode 100755 index e9653ed..0000000 --- a/docs/setup.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -

    Getting Started

    -

    Compiled and production-ready code can be found in the dist directory. The src directory contains development code.

    -
    - -

    Quick Start

    -

    1. Include Smooth Scroll on your site.

    -
    <script src="dist/js/smooth-scroll.js"></script>
    -
    -

    2. Add the markup to your HTML.

    -

    Turn anchor links into Smooth Scroll links by adding the [data-scroll] data attribute. Give the anchor location an ID just like you normally would.

    -
    <a data-scroll href="#bazinga">Anchor Link</a>
    -...
    -<span id="bazinga">Bazinga!</span>
    -
    -

    3. Initialize Smooth Scroll.

    -

    In the footer of your page, after the content, initialize Smooth Scroll. And that's it, you're done. Nice work!

    -
    <script>
    -    smoothScroll.init();
    -</script>
    -
    -
    - -

    Using a Package Manager

    -

    Install Smooth Scroll with your favorite package manager or module bundler directly from NPM.

    -
    npm install smooth-scroll
    -
    -
    - - -

    Working with the Source Files

    -

    If you would prefer, you can work with the development code in the src directory using the included Gulp build system. This compiles, lints, and minifies code.

    -

    Dependencies

    -

    Make sure these are installed first.

    - -

    Using Gulp

    -
      -
    1. In bash/terminal/command line, cd into your project directory.
    2. -
    3. Run npm install to install required files.
    4. -
    5. When it's done installing, run one of the task runners to get going:
        -
      • gulp manually compiles files.
      • -
      • gulp watch automatically compiles files when changes are made and applies changes using LiveReload.
      • -
      -
    6. -
    -

    Compiled and production-ready code can be found in the dist directory. The src directory contains development code.

    - - - -
    -
    -
    - - - - - - - - - - - \ No newline at end of file diff --git a/docs/support.html b/docs/support.html deleted file mode 100755 index c0cf939..0000000 --- a/docs/support.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -

    Support

    -

    If you're having issues with Smooth Scroll, there are a few ways to get help.

    -
    - - -

    Community Support

    -

    You can ask questions and get help from a community of developers on GitHub Issues.

    -

    Before posting, do a search to make sure your issue or questions hasn't already been reported or discussed. If no matching issue exists, go ahead and create one. Please be sure to include all of the following:

    -
      -
    1. A clear, descriptive title (ie. "A bug" is not a good title).
    2. -
    3. A reduced test case.
        -
      • Clearly demonstrate the bug or issue.
      • -
      • Include the bare minimum HTML, CSS, and JavaScript required to demonstrate the bug.
      • -
      • A link to your production site is not a reduced test case.
      • -
      -
    4. -
    5. The browser and OS that you're using.
    6. -
    -

    Duplicates and issues without a reduced test case may be closed without comment.

    -
    - - -

    Premium Support

    -

    Premium Support gives your direct access to me by email to answer any specific questions or issues you have.

    -

    Get Premium Support

    -
    - - -

    Custom Support

    -

    If you want to customize Smooth Scroll to better meet your needs, I can help. Send me an email at chris@gomakethings.com with the details.

    -
    - - -

    Feature Requests

    -

    Please post feature requests on GitHub Issues and clearly mark it as a feature request. Provide as much detail as you can.

    -

    If there's a feature listed there already that you'd like to see incorporated into the plugin, add your support.

    - - - -
    -
    -
    - - - - - - - - - - - \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 0090d12..0b20e1e 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,98 +1,44 @@ /** * Settings + * Turn on/off build features */ var settings = { - scripts: true, // Turn on/off script tasks - styles: false, // Turn on/off style tasks - svgs: false, // Turn on/off SVG tasks - images: false, // Turn on/off image tasks - static: false, // Turn on/off static file copying - docs: true, // Turn on/off documentation generation - deploy: true, // Turn on/off all deployment tasks - cacheBust: false, // Turn on/off cache busting (adds a version number to minified files) - gitAdd: true, // Turn on/off git add -A - gitCommit: true, // Turn on/off git commit -a - gitPush: true, // Turn on/off push to git - gitTag: true, // Turn on/off add a git tag - npm: false // Turn on/off push to NPM + clean: true, + scripts: true, + polyfills: true, + styles: false, + svgs: false, + copy: true, + reload: true }; -/** - * Gulp Packages - */ - -// General -var gulp = require('gulp'); -var fs = require('fs'); -var del = require('del'); -var exec = require('child_process').exec; -var lazypipe = require('lazypipe'); -var plumber = require('gulp-plumber'); -var flatten = require('gulp-flatten'); -var tap = require('gulp-tap'); -var rename = require('gulp-rename'); -var header = require('gulp-header'); -var footer = require('gulp-footer'); -var watch = require('gulp-watch'); -var livereload = require('gulp-livereload'); -var package = require('./package.json'); - -// Scripts -var jshint = settings.scripts ? require('gulp-jshint') : null; -var stylish = settings.scripts ? require('jshint-stylish') : null; -var concat = settings.scripts ? require('gulp-concat') : null; -var uglify = settings.scripts ? require('gulp-uglify') : null; -var optimizejs = settings.scripts ? require('gulp-optimize-js') : null; - -// Styles -var sass = settings.styles ? require('gulp-sass') : null; -var prefix = settings.styles ? require('gulp-autoprefixer') : null; -var minify = settings.styles ? require('gulp-cssnano') : null; - -// SVGs -var svgmin = settings.svgs ? require('gulp-svgmin') : null; -var svgstore = settings.svgs ? require('gulp-svgstore') : null; - -// Docs -var markdown = settings.docs ? require('gulp-markdown') : null; -var fileinclude = settings.docs ? require('gulp-file-include') : null; - - /** * Paths to project folders */ var paths = { - input: 'src/**/*', + input: 'src/', output: 'dist/', scripts: { input: 'src/js/*', - output: 'dist/js/' + polyfills: '.polyfill.js', + output: 'dist/' }, styles: { input: 'src/sass/**/*.{scss,sass}', output: 'dist/css/' }, svgs: { - input: 'src/svg/*', + input: 'src/svg/*.svg', output: 'dist/svg/' }, - images: { - input: 'src/img/*', - output: 'dist/img/' + copy: { + input: 'src/copy/*', + output: './' }, - static: { - input: 'src/static/*', - output: 'dist/' - }, - docs: { - input: 'src/docs/*.{html,md,markdown}', - output: 'docs/', - templates: 'src/docs/_templates/', - assets: 'src/docs/assets/**' - } + reload: './' }; @@ -101,14 +47,15 @@ var paths = { */ var banner = { - full : + full: '/*!\n' + - ' * <%= package.name %> v<%= package.version %>: <%= package.description %>\n' + + ' * <%= package.name %> v<%= package.version %>\n' + + ' * <%= package.description %>\n' + ' * (c) ' + new Date().getFullYear() + ' <%= package.author.name %>\n' + ' * <%= package.license %> License\n' + ' * <%= package.repository.url %>\n' + ' */\n\n', - min : + min: '/*!' + ' <%= package.name %> v<%= package.version %>' + ' | (c) ' + new Date().getFullYear() + ' <%= package.author.name %>' + @@ -118,275 +65,251 @@ var banner = { }; +/** + * Gulp Packages + */ + +// General +var {gulp, src, dest, watch, series, parallel} = require('gulp'); +var del = require('del'); +var flatmap = require('gulp-flatmap'); +var lazypipe = require('lazypipe'); +var rename = require('gulp-rename'); +var header = require('gulp-header'); +var package = require('./package.json'); + +// Scripts +var jshint = require('gulp-jshint'); +var stylish = require('jshint-stylish'); +var concat = require('gulp-concat'); +var uglify = require('gulp-uglify'); +var optimizejs = require('gulp-optimize-js'); + +// Styles +var sass = require('gulp-sass'); +var prefix = require('gulp-autoprefixer'); +var minify = require('gulp-cssnano'); + +// SVGs +var svgmin = require('gulp-svgmin'); + +// BrowserSync +var browserSync = require('browser-sync'); + + /** * Gulp Tasks */ +// Remove pre-existing content from output folders +var cleanDist = function (done) { + + // Make sure this feature is activated before running + if (!settings.clean) return done(); + + // Clean the dist folder + del.sync([ + paths.output + ]); + + // Signal completion + return done(); + +}; + +// Repeated JavaScript tasks +var jsTasks = lazypipe() + .pipe(header, banner.full, {package: package}) + .pipe(optimizejs) + .pipe(dest, paths.scripts.output) + .pipe(rename, {suffix: '.min'}) + .pipe(uglify) + .pipe(optimizejs) + .pipe(header, banner.min, {package: package}) + .pipe(dest, paths.scripts.output); + // Lint, minify, and concatenate scripts -gulp.task('build:scripts', ['clean:dist'], function() { - if ( !settings.scripts ) return; - - var fileVersion = settings.cacheBust ? '.' + package.version : ''; - - var jsTasks = lazypipe() - .pipe(header, banner.full, { package : package }) - .pipe(optimizejs) - .pipe(gulp.dest, paths.scripts.output) - .pipe(rename, { suffix: '.min' + fileVersion }) - .pipe(uglify) - .pipe(optimizejs) - .pipe(header, banner.min, { package : package }) - .pipe(gulp.dest, paths.scripts.output); - - return gulp.src(paths.scripts.input) - .pipe(plumber()) - .pipe(tap(function (file, t) { - if ( file.isDirectory() ) { - var name = file.relative + '.js'; - return gulp.src(file.path + '/*.js') - .pipe(concat(name)) +var buildScripts = function (done) { + + // Make sure this feature is activated before running + if (!settings.scripts) return done(); + + // Run tasks on script files + src(paths.scripts.input) + .pipe(flatmap(function(stream, file) { + + // If the file is a directory + if (file.isDirectory()) { + + // Setup a suffix variable + var suffix = ''; + + // If separate polyfill files enabled + if (settings.polyfills) { + + // Update the suffix + suffix = '.polyfills'; + + // Grab files that aren't polyfills, concatenate them, and process them + src([file.path + '/*.js', '!' + file.path + '/*' + paths.scripts.polyfills]) + .pipe(concat(file.relative + '.js')) + .pipe(jsTasks()); + + } + + // Grab all files and concatenate them + // If separate polyfills enabled, this will have .polyfills in the filename + src(file.path + '/*.js') + .pipe(concat(file.relative + suffix + '.js')) .pipe(jsTasks()); + + return stream; + } - })) - .pipe(jsTasks()); -}); + + // Otherwise, process the file + return stream.pipe(jsTasks()); + + })); + + // Signal completion + done(); + +}; + +// Lint scripts +var lintScripts = function (done) { + + // Make sure this feature is activated before running + if (!settings.scripts) return done(); + + // Lint scripts + src(paths.scripts.input) + .pipe(jshint()) + .pipe(jshint.reporter('jshint-stylish')); + + // Signal completion + done(); + +}; // Process, lint, and minify Sass files -gulp.task('build:styles', ['clean:dist'], function() { - if ( !settings.styles ) return; +var buildStyles = function (done) { - var fileVersion = settings.cacheBust ? '.' + package.version : ''; + // Make sure this feature is activated before running + if (!settings.styles) return done(); - return gulp.src(paths.styles.input) - .pipe(plumber()) + // Run tasks on all Sass files + src(paths.styles.input) .pipe(sass({ outputStyle: 'expanded', sourceComments: true })) - .pipe(flatten()) .pipe(prefix({ - browsers: ['last 2 version', '> 1%'], + browsers: ['last 2 version', '> 0.25%'], cascade: true, remove: true })) .pipe(header(banner.full, { package : package })) - .pipe(gulp.dest(paths.styles.output)) - .pipe(rename({ suffix: '.min' + fileVersion })) + .pipe(dest(paths.styles.output)) + .pipe(rename({suffix: '.min'})) .pipe(minify({ discardComments: { removeAll: true } })) .pipe(header(banner.min, { package : package })) - .pipe(gulp.dest(paths.styles.output)); -}); - -// Generate SVG sprites -gulp.task('build:svgs', ['clean:dist'], function () { - if ( !settings.svgs ) return; - - return gulp.src(paths.svgs.input) - .pipe(plumber()) - .pipe(tap(function (file, t) { - if ( file.isDirectory() ) { - var name = file.relative + '.svg'; - return gulp.src(file.path + '/*.svg') - .pipe(svgmin()) - .pipe(svgstore({ - fileName: name, - prefix: 'icon-', - inlineSvg: true - })) - .pipe(gulp.dest(paths.svgs.output)); - } - })) - .pipe(svgmin()) - .pipe(gulp.dest(paths.svgs.output)); -}); + .pipe(dest(paths.styles.output)); -// Copy image files into output folder -gulp.task('build:images', ['clean:dist'], function() { - if ( !settings.images ) return; + // Signal completion + done(); - return gulp.src(paths.images.input) - .pipe(plumber()) - .pipe(gulp.dest(paths.images.output)); -}); +}; -// Copy static files into output folder -gulp.task('build:static', ['clean:dist'], function() { - if ( !settings.static ) return; +// Optimize SVG files +var buildSVGs = function (done) { - return gulp.src(paths.static.input) - .pipe(plumber()) - .pipe(gulp.dest(paths.static.output)); -}); + // Make sure this feature is activated before running + if (!settings.svgs) return done(); -// Lint scripts -gulp.task('lint:scripts', function () { - if ( !settings.scripts ) return; - - return gulp.src(paths.scripts.input) - .pipe(plumber()) - .pipe(jshint()) - .pipe(jshint.reporter('jshint-stylish')); -}); + // Optimize SVG files + src(paths.svgs.input) + .pipe(svgmin()) + .pipe(dest(paths.svgs.output)); -// Remove pre-existing content from output folders -gulp.task('clean:dist', function () { - del.sync([ - paths.output - ]); -}); + // Signal completion + done(); -// Generate documentation -gulp.task('build:docs', ['compile', 'clean:docs'], function() { - if ( !settings.docs ) return; +}; - return gulp.src(paths.docs.input) - .pipe(plumber()) - .pipe(fileinclude({ - prefix: '@@', - basepath: '@file' - })) - .pipe(tap(function (file, t) { - if ( /\.md|\.markdown/.test(file.path) ) { - return t.through(markdown); - } - })) - .pipe(header(fs.readFileSync(paths.docs.templates + '/_header.html', 'utf8'))) - .pipe(footer(fs.readFileSync(paths.docs.templates + '/_footer.html', 'utf8'))) - .pipe(gulp.dest(paths.docs.output)); -}); - -// Copy distribution files to docs -gulp.task('copy:dist', ['compile', 'clean:docs'], function() { - if ( !settings.docs ) return; - - return gulp.src(paths.output + '/**') - .pipe(plumber()) - .pipe(gulp.dest(paths.docs.output + '/dist')); -}); - -// Copy documentation assets to docs -gulp.task('copy:assets', ['clean:docs'], function() { - if ( !settings.docs ) return; - - return gulp.src(paths.docs.assets) - .pipe(plumber()) - .pipe(gulp.dest(paths.docs.output + '/assets')); -}); - -// Remove prexisting content from docs folder -gulp.task('clean:docs', function () { - if ( !settings.docs ) return; - return del.sync(paths.docs.output); -}); - -// Spin up livereload server and listen for file changes -gulp.task('listen', function () { - livereload.listen(); - gulp.watch(paths.input).on('change', function(file) { - gulp.start('default'); - gulp.start('refresh'); - }); -}); +// Copy static files into output folder +var copyFiles = function (done) { -// Run livereload after file change -gulp.task('refresh', ['compile', 'docs'], function () { - livereload.changed(); -}); + // Make sure this feature is activated before running + if (!settings.copy) return done(); -// Add to Git -gulp.task('deploy:gitAdd', ['compile', 'docs'], function () { - if ( !settings.deploy || !settings.gitAdd ) return; + // Copy static files + src(paths.copy.input) + .pipe(dest(paths.copy.output)); - exec('git add -A', function (err, stdout, stderr) { - console.log(stdout); - console.log(stderr); - }); -}); + // Signal completion + done(); -// Commit to Git -gulp.task('deploy:gitCommit', ['compile', 'docs', 'deploy:gitAdd'], function () { - if ( !settings.deploy || !settings.gitCommit ) return; +}; - exec('git commit -a', function (err, stdout, stderr) { - console.log(stdout); - console.log(stderr); - }); -}); +// Watch for changes to the src directory +var startServer = function (done) { -// Push to Git -gulp.task('deploy:gitPush', ['compile', 'docs', 'deploy:gitAdd', 'deploy:gitCommit'], function () { - if ( !settings.deploy || !settings.gitPush ) return; + // Make sure this feature is activated before running + if (!settings.reload) return done(); - exec('BRANCH=$(git symbolic-ref -q HEAD); BRANCH=${BRANCH##refs/heads/}; BRANCH=${BRANCH:-HEAD}; git push origin $BRANCH', function (err, stdout, stderr) { - console.log(stdout); - console.log(stderr); + // Initialize BrowserSync + browserSync.init({ + server: { + baseDir: paths.reload + } }); -}); -// Tag on Git -gulp.task('deploy:gitTag', ['compile', 'docs', 'deploy:gitAdd', 'deploy:gitCommit', 'deploy:gitPush'], function () { - if ( !settings.deploy || !settings.gitTag ) return; + // Signal completion + done(); - exec('git tag -a v' + package.version + '; git push origin v' + package.version, function (err, stdout, stderr) { - console.log(stdout); - console.log(stderr); - }); -}); +}; -// Push to NPM -gulp.task('deploy:npm', ['compile', 'docs', 'deploy:gitAdd', 'deploy:gitCommit', 'deploy:gitPush', 'deploy:gitTag'], function () { - if ( !settings.deploy || !settings.npm ) return; +// Reload the browser when files change +var reloadBrowser = function (done) { + if (!settings.reload) return done(); + browserSync.reload(); + done(); +}; - exec('npm publish', function (err, stdout, stderr) { - console.log(stdout); - console.log(stderr); - }); -}); +// Watch for changes +var watchSource = function (done) { + watch(paths.input, series(exports.default, reloadBrowser)); + done(); +}; /** - * Task Runners + * Export Tasks */ -// Compile files -gulp.task('compile', [ - 'lint:scripts', - 'clean:dist', - 'build:scripts', - 'build:styles', - 'build:images', - 'build:static', - 'build:svgs' -]); - -// Generate documentation -gulp.task('docs', [ - 'clean:docs', - 'build:docs', - 'copy:dist', - 'copy:assets' -]); - -// Compile files and generate docs (default) -gulp.task('default', [ - 'compile', - 'docs' -]); - -// Compile files and generate docs when something changes -gulp.task('watch', [ - 'listen', - 'default' -]); - -gulp.task('deploy', [ - 'deploy:gitAdd', - 'deploy:gitCommit', - 'deploy:gitPush', - 'deploy:gitTag', - 'deploy:npm' -]); \ No newline at end of file +// Default task +// gulp +exports.default = series( + cleanDist, + parallel( + buildScripts, + lintScripts, + buildStyles, + buildSVGs, + copyFiles + ) +); + +// Watch and reload +// gulp watch +exports.watch = series( + exports.default, + startServer, + watchSource +); \ No newline at end of file diff --git a/index.html b/index.html new file mode 100755 index 0000000..a10fdc9 --- /dev/null +++ b/index.html @@ -0,0 +1,149 @@ + + + + + + Smooth Scroll + + + + + + + + +
    + + + +
    +

    + Linear
    + Linear (no other options)
    +

    + +

    + Ease-In
    + Quad
    + Cubic
    + Quart
    + Quint +

    + +

    + Ease-In-Out
    + Quad
    + Cubic
    + Quart
    + Quint +

    + +

    + Ease-Out
    + Quad
    + Cubic
    + Quart
    + Quint +

    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    + Non-ASCII Characters
    + 中文 +

    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    + 中文 + More Special Characters +

    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    myymälä

    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    Bazinga!

    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    Back to the top

    +
    +
    + + + + + + + + \ No newline at end of file diff --git a/jump-to-top.html b/jump-to-top.html new file mode 100644 index 0000000..393e4ad --- /dev/null +++ b/jump-to-top.html @@ -0,0 +1,60 @@ + + + + + + Smooth Scroll + + + + + + + + +
    + + + +
    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    Back to the top

    +
    +
    + + + + + + + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..db08368 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3968 @@ +{ + "name": "smooth-scroll", + "version": "16.1.4", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", + "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "dev": true, + "requires": { + "@babel/highlight": "^7.8.3" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", + "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", + "dev": true + }, + "@babel/highlight": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", + "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.9.0", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz", + "integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.3", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz", + "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz", + "integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.3", + "fastq": "^1.6.0" + } + }, + "@sindresorhus/is": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", + "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==", + "dev": true + }, + "@types/color-name": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", + "dev": true + }, + "@types/events": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", + "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", + "dev": true + }, + "@types/glob": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", + "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", + "dev": true, + "requires": { + "@types/events": "*", + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "@types/minimatch": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", + "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", + "dev": true + }, + "@types/node": { + "version": "13.13.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.4.tgz", + "integrity": "sha512-x26ur3dSXgv5AwKS0lNfbjpCakGIduWU1DU91Zz58ONRWrIKGunmZBNv4P7N+e27sJkiGDsw/3fT4AtsqQBrBA==", + "dev": true + }, + "@types/q": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz", + "integrity": "sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==", + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "arch": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.1.1.tgz", + "integrity": "sha512-BLM56aPo9vLLFVa8+/+pJLnrZ7QGGTVHWsCwieAWT9o9K8UeGaQbzZbGoabWLOo2ksBCztoXdqBZBplqLDDCSg==", + "dev": true + }, + "archive-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-4.0.0.tgz", + "integrity": "sha1-+S5yIzBW38aWlHJ0nCZ72wRrHXA=", + "dev": true, + "requires": { + "file-type": "^4.2.0" + }, + "dependencies": { + "file-type": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz", + "integrity": "sha1-G2AOX8ofvcboDApwxxyNul95BsU=", + "dev": true + } + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base64-js": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", + "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", + "dev": true + }, + "bin-build": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bin-build/-/bin-build-3.0.0.tgz", + "integrity": "sha512-jcUOof71/TNAI2uM5uoUaDq2ePcVBQ3R/qhxAz1rX7UfvduAL/RXD3jXzvn8cVcDJdGVkiR1shal3OH0ImpuhA==", + "dev": true, + "requires": { + "decompress": "^4.0.0", + "download": "^6.2.2", + "execa": "^0.7.0", + "p-map-series": "^1.0.0", + "tempfile": "^2.0.0" + } + }, + "bin-check": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bin-check/-/bin-check-4.1.0.tgz", + "integrity": "sha512-b6weQyEUKsDGFlACWSIOfveEnImkJyK/FGW6FAG42loyoquvjdtOIqO6yBFzHyqyVVhNgNkQxxx09SFLK28YnA==", + "dev": true, + "requires": { + "execa": "^0.7.0", + "executable": "^4.1.0" + } + }, + "bin-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-3.1.0.tgz", + "integrity": "sha512-Mkfm4iE1VFt4xd4vH+gx+0/71esbfus2LsnCGe8Pi4mndSPyT+NGES/Eg99jx8/lUGWfu3z2yuB/bt5UB+iVbQ==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "find-versions": "^3.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "bin-version-check": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-4.0.0.tgz", + "integrity": "sha512-sR631OrhC+1f8Cvs8WyVWOA33Y8tgwjETNPyyD/myRBXLkfS/vl74FmH/lFcRl9KY3zwGh7jFhvyk9vV3/3ilQ==", + "dev": true, + "requires": { + "bin-version": "^3.0.0", + "semver": "^5.6.0", + "semver-truncate": "^1.1.2" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "bin-wrapper": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-4.1.0.tgz", + "integrity": "sha512-hfRmo7hWIXPkbpi0ZltboCMVrU+0ClXR/JgbCKKjlDjQf6igXa7OwdqNcFWQZPZTgiY7ZpzE3+LjjkLiTN2T7Q==", + "dev": true, + "requires": { + "bin-check": "^4.1.0", + "bin-version-check": "^4.0.0", + "download": "^7.1.0", + "import-lazy": "^3.1.0", + "os-filter-obj": "^2.0.0", + "pify": "^4.0.1" + }, + "dependencies": { + "download": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/download/-/download-7.1.0.tgz", + "integrity": "sha512-xqnBTVd/E+GxJVrX5/eUJiLYjCGPwMpdL+jGhGU57BvtcA7wwhtHVbXBeUk51kOpW3S7Jn3BQbN9Q1R1Km2qDQ==", + "dev": true, + "requires": { + "archive-type": "^4.0.0", + "caw": "^2.0.1", + "content-disposition": "^0.5.2", + "decompress": "^4.2.0", + "ext-name": "^5.0.0", + "file-type": "^8.1.0", + "filenamify": "^2.0.0", + "get-stream": "^3.0.0", + "got": "^8.3.1", + "make-dir": "^1.2.0", + "p-event": "^2.1.0", + "pify": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "file-type": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-8.1.0.tgz", + "integrity": "sha512-qyQ0pzAy78gVoJsmYeNgl8uH8yKhr1lVhW7JbzJmnlRi0I4R2eEDEJZVKG8agpDnLpacwNbDhLNG/LMdxHD2YQ==", + "dev": true + }, + "got": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", + "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==", + "dev": true, + "requires": { + "@sindresorhus/is": "^0.7.0", + "cacheable-request": "^2.1.1", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "into-stream": "^3.1.0", + "is-retry-allowed": "^1.1.0", + "isurl": "^1.0.0-alpha5", + "lowercase-keys": "^1.0.0", + "mimic-response": "^1.0.0", + "p-cancelable": "^0.4.0", + "p-timeout": "^2.0.1", + "pify": "^3.0.0", + "safe-buffer": "^5.1.1", + "timed-out": "^4.0.1", + "url-parse-lax": "^3.0.0", + "url-to-options": "^1.0.1" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "p-cancelable": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", + "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==", + "dev": true + }, + "p-event": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-2.3.1.tgz", + "integrity": "sha512-NQCqOFhbpVTMX4qMe8PF8lbGtzZ+LCiN7pcNrb/413Na7+TRoe1xkKUzuWa/YEJdGQ0FvKtj35EEbDoVPO2kbA==", + "dev": true, + "requires": { + "p-timeout": "^2.0.1" + } + }, + "p-timeout": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", + "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", + "dev": true, + "requires": { + "p-finally": "^1.0.0" + } + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "dev": true, + "requires": { + "prepend-http": "^2.0.0" + } + } + } + }, + "binary-extensions": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", + "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==", + "dev": true + }, + "bl": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", + "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", + "dev": true, + "requires": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "buffer": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", + "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "dev": true, + "requires": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", + "dev": true + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "dev": true + }, + "buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=", + "dev": true + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "cacheable-request": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", + "integrity": "sha1-DYCIAbY0KtM8kd+dC0TcCbkeXD0=", + "dev": true, + "requires": { + "clone-response": "1.0.2", + "get-stream": "3.0.0", + "http-cache-semantics": "3.8.1", + "keyv": "3.0.0", + "lowercase-keys": "1.0.0", + "normalize-url": "2.0.1", + "responselike": "1.0.2" + }, + "dependencies": { + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "dev": true + } + } + }, + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", + "dev": true + }, + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", + "dev": true, + "requires": { + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" + } + }, + "caw": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/caw/-/caw-2.0.1.tgz", + "integrity": "sha512-Cg8/ZSBEa8ZVY9HspcGUYaK63d/bN7rqS3CYCzEGUxuYv6UlmcjzDUz2fCFFHyTvUW5Pk0I+3hkA3iXlIj6guA==", + "dev": true, + "requires": { + "get-proxy": "^2.0.0", + "isurl": "^1.0.0-alpha5", + "tunnel-agent": "^0.6.0", + "url-to-options": "^1.0.1" + } + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "chokidar": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz", + "integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==", + "dev": true, + "requires": { + "anymatch": "~3.1.1", + "braces": "~3.0.2", + "fsevents": "~2.1.2", + "glob-parent": "~5.1.0", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.4.0" + } + }, + "cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "requires": { + "restore-cursor": "^3.1.0" + } + }, + "cli-spinners": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.3.0.tgz", + "integrity": "sha512-Xs2Hf2nzrvJMFKimOR7YR0QwZ8fc0u98kdtwN1eNAZzNQgH3vK2pXzff6GJtKh7S5hoJ87ECiAiZFS2fb5Ii2w==", + "dev": true + }, + "clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", + "dev": true + }, + "clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "coa": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", + "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", + "dev": true, + "requires": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", + "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", + "dev": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "config-chain": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", + "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==", + "dev": true, + "requires": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "console-stream": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/console-stream/-/console-stream-0.1.1.tgz", + "integrity": "sha1-oJX+B7IEZZVfL6/Si11yvM2UnUQ=", + "dev": true + }, + "content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dev": true, + "requires": { + "safe-buffer": "5.1.2" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "css-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", + "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "css-select-base-adapter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", + "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==", + "dev": true + }, + "css-tree": { + "version": "1.0.0-alpha.37", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", + "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", + "dev": true, + "requires": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + } + }, + "css-what": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.2.1.tgz", + "integrity": "sha512-WwOrosiQTvyms+Ti5ZC5vGEK0Vod3FTt1ca+payZqvKuGJF+dq7bG63DstxtN0dpm6FxY27a/zS3Wten+gEtGw==", + "dev": true + }, + "csso": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.0.3.tgz", + "integrity": "sha512-NL3spysxUkcrOgnpsT4Xdl2aiEiBG6bXswAABQVHcMrfjjBisFOKwLDOmf4wf32aPdcJws1zds2B0Rg+jqMyHQ==", + "dev": true, + "requires": { + "css-tree": "1.0.0-alpha.39" + }, + "dependencies": { + "css-tree": { + "version": "1.0.0-alpha.39", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.39.tgz", + "integrity": "sha512-7UvkEYgBAHRG9Nt980lYxjsTrCyHFN53ky3wVsDkiMdVqylqRt+Zc+jm5qw7/qyOvN2dHSYtX0e4MbCCExSvnA==", + "dev": true, + "requires": { + "mdn-data": "2.0.6", + "source-map": "^0.6.1" + } + }, + "mdn-data": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.6.tgz", + "integrity": "sha512-rQvjv71olwNHgiTbfPZFkJtjNMciWgswYeciZhtvWLO8bmX3TnhyA62I6sTWOyZssWHJJjY6/KiWwqQsWWsqOA==", + "dev": true + } + } + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "dev": true, + "requires": { + "array-find-index": "^1.0.1" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "dev": true, + "requires": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + } + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, + "decompress": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", + "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", + "dev": true, + "requires": { + "decompress-tar": "^4.0.0", + "decompress-tarbz2": "^4.0.0", + "decompress-targz": "^4.0.0", + "decompress-unzip": "^4.0.1", + "graceful-fs": "^4.1.10", + "make-dir": "^1.0.0", + "pify": "^2.3.0", + "strip-dirs": "^2.0.0" + }, + "dependencies": { + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + } + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "decompress-tar": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", + "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", + "dev": true, + "requires": { + "file-type": "^5.2.0", + "is-stream": "^1.1.0", + "tar-stream": "^1.5.2" + }, + "dependencies": { + "file-type": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "integrity": "sha1-LdvqfHP/42No365J3DOMBYwritY=", + "dev": true + } + } + }, + "decompress-tarbz2": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", + "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", + "dev": true, + "requires": { + "decompress-tar": "^4.1.0", + "file-type": "^6.1.0", + "is-stream": "^1.1.0", + "seek-bzip": "^1.0.5", + "unbzip2-stream": "^1.0.9" + }, + "dependencies": { + "file-type": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", + "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==", + "dev": true + } + } + }, + "decompress-targz": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", + "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", + "dev": true, + "requires": { + "decompress-tar": "^4.1.1", + "file-type": "^5.2.0", + "is-stream": "^1.1.0" + }, + "dependencies": { + "file-type": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "integrity": "sha1-LdvqfHP/42No365J3DOMBYwritY=", + "dev": true + } + } + }, + "decompress-unzip": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", + "integrity": "sha1-3qrM39FK6vhVePczroIQ+bSEj2k=", + "dev": true, + "requires": { + "file-type": "^3.8.0", + "get-stream": "^2.2.0", + "pify": "^2.3.0", + "yauzl": "^2.4.2" + }, + "dependencies": { + "file-type": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", + "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=", + "dev": true + }, + "get-stream": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", + "integrity": "sha1-Xzj5PzRgCWZu4BUKBUFn+Rvdld4=", + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "defaults": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", + "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", + "dev": true, + "requires": { + "clone": "^1.0.2" + } + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + }, + "dependencies": { + "domelementtype": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.1.tgz", + "integrity": "sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==", + "dev": true + } + } + }, + "domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true + }, + "domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dev": true, + "requires": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "download": { + "version": "6.2.5", + "resolved": "https://registry.npmjs.org/download/-/download-6.2.5.tgz", + "integrity": "sha512-DpO9K1sXAST8Cpzb7kmEhogJxymyVUd5qz/vCOSyvwtp2Klj2XcDt5YUuasgxka44SxF0q5RriKIwJmQHG2AuA==", + "dev": true, + "requires": { + "caw": "^2.0.0", + "content-disposition": "^0.5.2", + "decompress": "^4.0.0", + "ext-name": "^5.0.0", + "file-type": "5.2.0", + "filenamify": "^2.0.0", + "get-stream": "^3.0.0", + "got": "^7.0.0", + "make-dir": "^1.0.0", + "p-event": "^1.0.0", + "pify": "^3.0.0" + }, + "dependencies": { + "file-type": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "integrity": "sha1-LdvqfHP/42No365J3DOMBYwritY=", + "dev": true + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + } + } + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "entities": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", + "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.17.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", + "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "estree-walker": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", + "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", + "dev": true + }, + "exec-buffer": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/exec-buffer/-/exec-buffer-3.2.0.tgz", + "integrity": "sha512-wsiD+2Tp6BWHoVv3B+5Dcx6E7u5zky+hUwOHjuH2hKSLR3dvRmX8fk8UD8uqQixHs4Wk6eDmiegVrMPjKj7wpA==", + "dev": true, + "requires": { + "execa": "^0.7.0", + "p-finally": "^1.0.0", + "pify": "^3.0.0", + "rimraf": "^2.5.4", + "tempfile": "^2.0.0" + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "dev": true, + "requires": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "executable": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", + "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", + "dev": true, + "requires": { + "pify": "^2.2.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "ext-list": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", + "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", + "dev": true, + "requires": { + "mime-db": "^1.28.0" + } + }, + "ext-name": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", + "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", + "dev": true, + "requires": { + "ext-list": "^2.0.0", + "sort-keys-length": "^1.0.0" + } + }, + "fast-glob": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.2.tgz", + "integrity": "sha512-UDV82o4uQyljznxwMxyVRJgZZt3O5wENYojjzbaGEGZgeOxkLFf+V4cnUD+krzb2F72E18RhamkMZ7AdeggF7A==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + } + }, + "fastq": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.7.0.tgz", + "integrity": "sha512-YOadQRnHd5q6PogvAR/x62BGituF2ufiEA6s8aavQANw5YKHERI4AREboX6KotzP8oX2klxYF2wcV/7bn1clfQ==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "file-type": { + "version": "12.4.2", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz", + "integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg==", + "dev": true + }, + "filename-reserved-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", + "integrity": "sha1-q/c9+rc10EVECr/qLZHzieu/oik=", + "dev": true + }, + "filenamify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-2.1.0.tgz", + "integrity": "sha512-ICw7NTT6RsDp2rnYKVd8Fu4cr6ITzGy3+u4vUujPkabyaz+03F24NWEX7fs5fp+kBonlaqPH8fAO2NM+SXt/JA==", + "dev": true, + "requires": { + "filename-reserved-regex": "^2.0.0", + "strip-outer": "^1.0.0", + "trim-repeated": "^1.0.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "find-versions": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-3.2.0.tgz", + "integrity": "sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww==", + "dev": true, + "requires": { + "semver-regex": "^2.0.0" + } + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", + "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "get-proxy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/get-proxy/-/get-proxy-2.1.0.tgz", + "integrity": "sha512-zmZIaQTWnNQb4R4fJUEp/FC51eZsc6EkErspy3xtIYStaq8EB/hDIWipxsal+E8rz0qD7f2sL/NA9Xee4RInJw==", + "dev": true, + "requires": { + "npm-conf": "^1.1.0" + } + }, + "get-stdin": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz", + "integrity": "sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==", + "dev": true + }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "dev": true + }, + "gifsicle": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/gifsicle/-/gifsicle-4.0.1.tgz", + "integrity": "sha512-A/kiCLfDdV+ERV/UB+2O41mifd+RxH8jlRG8DMxZO84Bma/Fw0htqZ+hY2iaalLRNyUu7tYZQslqUBJxBggxbg==", + "dev": true, + "optional": true, + "requires": { + "bin-build": "^3.0.0", + "bin-wrapper": "^4.0.0", + "execa": "^1.0.0", + "logalot": "^2.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "optional": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "optional": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "optional": true, + "requires": { + "pump": "^3.0.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "optional": true + } + } + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", + "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "globby": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", + "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", + "dev": true, + "requires": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + } + }, + "got": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/got/-/got-7.1.0.tgz", + "integrity": "sha512-Y5WMo7xKKq1muPsxD+KmrR8DH5auG7fBdDVueZwETwV6VytKyU9OX/ddpq2/1hp1vIPvVb4T81dKQz3BivkNLw==", + "dev": true, + "requires": { + "decompress-response": "^3.2.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "is-plain-obj": "^1.1.0", + "is-retry-allowed": "^1.0.0", + "is-stream": "^1.0.0", + "isurl": "^1.0.0-alpha5", + "lowercase-keys": "^1.0.0", + "p-cancelable": "^0.3.0", + "p-timeout": "^1.1.1", + "safe-buffer": "^5.0.1", + "timed-out": "^4.0.0", + "url-parse-lax": "^1.0.0", + "url-to-options": "^1.0.1" + } + }, + "graceful-fs": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", + "dev": true + }, + "graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbol-support-x": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", + "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==", + "dev": true + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "has-to-string-tag-x": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", + "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", + "dev": true, + "requires": { + "has-symbol-support-x": "^1.4.1" + } + }, + "hosted-git-info": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", + "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", + "dev": true + }, + "html-comment-regex": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.2.tgz", + "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==", + "dev": true, + "optional": true + }, + "http-cache-semantics": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", + "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==", + "dev": true + }, + "ieee754": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", + "dev": true + }, + "ignore": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.4.tgz", + "integrity": "sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==", + "dev": true + }, + "imagemin": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-7.0.1.tgz", + "integrity": "sha512-33AmZ+xjZhg2JMCe+vDf6a9mzWukE7l+wAtesjE7KyteqqKjzxv7aVQeWnul1Ve26mWvEQqyPwl0OctNBfSR9w==", + "dev": true, + "requires": { + "file-type": "^12.0.0", + "globby": "^10.0.0", + "graceful-fs": "^4.2.2", + "junk": "^3.1.0", + "make-dir": "^3.0.0", + "p-pipe": "^3.0.0", + "replace-ext": "^1.0.0" + } + }, + "imagemin-cli": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/imagemin-cli/-/imagemin-cli-5.1.0.tgz", + "integrity": "sha512-wE7vVK4IaMieshW/3zl2s5b6Yw8zqF9H+II3Bjf95ntY2M17k21ht5JAM2oNuXRxD3t6WWWERqIRcA1Gma/anQ==", + "dev": true, + "requires": { + "arrify": "^2.0.1", + "get-stdin": "^7.0.0", + "imagemin": "^7.0.0", + "imagemin-gifsicle": "^6.0.0", + "imagemin-jpegtran": "^6.0.0", + "imagemin-optipng": "^6.0.0", + "imagemin-svgo": "^7.0.0", + "lodash.pairs": "^3.0.1", + "meow": "^5.0.0", + "ora": "^4.0.3", + "plur": "^3.0.1", + "strip-indent": "^3.0.0" + } + }, + "imagemin-gifsicle": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/imagemin-gifsicle/-/imagemin-gifsicle-6.0.1.tgz", + "integrity": "sha512-kuu47c6iKDQ6R9J10xCwL0lgs0+sMz3LRHqRcJ2CRBWdcNmo3T5hUaM8hSZfksptZXJLGKk8heSAvwtSdB1Fng==", + "dev": true, + "optional": true, + "requires": { + "exec-buffer": "^3.0.0", + "gifsicle": "^4.0.0", + "is-gif": "^3.0.0" + } + }, + "imagemin-jpegtran": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/imagemin-jpegtran/-/imagemin-jpegtran-6.0.0.tgz", + "integrity": "sha512-Ih+NgThzqYfEWv9t58EItncaaXIHR0u9RuhKa8CtVBlMBvY0dCIxgQJQCfwImA4AV1PMfmUKlkyIHJjb7V4z1g==", + "dev": true, + "optional": true, + "requires": { + "exec-buffer": "^3.0.0", + "is-jpg": "^2.0.0", + "jpegtran-bin": "^4.0.0" + } + }, + "imagemin-mozjpeg": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/imagemin-mozjpeg/-/imagemin-mozjpeg-8.0.0.tgz", + "integrity": "sha512-+EciPiIjCb8JWjQNr1q8sYWYf7GDCNDxPYnkD11TNIjjWNzaV+oTg4DpOPQjl5ZX/KRCPMEgS79zLYAQzLitIA==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "is-jpg": "^2.0.0", + "mozjpeg": "^6.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "imagemin-optipng": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/imagemin-optipng/-/imagemin-optipng-6.0.0.tgz", + "integrity": "sha512-FoD2sMXvmoNm/zKPOWdhKpWdFdF9qiJmKC17MxZJPH42VMAp17/QENI/lIuP7LCUnLVAloO3AUoTSNzfhpyd8A==", + "dev": true, + "optional": true, + "requires": { + "exec-buffer": "^3.0.0", + "is-png": "^1.0.0", + "optipng-bin": "^5.0.0" + } + }, + "imagemin-pngcrush": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/imagemin-pngcrush/-/imagemin-pngcrush-6.0.0.tgz", + "integrity": "sha512-9Je0uUnzgZGLDDjsJxUlwozHS2aO/NmGRPUKcBzbpiliHI2W40HcRXYUaNNOMePGAWDCYJkJQ0rS5UG1JCguMA==", + "dev": true, + "requires": { + "exec-buffer": "^3.0.0", + "is-png": "^1.0.0", + "pngcrush-bin": "^4.0.0" + } + }, + "imagemin-pngquant": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/imagemin-pngquant/-/imagemin-pngquant-8.0.0.tgz", + "integrity": "sha512-PVq0diOxO+Zyq/zlMCz2Pfu6mVLHgiT1GpW702OwVlnej+NhS6ZQegYi3OFEDW8d7GxouyR5e8R+t53SMciOeg==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "is-png": "^2.0.0", + "is-stream": "^2.0.0", + "ow": "^0.13.2", + "pngquant-bin": "^5.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "dependencies": { + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + } + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "is-png": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-png/-/is-png-2.0.0.tgz", + "integrity": "sha512-4KPGizaVGj2LK7xwJIz8o5B2ubu1D/vcQsgOGFEDlpcvgZHto4gBnyd0ig7Ws+67ixmwKoNmu0hYnpo6AaKb5g==", + "dev": true + }, + "is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "imagemin-svgo": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/imagemin-svgo/-/imagemin-svgo-7.1.0.tgz", + "integrity": "sha512-0JlIZNWP0Luasn1HT82uB9nU9aa+vUj6kpT+MjPW11LbprXC+iC4HDwn1r4Q2/91qj4iy9tRZNsFySMlEpLdpg==", + "dev": true, + "optional": true, + "requires": { + "is-svg": "^4.2.1", + "svgo": "^1.3.2" + } + }, + "imagemin-zopfli": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/imagemin-zopfli/-/imagemin-zopfli-6.0.0.tgz", + "integrity": "sha512-vmhMzV7m5o6QxgHpIDaBbKx/exWdIylwxV0hrxKECnPmt072A2qPtM8HCHu9EbrQctFk3KR8kN+cWFnk6EwzKQ==", + "dev": true, + "requires": { + "exec-buffer": "^3.0.0", + "is-png": "^1.0.0", + "zopflipng-bin": "^5.0.0" + } + }, + "import-lazy": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-3.1.0.tgz", + "integrity": "sha512-8/gvXvX2JMn0F+CDlSC4l6kOmVaLOO3XLkksI7CI3Ud95KDYJuYur2b9P/PUt/i/pDAMd/DulQsNbbbmRRsDIQ==", + "dev": true + }, + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "into-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", + "integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=", + "dev": true, + "requires": { + "from2": "^2.1.1", + "p-is-promise": "^1.1.0" + } + }, + "irregular-plurals": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-2.0.0.tgz", + "integrity": "sha512-Y75zBYLkh0lJ9qxeHlMjQ7bSbyiSqNW/UOPWDmzC7cXskL1hekSITh1Oc6JV0XCWWZ9DE8VYSB71xocLk3gmGw==", + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-callable": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", + "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", + "dev": true + }, + "is-date-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", + "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-finite": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", + "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==", + "dev": true + }, + "is-gif": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-gif/-/is-gif-3.0.0.tgz", + "integrity": "sha512-IqJ/jlbw5WJSNfwQ/lHEDXF8rxhRgF6ythk2oiEvhpG29F704eX9NO6TvPfMiq9DrbwgcEDnETYNcZDPewQoVw==", + "dev": true, + "optional": true, + "requires": { + "file-type": "^10.4.0" + }, + "dependencies": { + "file-type": { + "version": "10.11.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-10.11.0.tgz", + "integrity": "sha512-uzk64HRpUZyTGZtVuvrjP0FYxzQrBf4rojot6J65YMEbwBLB0CWm0CLojVpwpmFmxcE/lkvYICgfcGozbBq6rw==", + "dev": true, + "optional": true + } + } + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true + }, + "is-jpg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-jpg/-/is-jpg-2.0.0.tgz", + "integrity": "sha1-LhmX+m6RZuqsAkLarkQ0A+TvHZc=", + "dev": true + }, + "is-natural-number": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", + "integrity": "sha1-q5124dtM7VHjXeDHLr7PCfc0zeg=", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", + "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=", + "dev": true + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-png": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-png/-/is-png-1.1.0.tgz", + "integrity": "sha1-1XSxK/J1wDUEVVcLDltXqwYgd84=", + "dev": true + }, + "is-regex": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", + "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-retry-allowed": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-svg": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-4.2.1.tgz", + "integrity": "sha512-PHx3ANecKsKNl5y5+Jvt53Y4J7MfMpbNZkv384QNiswMKAWIbvcqbPz+sYbFKJI8Xv3be01GSFniPmoaP+Ai5A==", + "dev": true, + "optional": true, + "requires": { + "html-comment-regex": "^1.1.2" + } + }, + "is-symbol": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", + "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isurl": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", + "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", + "dev": true, + "requires": { + "has-to-string-tag-x": "^1.2.0", + "is-object": "^1.0.1" + } + }, + "jest-worker": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", + "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==", + "dev": true, + "requires": { + "merge-stream": "^2.0.0", + "supports-color": "^6.1.0" + }, + "dependencies": { + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "jpegtran-bin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jpegtran-bin/-/jpegtran-bin-4.0.0.tgz", + "integrity": "sha512-2cRl1ism+wJUoYAYFt6O/rLBfpXNWG2dUWbgcEkTt5WGMnqI46eEro8T4C5zGROxKRqyKpCBSdHPvt5UYCtxaQ==", + "dev": true, + "optional": true, + "requires": { + "bin-build": "^3.0.0", + "bin-wrapper": "^4.0.0", + "logalot": "^2.0.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", + "dev": true + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "junk": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz", + "integrity": "sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==", + "dev": true + }, + "keyv": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", + "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", + "dev": true, + "requires": { + "json-buffer": "3.0.0" + } + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, + "dependencies": { + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + } + } + }, + "lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", + "dev": true + }, + "lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", + "dev": true + }, + "lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", + "dev": true + }, + "lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", + "dev": true, + "requires": { + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } + }, + "lodash.pairs": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash.pairs/-/lodash.pairs-3.0.1.tgz", + "integrity": "sha1-u+CNV4bu6qCaFckevw3LfSvjJqk=", + "dev": true, + "requires": { + "lodash.keys": "^3.0.0" + } + }, + "log-symbols": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", + "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", + "dev": true, + "requires": { + "chalk": "^2.4.2" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "logalot": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/logalot/-/logalot-2.1.0.tgz", + "integrity": "sha1-X46MkNME7fElMJUaVVSruMXj9VI=", + "dev": true, + "requires": { + "figures": "^1.3.5", + "squeak": "^1.0.0" + } + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "dev": true, + "requires": { + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" + } + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true + }, + "lpad-align": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/lpad-align/-/lpad-align-1.1.2.tgz", + "integrity": "sha1-IfYArBwwlcPG5JfuZyce4ISB/p4=", + "dev": true, + "requires": { + "get-stdin": "^4.0.1", + "indent-string": "^2.1.0", + "longest": "^1.0.0", + "meow": "^3.3.0" + }, + "dependencies": { + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", + "dev": true, + "requires": { + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" + } + } + } + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + } + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + }, + "mdn-data": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", + "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==", + "dev": true + }, + "meow": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", + "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", + "dev": true, + "requires": { + "camelcase-keys": "^4.0.0", + "decamelize-keys": "^1.0.0", + "loud-rejection": "^1.0.0", + "minimist-options": "^3.0.1", + "normalize-package-data": "^2.3.4", + "read-pkg-up": "^3.0.0", + "redent": "^2.0.0", + "trim-newlines": "^2.0.0", + "yargs-parser": "^10.0.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "^4.1.0", + "map-obj": "^2.0.0", + "quick-lru": "^1.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "^2.0.0", + "read-pkg": "^3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "^3.0.0", + "strip-indent": "^2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "merge2": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz", + "integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "mime-db": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", + "dev": true + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true + }, + "min-indent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.0.tgz", + "integrity": "sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "minimist-options": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", + "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0" + }, + "dependencies": { + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + } + } + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "mozjpeg": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/mozjpeg/-/mozjpeg-6.0.1.tgz", + "integrity": "sha512-9Z59pJMi8ni+IUvSH5xQwK5tNLw7p3dwDNCZ3o1xE+of3G5Hc/yOz6Ue/YuLiBXU3ZB5oaHPURyPdqfBX/QYJA==", + "dev": true, + "requires": { + "bin-build": "^3.0.0", + "bin-wrapper": "^4.0.0", + "logalot": "^2.1.0" + } + }, + "mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "normalize-url": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", + "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", + "dev": true, + "requires": { + "prepend-http": "^2.0.0", + "query-string": "^5.0.1", + "sort-keys": "^2.0.0" + }, + "dependencies": { + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true + }, + "sort-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", + "integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=", + "dev": true, + "requires": { + "is-plain-obj": "^1.0.0" + } + } + } + }, + "npm-conf": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz", + "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==", + "dev": true, + "requires": { + "config-chain": "^1.1.11", + "pify": "^3.0.0" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "nth-check": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "dev": true, + "requires": { + "boolbase": "~1.0.0" + } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-inspect": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", + "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", + "dev": true + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "object.getownpropertydescriptors": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz", + "integrity": "sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1" + } + }, + "object.values": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.1.tgz", + "integrity": "sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1", + "function-bind": "^1.1.1", + "has": "^1.0.3" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", + "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "optipng-bin": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/optipng-bin/-/optipng-bin-5.1.0.tgz", + "integrity": "sha512-9baoqZTNNmXQjq/PQTWEXbVV3AMO2sI/GaaqZJZ8SExfAzjijeAP7FEeT+TtyumSw7gr0PZtSUYB/Ke7iHQVKA==", + "dev": true, + "optional": true, + "requires": { + "bin-build": "^3.0.0", + "bin-wrapper": "^4.0.0", + "logalot": "^2.0.0" + } + }, + "ora": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/ora/-/ora-4.0.4.tgz", + "integrity": "sha512-77iGeVU1cIdRhgFzCK8aw1fbtT1B/iZAvWjS+l/o1x0RShMgxHUZaD2yDpWsNCPwXg9z1ZA78Kbdvr8kBmG/Ww==", + "dev": true, + "requires": { + "chalk": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.2.0", + "is-interactive": "^1.0.0", + "log-symbols": "^3.0.0", + "mute-stream": "0.0.8", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, + "ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "dev": true, + "requires": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + }, + "supports-color": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "os-filter-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/os-filter-obj/-/os-filter-obj-2.0.0.tgz", + "integrity": "sha512-uksVLsqG3pVdzzPvmAHpBK0wKxYItuzZr7SziusRPoz67tGV8rL1szZ6IdeUrbqLjGDwApBtN29eEE3IqGHOjg==", + "dev": true, + "requires": { + "arch": "^2.1.0" + } + }, + "ow": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/ow/-/ow-0.13.2.tgz", + "integrity": "sha512-9wvr+q+ZTDRvXDjL6eDOdFe5WUl/wa5sntf9kAolxqSpkBqaIObwLgFCGXSJASFw+YciXnOVtDWpxXa9cqV94A==", + "dev": true, + "requires": { + "type-fest": "^0.5.1" + } + }, + "p-cancelable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz", + "integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==", + "dev": true + }, + "p-event": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-1.3.0.tgz", + "integrity": "sha1-jmtPT2XHK8W2/ii3XtqHT5akoIU=", + "dev": true, + "requires": { + "p-timeout": "^1.1.1" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-is-promise": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", + "integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=", + "dev": true + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-map-series": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-map-series/-/p-map-series-1.0.0.tgz", + "integrity": "sha1-v5j+V1cFZYqeE1G++4WuTB8Hvco=", + "dev": true, + "requires": { + "p-reduce": "^1.0.0" + } + }, + "p-pipe": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-pipe/-/p-pipe-3.0.0.tgz", + "integrity": "sha512-gwwdRFmaxsT3IU+Tl3vYKVRdjfhg8Bbdjw7B+E0y6F7Yz6l+eaQLn0BRmGMXIhcPDONPtOkMoNwx1etZh4zPJA==", + "dev": true + }, + "p-reduce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz", + "integrity": "sha1-GMKw3ZNqRpClKfgjH1ig/bakffo=", + "dev": true + }, + "p-timeout": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-1.2.1.tgz", + "integrity": "sha1-XrOzU7f86Z8QGhA4iAuwVOu+o4Y=", + "dev": true, + "requires": { + "p-finally": "^1.0.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", + "dev": true + }, + "picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "plur": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/plur/-/plur-3.1.1.tgz", + "integrity": "sha512-t1Ax8KUvV3FFII8ltczPn2tJdjqbd1sIzu6t4JL7nQ3EyeL/lTrj5PWKb06ic5/6XYDr65rQ4uzQEGN70/6X5w==", + "dev": true, + "requires": { + "irregular-plurals": "^2.0.0" + } + }, + "pngcrush-bin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pngcrush-bin/-/pngcrush-bin-4.0.0.tgz", + "integrity": "sha512-SFR9a/OgkuFiiksjM6yevTGvOdn+7JrL5r0j/zCVAZTurfRzh2smwDRYKnPMEwxgVOkwWt/tlVWRJUstSH7RcA==", + "dev": true, + "requires": { + "bin-build": "^3.0.0", + "bin-wrapper": "^4.0.0", + "logalot": "^2.0.0" + } + }, + "pngquant-bin": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/pngquant-bin/-/pngquant-bin-5.0.2.tgz", + "integrity": "sha512-OLdT+4JZx5BqE1CFJkrvomYV0aSsv6x2Bba+aWaVc0PMfWlE+ZByNKYAdKeIqsM4uvW1HOSEHnf8KcOnykPNxA==", + "dev": true, + "requires": { + "bin-build": "^3.0.0", + "bin-wrapper": "^4.0.1", + "execa": "^0.10.0", + "logalot": "^2.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.10.0.tgz", + "integrity": "sha512-7XOMnz8Ynx1gGo/3hyV9loYNPWM94jG3+3T3Y8tsfSstFmETmENCMU/A/zj8Lyaj1lkgEepKepvd6240tBRvlw==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + }, + "query-string": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", + "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "dev": true, + "requires": { + "decode-uri-component": "^0.2.0", + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + } + }, + "quick-lru": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "dev": true + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + }, + "dependencies": { + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "readdirp": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz", + "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "dev": true, + "requires": { + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" + }, + "dependencies": { + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", + "dev": true, + "requires": { + "get-stdin": "^4.0.1" + } + } + } + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "^1.0.0" + } + }, + "replace-ext": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true + }, + "resolve": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "dev": true, + "requires": { + "lowercase-keys": "^1.0.0" + } + }, + "restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "requires": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + } + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "rollup": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.7.3.tgz", + "integrity": "sha512-lAWJGZ5BQzcu/5fhMKGJrh5oy9LQUoaCid8cQV8k+E2vE9E/UWptzcM+bSBg+u8akORsvnybsqQUE/wVChIazg==", + "dev": true, + "requires": { + "fsevents": "~2.1.2" + } + }, + "rollup-plugin-terser": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-5.3.0.tgz", + "integrity": "sha512-XGMJihTIO3eIBsVGq7jiNYOdDMb3pVxuzY0uhOE/FM4x/u9nQgr3+McsjzqBn3QfHIpNSZmFnpoKAwHBEcsT7g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "jest-worker": "^24.9.0", + "rollup-pluginutils": "^2.8.2", + "serialize-javascript": "^2.1.2", + "terser": "^4.6.2" + } + }, + "rollup-pluginutils": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", + "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", + "dev": true, + "requires": { + "estree-walker": "^0.6.1" + } + }, + "run-parallel": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz", + "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==", + "dev": true + }, + "safe-buffer": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", + "dev": true + }, + "sass": { + "version": "1.26.5", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.26.5.tgz", + "integrity": "sha512-FG2swzaZUiX53YzZSjSakzvGtlds0lcbF+URuU9mxOv7WBh7NhXEVDa4kPKN4hN6fC2TkOTOKqiqp6d53N9X5Q==", + "dev": true, + "requires": { + "chokidar": ">=2.0.0 <4.0.0" + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "seek-bzip": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz", + "integrity": "sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=", + "dev": true, + "requires": { + "commander": "~2.8.1" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + }, + "semver-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-2.0.0.tgz", + "integrity": "sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw==", + "dev": true + }, + "semver-truncate": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-1.1.2.tgz", + "integrity": "sha1-V/Qd5pcHpicJp+AQS6IRcQnqR+g=", + "dev": true, + "requires": { + "semver": "^5.3.0" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "serialize-javascript": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz", + "integrity": "sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "sort-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "integrity": "sha1-RBttTTRnmPG05J6JIK37oOVD+a0=", + "dev": true, + "requires": { + "is-plain-obj": "^1.0.0" + } + }, + "sort-keys-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", + "integrity": "sha1-nLb09OnkgVWmqgZx7dM2/xR5oYg=", + "dev": true, + "requires": { + "sort-keys": "^1.0.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", + "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "squeak": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/squeak/-/squeak-1.3.0.tgz", + "integrity": "sha1-MwRQN7ZDiLVnZ0uEMiplIQc5FsM=", + "dev": true, + "requires": { + "chalk": "^1.0.0", + "console-stream": "^0.1.1", + "lpad-align": "^1.0.1" + } + }, + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true + }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", + "dev": true + }, + "string.prototype.trimend": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", + "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "string.prototype.trimleft": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz", + "integrity": "sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5", + "string.prototype.trimstart": "^1.0.0" + } + }, + "string.prototype.trimright": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz", + "integrity": "sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5", + "string.prototype.trimend": "^1.0.0" + } + }, + "string.prototype.trimstart": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", + "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + }, + "strip-dirs": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", + "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", + "dev": true, + "requires": { + "is-natural-number": "^4.0.1" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "requires": { + "min-indent": "^1.0.0" + } + }, + "strip-outer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", + "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.2" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "svgo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", + "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "tar-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", + "dev": true, + "requires": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + } + }, + "temp-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-1.0.0.tgz", + "integrity": "sha1-CnwOom06Oa+n4OvqnB/AvE2qAR0=", + "dev": true + }, + "tempfile": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-2.0.0.tgz", + "integrity": "sha1-awRGhWqbERTRhW/8vlCczLCXcmU=", + "dev": true, + "requires": { + "temp-dir": "^1.0.0", + "uuid": "^3.0.1" + } + }, + "terser": { + "version": "4.6.12", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.12.tgz", + "integrity": "sha512-fnIwuaKjFPANG6MAixC/k1TDtnl1YlPLUlLVIxxGZUn1gfUx2+l3/zGNB72wya+lgsb50QBi2tUV75RiODwnww==", + "dev": true, + "requires": { + "commander": "^2.20.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + } + } + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", + "dev": true + }, + "to-buffer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "dev": true + }, + "trim-repeated": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", + "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.2" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "type-fest": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.5.2.tgz", + "integrity": "sha512-DWkS49EQKVX//Tbupb9TFa19c7+MK1XmzkrZUR8TAktmE/DizXoaoJV6TZ/tSIPXipqNiRI6CyAe7x69Jb6RSw==", + "dev": true + }, + "unbzip2-stream": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.2.tgz", + "integrity": "sha512-pZMVAofMrrHX6Ik39hCk470kulCbmZ2SWfQLPmTWqfJV/oUm0gn1CblvHdUu4+54Je6Jq34x8kY6XjTy6dMkOg==", + "dev": true, + "requires": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, + "unquote": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", + "integrity": "sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=", + "dev": true + }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "dev": true, + "requires": { + "prepend-http": "^1.0.1" + } + }, + "url-to-options": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", + "integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "util.promisify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", + "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + } + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", + "dev": true, + "requires": { + "defaults": "^1.0.3" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true + }, + "yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + } + } + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "zopflipng-bin": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/zopflipng-bin/-/zopflipng-bin-5.0.0.tgz", + "integrity": "sha512-8AWRT/CPkIBEup96LSiVdhLT4n7b4bpzY0BcQ26OjdRnjODa+JWNK55Ii63CiOEyqObPSwjLifuUI5ooFmjiGQ==", + "dev": true, + "requires": { + "bin-build": "^3.0.0", + "bin-wrapper": "^4.0.1", + "logalot": "^2.1.0" + } + } + } +} diff --git a/package.json b/package.json index 0c9acb7..25f47ba 100755 --- a/package.json +++ b/package.json @@ -1,37 +1,30 @@ { - "name": "smooth-scroll", - "version": "11.1.0", - "description": "Animate scrolling to anchor links", - "main": "./dist/js/smooth-scroll.min.js", - "author": { - "name": "Chris Ferdinandi", - "url": "http://gomakethings.com/" - }, - "license": "GPL-3.0", - "repository": { - "type": "git", - "url": "http://github.com/cferdinandi/smooth-scroll" - }, - "devDependencies": { - "gulp": "^3.9.1", - "node-fs": "^0.1.7", - "del": "^2.2.2", - "lazypipe": "^1.0.1", - "gulp-plumber": "^1.1.0", - "gulp-flatten": "^0.3.1", - "gulp-tap": "^0.1.3", - "gulp-rename": "^1.2.2", - "gulp-header": "^1.8.8", - "gulp-footer": "^1.0.5", - "gulp-watch": "^4.3.11", - "gulp-livereload": "^3.8.1", - "jshint": "^2.9.4", - "gulp-jshint": "^2.0.4", - "jshint-stylish": "^2.2.1", - "gulp-concat": "^2.6.1", - "gulp-uglify": "^2.1.2", - "gulp-optimize-js": "^1.1.0", - "gulp-markdown": "^1.2.0", - "gulp-file-include": "^0.14.0" - } -} \ No newline at end of file + "name": "smooth-scroll", + "version": "16.1.4", + "description": "Animate scrolling to anchor links", + "main": "./dist/smooth-scroll.polyfills.min.js", + "author": { + "name": "Chris Ferdinandi", + "url": "http://gomakethings.com/" + }, + "license": "MIT", + "repository": { + "type": "git", + "url": "http://github.com/cferdinandi/smooth-scroll" + }, + "scripts": { + "js": "rollup --config", + "build": "npm run js" + }, + "devDependencies": { + "rollup": "^2.6.1", + "rollup-plugin-terser": "^5.3.0", + "sass": "^1.26.5", + "imagemin-cli": "^5.1.0", + "imagemin-mozjpeg": "^8.0.0", + "imagemin-pngcrush": "^6.0.0", + "imagemin-pngquant": "^8.0.0", + "imagemin-zopfli": "^6.0.0", + "svgo": "^1.3.2" + } +} diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 0000000..086774b --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,72 @@ +// Plugins +import { terser } from 'rollup-plugin-terser'; +import pkg from './package.json'; + + +// Configs +var configs = { + name: 'SmoothScroll', + files: ['smooth-scroll.js', 'smooth-scroll.polyfills.js'], + formats: ['umd'], + default: 'umd', + pathIn: 'src/', + pathOut: 'dist/', + minify: true +}; + +// Banner +var banner = `/*! ${configs.name ? configs.name : pkg.name} v${pkg.version} | (c) ${new Date().getFullYear()} ${pkg.author.name} | ${pkg.license} License | ${pkg.repository.url} */`; + +var createOutput = function (filename, minify) { + return configs.formats.map(function (format) { + var output = { + file: `${configs.pathOut}/${filename}${format === configs.default ? '' : `.${format}`}${minify ? '.min' : ''}.js`, + format: format, + banner: banner + }; + if (format === 'iife' || format === 'umd') { + output.name = configs.name ? configs.name : pkg.name; + } + if (minify) { + output.plugins = [terser()]; + } + return output; + }); +}; + +/** + * Create output formats + * @param {String} filename The filename + * @return {Array} The outputs array + */ +var createOutputs = function (filename) { + + // Create base outputs + var outputs = createOutput(filename); + + // If not minifying, return outputs + if (!configs.minify) return outputs; + + // Otherwise, ceate second set of outputs + var outputsMin = createOutput(filename, true); + + // Merge and return the two arrays + return outputs.concat(outputsMin); + +}; + +/** + * Create export object + * @return {Array} The export object + */ +var createExport = function (file) { + return configs.files.map(function (file) { + var filename = file.replace('.js', ''); + return { + input: `${configs.pathIn}/${file}`, + output: createOutputs(filename) + }; + }); +}; + +export default createExport(); \ No newline at end of file diff --git a/speed.html b/speed.html new file mode 100644 index 0000000..21c834a --- /dev/null +++ b/speed.html @@ -0,0 +1,69 @@ + + + + + + Smooth Scroll + + + + + + + + +
    + + + +
    +

    + Click Me
    + Or me +

    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    Bazinga!

    + +

    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    + .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . +

    + +

    Back to the top

    + +

    .
    .
    .
    .
    .

    +
    +
    + + + + + + + + \ No newline at end of file diff --git a/src/_closest.polyfill.js b/src/_closest.polyfill.js new file mode 100644 index 0000000..068e47a --- /dev/null +++ b/src/_closest.polyfill.js @@ -0,0 +1,16 @@ +/** + * closest() polyfill + * @link https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill + */ +if (window.Element && !Element.prototype.closest) { + Element.prototype.closest = function(s) { + var matches = (this.document || this.ownerDocument).querySelectorAll(s), + i, + el = this; + do { + i = matches.length; + while (--i >= 0 && matches.item(i) !== el) {} + } while ((i < 0) && (el = el.parentElement)); + return el; + }; +} diff --git a/src/_customEvent.polyfill.js b/src/_customEvent.polyfill.js new file mode 100644 index 0000000..4e7a110 --- /dev/null +++ b/src/_customEvent.polyfill.js @@ -0,0 +1,19 @@ +/** + * CustomEvent() polyfill + * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill + */ +(function () { + + if (typeof window.CustomEvent === "function") return false; + + function CustomEvent(event, params) { + params = params || { bubbles: false, cancelable: false, detail: undefined }; + var evt = document.createEvent('CustomEvent'); + evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); + return evt; + } + + CustomEvent.prototype = window.Event.prototype; + + window.CustomEvent = CustomEvent; +})(); \ No newline at end of file diff --git a/src/_requestAnimationFrame.polyfill.js b/src/_requestAnimationFrame.polyfill.js new file mode 100644 index 0000000..9b1bfee --- /dev/null +++ b/src/_requestAnimationFrame.polyfill.js @@ -0,0 +1,33 @@ +/** + * requestAnimationFrame() polyfill + * By Erik Möller. Fixes from Paul Irish and Tino Zijdel. + * @link http://paulirish.com/2011/requestanimationframe-for-smart-animating/ + * @link http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating + * @license MIT + */ +(function() { + var lastTime = 0; + var vendors = ['ms', 'moz', 'webkit', 'o']; + for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; + window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] || + window[vendors[x]+'CancelRequestAnimationFrame']; + } + + if (!window.requestAnimationFrame) { + window.requestAnimationFrame = function(callback, element) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = window.setTimeout(function() { callback(currTime + timeToCall); }, + timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + } + + if (!window.cancelAnimationFrame) { + window.cancelAnimationFrame = function(id) { + clearTimeout(id); + }; + } +}()); diff --git a/src/core.js b/src/core.js new file mode 100755 index 0000000..25abec6 --- /dev/null +++ b/src/core.js @@ -0,0 +1,622 @@ +// +// Default settings +// + +var defaults = { + + // Selectors + ignore: '[data-scroll-ignore]', + header: null, + topOnEmptyHash: true, + + // Speed & Duration + speed: 500, + speedAsDuration: false, + durationMax: null, + durationMin: null, + clip: true, + offset: 0, + + // Easing + easing: 'easeInOutCubic', + customEasing: null, + + // History + updateURL: true, + popstate: true, + + // Custom Events + emitEvents: true + +}; + + +// +// Utility Methods +// + +/** + * Check if browser supports required methods + * @return {Boolean} Returns true if all required methods are supported + */ +var supports = function () { + return ( + 'querySelector' in document && + 'addEventListener' in window && + 'requestAnimationFrame' in window && + 'closest' in window.Element.prototype + ); +}; + +/** + * Merge two or more objects together. + * @param {Object} objects The objects to merge together + * @returns {Object} Merged values of defaults and options + */ +var extend = function () { + var merged = {}; + Array.prototype.forEach.call(arguments, function (obj) { + for (var key in obj) { + if (!obj.hasOwnProperty(key)) return; + merged[key] = obj[key]; + } + }); + return merged; +}; + +/** + * Check to see if user prefers reduced motion + * @param {Object} settings Script settings + */ +var reduceMotion = function () { + if ('matchMedia' in window && window.matchMedia('(prefers-reduced-motion)').matches) { + return true; + } + return false; +}; + +/** + * Get the height of an element. + * @param {Node} elem The element to get the height of + * @return {Number} The element's height in pixels + */ +var getHeight = function (elem) { + return parseInt(window.getComputedStyle(elem).height, 10); +}; + +/** + * Escape special characters for use with querySelector + * @author Mathias Bynens + * @link https://github.com/mathiasbynens/CSS.escape + * @param {String} id The anchor ID to escape + */ +var escapeCharacters = function (id) { + + // Remove leading hash + if (id.charAt(0) === '#') { + id = id.substr(1); + } + + var string = String(id); + var length = string.length; + var index = -1; + var codeUnit; + var result = ''; + var firstCodeUnit = string.charCodeAt(0); + while (++index < length) { + codeUnit = string.charCodeAt(index); + // Note: there’s no need to special-case astral symbols, surrogate + // pairs, or lone surrogates. + + // If the character is NULL (U+0000), then throw an + // `InvalidCharacterError` exception and terminate these steps. + if (codeUnit === 0x0000) { + throw new InvalidCharacterError( + 'Invalid character: the input contains U+0000.' + ); + } + + if ( + // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is + // U+007F, […] + (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || + // If the character is the first character and is in the range [0-9] + // (U+0030 to U+0039), […] + (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || + // If the character is the second character and is in the range [0-9] + // (U+0030 to U+0039) and the first character is a `-` (U+002D), […] + ( + index === 1 && + codeUnit >= 0x0030 && codeUnit <= 0x0039 && + firstCodeUnit === 0x002D + ) + ) { + // http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point + result += '\\' + codeUnit.toString(16) + ' '; + continue; + } + + // If the character is not handled by one of the above rules and is + // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or + // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to + // U+005A), or [a-z] (U+0061 to U+007A), […] + if ( + codeUnit >= 0x0080 || + codeUnit === 0x002D || + codeUnit === 0x005F || + codeUnit >= 0x0030 && codeUnit <= 0x0039 || + codeUnit >= 0x0041 && codeUnit <= 0x005A || + codeUnit >= 0x0061 && codeUnit <= 0x007A + ) { + // the character itself + result += string.charAt(index); + continue; + } + + // Otherwise, the escaped character. + // http://dev.w3.org/csswg/cssom/#escape-a-character + result += '\\' + string.charAt(index); + + } + + // Return sanitized hash + return '#' + result; + +}; + +/** + * Calculate the easing pattern + * @link https://gist.github.com/gre/1650294 + * @param {Object} settings Easing pattern + * @param {Number} time Time animation should take to complete + * @returns {Number} + */ +var easingPattern = function (settings, time) { + var pattern; + + // Default Easing Patterns + if (settings.easing === 'easeInQuad') pattern = time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuad') pattern = time * (2 - time); // decelerating to zero velocity + if (settings.easing === 'easeInOutQuad') pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInCubic') pattern = time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutCubic') pattern = (--time) * time * time + 1; // decelerating to zero velocity + if (settings.easing === 'easeInOutCubic') pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInQuart') pattern = time * time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuart') pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity + if (settings.easing === 'easeInOutQuart') pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration + if (settings.easing === 'easeInQuint') pattern = time * time * time * time * time; // accelerating from zero velocity + if (settings.easing === 'easeOutQuint') pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity + if (settings.easing === 'easeInOutQuint') pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration + + // Custom Easing Patterns + if (!!settings.customEasing) pattern = settings.customEasing(time); + + return pattern || time; // no easing, no acceleration +}; + +/** + * Determine the document's height + * @returns {Number} + */ +var getDocumentHeight = function () { + return Math.max( + document.body.scrollHeight, document.documentElement.scrollHeight, + document.body.offsetHeight, document.documentElement.offsetHeight, + document.body.clientHeight, document.documentElement.clientHeight + ); +}; + +/** + * Calculate how far to scroll + * Clip support added by robjtede - https://github.com/cferdinandi/smooth-scroll/issues/405 + * @param {Element} anchor The anchor element to scroll to + * @param {Number} headerHeight Height of a fixed header, if any + * @param {Number} offset Number of pixels by which to offset scroll + * @param {Boolean} clip If true, adjust scroll distance to prevent abrupt stops near the bottom of the page + * @returns {Number} + */ +var getEndLocation = function (anchor, headerHeight, offset, clip) { + var location = 0; + if (anchor.offsetParent) { + do { + location += anchor.offsetTop; + anchor = anchor.offsetParent; + } while (anchor); + } + location = Math.max(location - headerHeight - offset, 0); + if (clip) { + location = Math.min(location, getDocumentHeight() - window.innerHeight); + } + return location; +}; + +/** + * Get the height of the fixed header + * @param {Node} header The header + * @return {Number} The height of the header + */ +var getHeaderHeight = function (header) { + return !header ? 0 : (getHeight(header) + header.offsetTop); +}; + +/** + * Calculate the speed to use for the animation + * @param {Number} distance The distance to travel + * @param {Object} settings The plugin settings + * @return {Number} How fast to animate + */ +var getSpeed = function (distance, settings) { + var speed = settings.speedAsDuration ? settings.speed : Math.abs(distance / 1000 * settings.speed); + if (settings.durationMax && speed > settings.durationMax) return settings.durationMax; + if (settings.durationMin && speed < settings.durationMin) return settings.durationMin; + return parseInt(speed, 10); +}; + +var setHistory = function (options) { + + // Make sure this should run + if (!history.replaceState || !options.updateURL || history.state) return; + + // Get the hash to use + var hash = window.location.hash; + hash = hash ? hash : ''; + + // Set a default history + history.replaceState( + { + smoothScroll: JSON.stringify(options), + anchor: hash ? hash : window.pageYOffset + }, + document.title, + hash ? hash : window.location.href + ); + +}; + +/** + * Update the URL + * @param {Node} anchor The anchor that was scrolled to + * @param {Boolean} isNum If true, anchor is a number + * @param {Object} options Settings for Smooth Scroll + */ +var updateURL = function (anchor, isNum, options) { + + // Bail if the anchor is a number + if (isNum) return; + + // Verify that pushState is supported and the updateURL option is enabled + if (!history.pushState || !options.updateURL) return; + + // Update URL + history.pushState( + { + smoothScroll: JSON.stringify(options), + anchor: anchor.id + }, + document.title, + anchor === document.documentElement ? '#top' : '#' + anchor.id + ); + +}; + +/** + * Bring the anchored element into focus + * @param {Node} anchor The anchor element + * @param {Number} endLocation The end location to scroll to + * @param {Boolean} isNum If true, scroll is to a position rather than an element + */ +var adjustFocus = function (anchor, endLocation, isNum) { + + // Is scrolling to top of page, blur + if (anchor === 0) { + document.body.focus(); + } + + // Don't run if scrolling to a number on the page + if (isNum) return; + + // Otherwise, bring anchor element into focus + anchor.focus(); + if (document.activeElement !== anchor) { + anchor.setAttribute('tabindex', '-1'); + anchor.focus(); + anchor.style.outline = 'none'; + } + window.scrollTo(0 , endLocation); + +}; + +/** + * Emit a custom event + * @param {String} type The event type + * @param {Object} options The settings object + * @param {Node} anchor The anchor element + * @param {Node} toggle The toggle element + */ +var emitEvent = function (type, options, anchor, toggle) { + if (!options.emitEvents || typeof window.CustomEvent !== 'function') return; + var event = new CustomEvent(type, { + bubbles: true, + detail: { + anchor: anchor, + toggle: toggle + } + }); + document.dispatchEvent(event); +}; + + +// +// SmoothScroll Constructor +// + +var SmoothScroll = function (selector, options) { + + // + // Variables + // + + var smoothScroll = {}; // Object for public APIs + var settings, anchor, toggle, fixedHeader, eventTimeout, animationInterval; + + + // + // Methods + // + + /** + * Cancel a scroll-in-progress + */ + smoothScroll.cancelScroll = function (noEvent) { + cancelAnimationFrame(animationInterval); + animationInterval = null; + if (noEvent) return; + emitEvent('scrollCancel', settings); + }; + + /** + * Start/stop the scrolling animation + * @param {Node|Number} anchor The element or position to scroll to + * @param {Element} toggle The element that toggled the scroll event + * @param {Object} options + */ + smoothScroll.animateScroll = function (anchor, toggle, options) { + + // Cancel any in progress scrolls + smoothScroll.cancelScroll(); + + // Local settings + var _settings = extend(settings || defaults, options || {}); // Merge user options with defaults + + // Selectors and variables + var isNum = Object.prototype.toString.call(anchor) === '[object Number]' ? true : false; + var anchorElem = isNum || !anchor.tagName ? null : anchor; + if (!isNum && !anchorElem) return; + var startLocation = window.pageYOffset; // Current location on the page + if (_settings.header && !fixedHeader) { + // Get the fixed header if not already set + fixedHeader = document.querySelector(_settings.header); + } + var headerHeight = getHeaderHeight(fixedHeader); + var endLocation = isNum ? anchor : getEndLocation(anchorElem, headerHeight, parseInt((typeof _settings.offset === 'function' ? _settings.offset(anchor, toggle) : _settings.offset), 10), _settings.clip); // Location to scroll to + var distance = endLocation - startLocation; // distance to travel + var documentHeight = getDocumentHeight(); + var timeLapsed = 0; + var speed = getSpeed(distance, _settings); + var start, percentage, position; + + /** + * Stop the scroll animation when it reaches its target (or the bottom/top of page) + * @param {Number} position Current position on the page + * @param {Number} endLocation Scroll to location + * @param {Number} animationInterval How much to scroll on this loop + */ + var stopAnimateScroll = function (position, endLocation) { + + // Get the current location + var currentLocation = window.pageYOffset; + + // Check if the end location has been reached yet (or we've hit the end of the document) + if (position == endLocation || currentLocation == endLocation || ((startLocation < endLocation && window.innerHeight + currentLocation) >= documentHeight)) { + + // Clear the animation timer + smoothScroll.cancelScroll(true); + + // Bring the anchored element into focus + adjustFocus(anchor, endLocation, isNum); + + // Emit a custom event + emitEvent('scrollStop', _settings, anchor, toggle); + + // Reset start + start = null; + animationInterval = null; + + return true; + + } + }; + + /** + * Loop scrolling animation + */ + var loopAnimateScroll = function (timestamp) { + if (!start) { start = timestamp; } + timeLapsed += timestamp - start; + percentage = speed === 0 ? 0 : (timeLapsed / speed); + percentage = (percentage > 1) ? 1 : percentage; + position = startLocation + (distance * easingPattern(_settings, percentage)); + window.scrollTo(0, Math.floor(position)); + if (!stopAnimateScroll(position, endLocation)) { + animationInterval = window.requestAnimationFrame(loopAnimateScroll); + start = timestamp; + } + }; + + /** + * Reset position to fix weird iOS bug + * @link https://github.com/cferdinandi/smooth-scroll/issues/45 + */ + if (window.pageYOffset === 0) { + window.scrollTo(0, 0); + } + + // Update the URL + updateURL(anchor, isNum, _settings); + + // If the user prefers reduced motion, jump to location + if (reduceMotion()) { + adjustFocus(anchor, Math.floor(endLocation), false); + return; + } + + // Emit a custom event + emitEvent('scrollStart', _settings, anchor, toggle); + + // Start scrolling animation + smoothScroll.cancelScroll(true); + window.requestAnimationFrame(loopAnimateScroll); + + }; + + /** + * If smooth scroll element clicked, animate scroll + */ + var clickHandler = function (event) { + + // Don't run if event was canceled but still bubbled up + // By @mgreter - https://github.com/cferdinandi/smooth-scroll/pull/462/ + if (event.defaultPrevented) return; + + // Don't run if right-click or command/control + click or shift + click + if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey) return; + + // Check if event.target has closest() method + // By @totegi - https://github.com/cferdinandi/smooth-scroll/pull/401/ + if (!('closest' in event.target)) return; + + // Check if a smooth scroll link was clicked + toggle = event.target.closest(selector); + if (!toggle || toggle.tagName.toLowerCase() !== 'a' || event.target.closest(settings.ignore)) return; + + // Only run if link is an anchor and points to the current page + if (toggle.hostname !== window.location.hostname || toggle.pathname !== window.location.pathname || !/#/.test(toggle.href)) return; + + // Get an escaped version of the hash + var hash; + try { + hash = escapeCharacters(decodeURIComponent(toggle.hash)); + } catch(e) { + hash = escapeCharacters(toggle.hash); + } + + // Get the anchored element + var anchor; + if (hash === '#') { + if (!settings.topOnEmptyHash) return; + anchor = document.documentElement; + } else { + anchor = document.querySelector(hash); + } + anchor = !anchor && hash === '#top' ? document.documentElement : anchor; + + // If anchored element exists, scroll to it + if (!anchor) return; + event.preventDefault(); + setHistory(settings); + smoothScroll.animateScroll(anchor, toggle); + + }; + + /** + * Animate scroll on popstate events + */ + var popstateHandler = function () { + + // Stop if history.state doesn't exist (ex. if clicking on a broken anchor link). + // fixes `Cannot read property 'smoothScroll' of null` error getting thrown. + if (history.state === null) return; + + // Only run if state is a popstate record for this instantiation + if (!history.state.smoothScroll || history.state.smoothScroll !== JSON.stringify(settings)) return; + + // Get the anchor + var anchor = history.state.anchor; + if (typeof anchor === 'string' && anchor) { + anchor = document.querySelector(escapeCharacters(history.state.anchor)); + if (!anchor) return; + } + + // Animate scroll to anchor link + smoothScroll.animateScroll(anchor, null, {updateURL: false}); + + }; + + /** + * Destroy the current initialization. + */ + smoothScroll.destroy = function () { + + // If plugin isn't already initialized, stop + if (!settings) return; + + // Remove event listeners + document.removeEventListener('click', clickHandler, false); + window.removeEventListener('popstate', popstateHandler, false); + + // Cancel any scrolls-in-progress + smoothScroll.cancelScroll(); + + // Reset variables + settings = null; + anchor = null; + toggle = null; + fixedHeader = null; + eventTimeout = null; + animationInterval = null; + + }; + + /** + * Initialize Smooth Scroll + * @param {Object} options User settings + */ + var init = function () { + + // feature test + if (!supports()) throw 'Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.'; + + // Destroy any existing initializations + smoothScroll.destroy(); + + // Selectors and variables + settings = extend(defaults, options || {}); // Merge user options with defaults + fixedHeader = settings.header ? document.querySelector(settings.header) : null; // Get the fixed header + + // When a toggle is clicked, run the click handler + document.addEventListener('click', clickHandler, false); + + // If updateURL and popState are enabled, listen for pop events + if (settings.updateURL && settings.popstate) { + window.addEventListener('popstate', popstateHandler, false); + } + + }; + + + // + // Initialize plugin + // + + init(); + + + // + // Public APIs + // + + return smoothScroll; + +}; + +export default SmoothScroll; \ No newline at end of file diff --git a/src/docs/_templates/_footer.html b/src/docs/_templates/_footer.html deleted file mode 100755 index 56e51ed..0000000 --- a/src/docs/_templates/_footer.html +++ /dev/null @@ -1,38 +0,0 @@ - - - -
    - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/docs/_templates/_header.html b/src/docs/_templates/_header.html deleted file mode 100755 index 115f85e..0000000 --- a/src/docs/_templates/_header.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - Smooth Scroll - - - - - - - - - - - - - - - - - -
    -
    - - - -
    \ No newline at end of file diff --git a/src/docs/assets/css/custom.css b/src/docs/assets/css/custom.css deleted file mode 100755 index dbe16cd..0000000 --- a/src/docs/assets/css/custom.css +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Typography - */ - -body { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -} - -h1, h2, h3, h4, h5, h6 { - font-weight: bold; -} - - -/** - * Background color - */ - -@media (min-width: 40em) { - body { - background-image: -webkit-linear-gradient(left, #f7f7f7 0%, #f7f7f7 25%, transparent 25%, transparent 100%); - background-image: linear-gradient(to right, #f7f7f7 0, #f7f7f7 25%, transparent 25%, transparent 100%); - } -} - - -/** - * Navigation - */ - -@media (max-width: 40em) { - .list-nav { - margin-left: -0.25em; - margin-right: -0.25em; - padding: 0; - } - - .list-nav > li { - display: inline-block; - margin-left: 0.25em; - margin-right: 0.25em; - } - - .list-nav > li:before { - content: "\00b7"; - margin-right: 0.5em; - } - - .list-nav > li:first-child:before { - content: ""; - margin-right: 0; - } -} - -@media (max-width: 40em) { - .nav { - border-bottom: 1px solid #e5e5e5; - } -} - -.nav-section a.active { - color: #808080; -} - -/* Disable current page nav */ -a.nav-active { - pointer-events: none; - color: #808080; - cursor: not-allowed; -} - -/* Sticky nav */ -@media (min-width: 40em) { - .sticky-header { - background-color: #f7f7f7; - bottom: 0; - overflow-y: auto; - position: fixed; - top: 0; - width: 22.2%; - } - - .sticky-body { - margin-left: 27.8%; - } -} - -@media (min-width: 80em) { - .sticky-header { - width: 17.75em; - } -} - - -/** - * Buttons - */ - -.btn { - background-color: #f7272f; - border-color: #f7272f; -} - -a.btn:active, -a.btn:focus, -a.btn:hover { - background-color: #cb070e; - border-color: #cb070e; -} - - - -/** - * Prism - * Code syntax highlighting by Lea Verou. - * http://prismjs.com/ - */ - -@media screen { - - .token.comment, - .token.prolog, - .token.doctype, - .token.cdata { - color: slategray; - } - - .token.punctuation { - color: #999; - } - - .token.property, - .token.tag, - .token.boolean, - .token.number, - .token.constant, - .token.symbol { - color: #905; - } - - .token.selector, - .token.attr-name, - .token.string, - .token.builtin { - color: #690; - } - - .token.operator, - .token.entity, - .token.url, - .language-css .token.string, - .style .token.string, - .token.variable { - color: #a67f59; - } - - .token.atrule, - .token.attr-value, - .token.keyword { - color: #07a; - } - - - .token.regex, - .token.important { - color: #e90; - } - - .token.important { - font-weight: bold; - } - - .token.entity { - cursor: help; - } - -} \ No newline at end of file diff --git a/src/docs/assets/css/main.css b/src/docs/assets/css/main.css deleted file mode 100755 index 7e5a18f..0000000 --- a/src/docs/assets/css/main.css +++ /dev/null @@ -1,1559 +0,0 @@ -/*! - * Kraken v7.5.2: A lightweight front-end boilerplate - * (c) 2017 Chris Ferdinandi - * MIT License - * http://github.com/cferdinandi/kraken - */ - -/** - * @section Normalize.css - * Normalize.css base with custom code. - * Additional normalize styles incorporated throughout components. - * @link http://necolas.github.io/normalize.css/ - */ -/** - * Mobile screen resizing - * @link http://dev.w3.org/csswg/css-device-adapt/ - */ -@-webkit-viewport { - width: device-width; - zoom: 1.0; -} - -@-moz-viewport { - width: device-width; - zoom: 1.0; -} - -@-ms-viewport { - width: device-width; - zoom: 1.0; -} - -@-o-viewport { - width: device-width; - zoom: 1.0; -} - -@viewport { - width: device-width; - zoom: 1.0; -} - -/** - * Remove the tap delay in webkit - * @link https://medium.com/@adactio/delay-a9df9edceef3#.7dmbl3xow - */ -/* line 23, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -a, .link-block-styled, -button, -input, -select, -textarea, -label, -summary { - -ms-touch-action: manipulation; - touch-action: manipulation; -} - -/** - * Add box sizing to everything - * @link http://www.paulirish.com/2012/box-sizing-border-box-ftw/ - */ -/* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -*, -*:before, -*:after { - box-sizing: border-box; -} - -/** - * 1. Set default font family to default. - * 2. Force scrollbar display to prevent jumping on pages. - * 3. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - */ -/* line 51, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -html { - font-family: "Helvetica Neue", Arial, sans-serif; - /* 1 */ - overflow-y: scroll; - /* 2 */ - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - text-size-adjust: 100%; - /* 3 */ -} - -/** - * Remove default margin. - */ -/* line 60, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -body { - margin: 0; -} - -/** - * Correct `block` display not defined for any HTML5 element in IE 8/9. - * Correct `block` display not defined for `details` in IE 10/11 - * and Firefox. - * Correct `block` display not defined for `main` in IE 11. - */ -/* line 70, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -article, -aside, -cite, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -menu, -nav, -section { - display: block; -} - -/* - * Add the correct display in all browsers. - */ -/* line 89, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -summary { - display: list-item; -} - -/** - * Correct `inline-block` display not defined in IE 8/9. - */ -/* line 96, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -audio, -canvas, -progress, -video { - display: inline-block; - /* 1 */ -} - -/** - * Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. - */ -/* line 106, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -progress { - vertical-align: baseline; -} - -/** - * Prevent modern browsers from displaying `audio` without controls. - * Remove excess height in iOS 5 devices. - */ -/* line 114, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Prevent img and video elements from spilling outside of the page on smaller screens. - */ -/* line 122, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -img, -video { - max-width: 100%; - height: auto; -} - -/** - * Prevent iframe, object, and embed elements from spilling outside of the page on smaller screens. - * height: auto causes iframes to smush, so it's omitted here. - */ -/* line 132, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -iframe, -object, -embed { - max-width: 100%; -} - -/** - * Hide the template element in IE, Safari, and Firefox < 22. - */ -/** - * 1. Remove border when inside `a` element in IE 8/9/10. - * 2. Prevents IE from making scaled images look like crap - */ -/* line 149, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -img { - border: 0; - /* 1 */ - -ms-interpolation-mode: bicubic; - /* 2 */ -} - -/** - * Correct overflow not hidden in IE 9/10/11. - */ -/* line 157, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -svg:not(:root) { - overflow: hidden; -} - -/** - * Address inconsistent margin. - */ -/* line 164, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -figure { - margin: 0; -} - -/** - * @workaround Remove focus from
    element when using tabindex="-1" hack for skipnav link - * @link https://code.google.com/p/chromium/issues/detail?id=37721 - */ -/* line 172, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_normalize.scss */ -.tabindex:focus { - outline: none; -} - -/** - * @section Grid - * Structure and layout - */ -/** - * Base grid styles: single column - */ -/* line 9, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.container { - margin-left: auto; - margin-right: auto; - max-width: 80em; - width: 88%; -} - -/* line 16, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.row { - margin-left: -1.4%; - margin-right: -1.4%; -} - -/* line 21, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.grid-fourth, .grid-third, .grid-half, .grid-two-thirds, .grid-three-fourths, .grid-full, .grid-dynamic { - float: left; - padding-left: 1.4%; - padding-right: 1.4%; - width: 100%; -} - -/** - * Reverses order of grid for content choreography - */ -/* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ -.grid-flip { - float: right; -} - -/** - * Add columns to grid on bigger screens - */ -@media (min-width: 20em) { - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-fourth { - width: 25%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-third { - width: 33.33333%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-half { - width: 50%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-two-thirds { - width: 66.66667%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-three-fourths { - width: 75%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-xsmall .grid-full { - width: 100%; - } -} - -@media (min-width: 30em) { - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-fourth { - width: 25%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-third { - width: 33.33333%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-half { - width: 50%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-two-thirds { - width: 66.66667%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-three-fourths { - width: 75%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .row-start-small .grid-full { - width: 100%; - } -} - -@media (min-width: 40em) { - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-fourth { - width: 25%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-third { - width: 33.33333%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-half { - width: 50%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-two-thirds { - width: 66.66667%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-three-fourths { - width: 75%; - } - /* line 49, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-full { - width: 100%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-fourth { - margin-left: 25%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-third { - margin-left: 33.33333%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-half { - margin-left: 50%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-two-thirds { - margin-left: 66.66667%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-three-fourths { - margin-left: 75%; - } - /* line 55, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .offset-full { - margin-left: 100%; - } -} - -/** - * Dynamic grid - */ -@media (min-width: 20em) { - /* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-dynamic { - width: 50%; - } -} - -@media (min-width: 30em) { - /* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-dynamic { - width: 33.33333%; - } -} - -@media (min-width: 40em) { - /* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_grid.scss */ - .grid-dynamic { - width: 25%; - } -} - -/** - * @section Typography - * Sets font styles for entire site - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -body { - background: #ffffff; - color: #272727; - font-family: "Helvetica Neue", Arial, sans-serif; - font-size: 100%; - line-height: 1.5; -} - -@media (min-width: 40em) { - /* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ - body { - line-height: 1.5625; - } -} - -/* line 18, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -p { - margin: 0 0 1.5625em; -} - -/** - * Hyperlink styling - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ -/* line 29, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a, .link-block-styled { - background-color: transparent; - /* 1 */ - color: #0088cc; - text-decoration: none; - word-wrap: break-word; - -webkit-text-decoration-skip: objects; - /* 2 */ - /** - * Improve readability when focused and also mouse hovered in all browsers. - */ -} - -/* line 39, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a:active, .link-block-styled:active, a:hover, .link-block-styled:hover, .link-block:hover .link-block-styled { - outline: 0; -} - -/* line 44, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a:active, .link-block-styled:active, a:focus, .link-block-styled:focus, a:hover, .link-block-styled:hover, .link-block:hover .link-block-styled { - color: #005580; - text-decoration: underline; -} - -/** - * Creates block-level links - */ -/* line 57, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -a.link-block, .link-block.link-block-styled { - color: #272727; - display: block; - text-decoration: none; -} - -/** - * List styling - */ -/* line 76, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -ul, -ol { - margin: 0 0 1.5625em 2em; - padding: 0; -} - -/* line 82, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -ul ul, -ul ol, -ol ol, -ol ul { - margin-bottom: 0; -} - -/* line 89, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dl, -dd { - margin: 0; - padding: 0; -} - -/* line 95, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dd { - margin-bottom: 1.5625em; -} - -/* line 99, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dt { - font-weight: bold; -} - -/** - * Removes list styling. - * For semantic reasons, should only be used on unordered lists. - */ -/* line 107, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -.list-unstyled { - margin-left: 0; - list-style: none; -} - -/** - * Display lists on a single line. - */ -/* line 116, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -.list-inline { - list-style: none; - margin-left: -0.5em; - margin-right: -0.5em; - padding: 0; -} - -/* line 123, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -.list-inline > li { - display: inline; - margin-left: 0.5em; - margin-right: 0.5em; -} - -/** - * Heading styling for h1 through h6 elements. - * Heading class lets you use one heading type for semantics, but style it as another heading type. - */ -/* line 135, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h1, h2, h3, h4, h5, h6 { - font-weight: normal; - line-height: 1.2; - margin: 0 0 1em; - padding: 1em 0 0; - word-wrap: break-word; -} - -/* line 143, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h1, -.h1 { - font-size: 1.5em; - padding-top: .5em; -} - -@media (min-width: 40em) { - /* line 143, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ - h1, - .h1 { - font-size: 1.75em; - } -} - -/* line 153, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h2, -.h2 { - font-size: 1.3125em; -} - -/* line 158, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h3, -.h3 { - font-size: 1.1875em; -} - -/* line 163, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h4, h5, h6, -.h4, .h5, .h6 { - font-size: 1em; -} - -/* line 168, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -h4, -.h4 { - text-transform: uppercase; -} - -/** - * Lines, Quotes and Emphasis - */ -/* line 178, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -hr { - border: 0; - border-top: 1px solid #e5e5e5; - border-bottom: 0 solid #ffffff; - box-sizing: content-box; - margin: 2em auto; - overflow: visible; -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ -/* line 190, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ -/* line 198, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -b, -strong { - font-weight: bolder; -} - -/** - * 1. Remove the bottom border in Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ -/* line 207, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -abbr[title] { - border-bottom: none; - /* 1 */ - text-decoration: underline; - /* 2 */ - text-decoration: underline dotted; - /* 2 */ -} - -/** - * Address styling not present in Safari and Chrome. - */ -/* line 216, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -dfn { - font-style: italic; -} - -/** - * Address styling not present in IE 8/9. - */ -/* line 223, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -mark { - background: #ff0; - color: #000000; -} - -/** - * Address inconsistent and variable font size in all browsers. - */ -/* line 231, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` affecting `line-height` in all browsers. - */ -/* line 238, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -/* line 246, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -sup { - top: -0.5em; -} - -/* line 250, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -sub { - bottom: -0.25em; -} - -/** - * Blockquotes - */ -/* line 259, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote { - font-size: 1.1875em; - font-style: italic; - margin: 0 0 1.5625em; - padding-left: 0.84211em; - padding-right: 0.84211em; -} - -/* line 266, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote cite { - color: #808080; - font-size: 0.84211em; - padding-top: 1em; -} - -/* line 273, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote, -q { - quotes: none; -} - -/* line 278, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_typography.scss */ -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ''; -} - -/** - * @section Code - * Styling for code and preformatted text. - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -code, -kbd, -pre, -samp { - border-radius: 1px; - font-family: Menlo, Monaco, "Courier New", monospace; - font-size: 0.875em; -} - -/* line 15, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -code { - background-color: #f7f7f7; - color: #dd1144; - padding: 0.25em; - word-wrap: break-word; -} - -/* line 22, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -pre { - background-color: #f4f4f4; - display: block; - line-height: 1.5; - margin-bottom: 1.5625em; - overflow: auto; - padding: 0.8125em; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - white-space: pre-wrap; - word-break: break-all; -} - -/* line 33, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_code.scss */ -pre code { - background-color: transparent; - border: 0; - color: inherit; - font-size: 1em; - padding: 0; -} - -/** - * @section Buttons - * Styling for CSS buttons. - */ -/** - * Primary buttons - */ -/* line 10, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn { - background-color: #0088cc; - border: 1px solid #0088cc; - border-radius: 1px; - color: #ffffff; - display: inline-block; - font-size: 0.9375em; - font-weight: normal; - line-height: 1.2; - margin-right: 0.3125em; - margin-bottom: 0.3125em; - padding: 0.5em 0.6875em; -} - -/* line 23, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn:hover, -a .btn:hover, .link-block-styled .btn:hover, .btn:focus, -a .btn:focus, .link-block-styled .btn:focus, .btn:active, -a .btn:active, .link-block-styled .btn:active, .btn.active { - background-color: #005580; - border-color: #005580; - color: #ffffff; - text-decoration: none; -} - -/** - * Secondary buttons - */ -/* line 41, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-secondary { - background-color: #808080; - border-color: #808080; -} - -/* line 45, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-secondary:hover, -a .btn-secondary:hover, .link-block-styled .btn-secondary:hover, .btn-secondary:focus, -a .btn-secondary:focus, .link-block-styled .btn-secondary:focus, .btn-secondary:active, -a .btn-secondary:active, .link-block-styled .btn-secondary:active, .btn-secondary.active { - background-color: #5a5a5a; - border-color: #5a5a5a; -} - -/** - * Active state - */ -/* line 61, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn:active, -.btn.active { - box-shadow: inset 0 0.15625em 0.25em rgba(0, 0, 0, 0.15), 0 1px 0.15625em rgba(0, 0, 0, 0.05); - outline: 0; -} - -/** - * Disabled state - */ -/* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn.disabled, -.btn[disabled] { - box-shadow: none; - cursor: not-allowed; - opacity: 0.5; - pointer-events: none; -} - -/** - * Button size - */ -/* line 83, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-large { - font-size: 1em; - line-height: normal; - padding: 0.6875em 0.9375em; -} - -/** - * Block-level buttons - */ -/* line 93, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn-block, -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - display: block; - margin-right: 0; - padding-right: 0; - padding-left: 0; - width: 100%; -} - -/** - * General styles - */ -/* line 108, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn, -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - cursor: pointer; - text-align: center; - vertical-align: middle; - /** - * @workaround Override default button styling - * @affected Webkit/Firefox - */ - -webkit-appearance: none; -} - -/** - * Remove right margin on last element and inputs - */ -/* line 129, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_buttons.scss */ -.btn:last-child, -input.btn { - margin-right: 0; -} - -/** - * @section Forms - * Styling for form elements. - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -form, -fieldset { - margin-bottom: 1.5625em; -} - -/* line 11, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -fieldset { - border: 0; - padding: 0; -} - -/* line 16, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -legend, -label { - display: block; - font-weight: normal; - margin: 0 0 0.3125em; - padding: 0; -} - -/** - * 1. Correct color not being inherited. - * Known issue: affects color of disabled elements. - * 2. Correct font properties not being inherited. - * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. - */ -/* line 30, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button, -input, -optgroup, -select, -textarea { - color: #555555; - /* 1 */ - font: inherit; - /* 2 */ - margin: 0; - /* 3 */ - padding: 0.3125em; -} - -/** - * Address `overflow` set to `hidden` in IE 8/9/10/11. - */ -/* line 44, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button { - overflow: visible; -} - -/** - * Address inconsistent `text-transform` inheritance for `button` and `select`. - * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. - * Correct `select` style inheritance in Firefox. - */ -/* line 54, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button, -select { - text-transform: none; -} - -/* line 59, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -input, -textarea, -select { - border: 1px solid #b8b8b8; - border-radius: 1px; - display: block; - line-height: 1.5; - margin-bottom: 1.1875em; - width: 100%; -} - -@media (min-width: 40em) { - /* line 59, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ - input, - textarea, - select { - line-height: 1.5625; - } -} - -/** - * Don't inherit the `font-weight` (applied by a rule above). - * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. - */ -/* line 78, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -optgroup { - font-weight: bold; -} - -/* line 82, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -form button, -form .button { - margin-bottom: 1.1875em; -} - -/* line 87, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -textarea { - height: 12em; - overflow: auto; -} - -/* line 92, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="image"], -[type="checkbox"], -[type="radio"] { - cursor: pointer; - display: inline-block; - height: auto; - margin-bottom: 0.3125em; - padding: 0; - width: auto; -} - -/** - * Fix the cursor style for Chrome's increment/decrement buttons. For certain - * `font-size` values of the `input`, it causes the cursor style of the - * decrement button to change from `default` to `text`. - */ -/* line 108, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/* line 113, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -input:focus, -textarea:focus { - border-color: rgba(82, 168, 236, 0.8); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0.5em rgba(82, 168, 236, 0.6); - outline: 0; - outline: thin dotted \9; -} - -/* line 121, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="file"]:focus, -[type="checkbox"]:focus, -select:focus { - outline: thin dotted; - outline: 0.3125em auto -webkit-focus-ring-color; - outline-offset: -0.125em; -} - -/** - * Remove the inner border and padding in Firefox. - */ -/* line 133, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ -/* line 145, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ -/* line 157, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -::-webkit-file-upload-button { - -webkit-appearance: button; - /* 1 */ - font: inherit; - /* 2 */ -} - -/** - * Inline inputs - */ -/* line 166, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.input-inline { - display: inline-block; - vertical-align: middle; - width: auto; -} - -/** - * Condensed inputs - */ -/* line 176, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.input-condensed { - padding: 1px 0.3125em; - font-size: 0.9375em; -} - -/** - * Search - */ -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ -/* line 191, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="search"] { - -webkit-appearance: textfield; - /* 1 */ - outline-offset: -2px; - /* 2 */ -} - -/** - * Remove inner padding and search cancel button in Safari and Chrome on OS X. - * Safari (but not Chrome) clips the cancel button when the search input has - * padding (and `textfield` appearance). - */ -/* line 201, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * Create rounded search bar - */ -/* line 210, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.input-search { - width: 85%; - padding-left: 0.9375em; - padding-right: 2.5em; - border-radius: 1.3125em; - transition: width 300ms ease-in; -} - -@media (min-width: 40em) { - /* line 210, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ - .input-search { - width: 65%; - } -} - -/** - * Special styling for search icon as button - */ -/* line 226, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search { - display: inline; - color: #808080; - border: none; - background: none; - margin-left: -2.5em; - margin-bottom: 0; -} - -/* line 234, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search .icon { - fill: #808080; -} - -/* line 238, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search:hover { - color: #5a5a5a; -} - -/* line 241, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_forms.scss */ -.btn-search:hover .icon { - fill: #5a5a5a; -} - -/** - * @section SVGs - * SVG icon sprite styling. - * @link http://css-tricks.com/svg-sprites-use-better-icon-fonts/ - * @link http://css-tricks.com/svg-use-external-source/ - */ -/** - * Basic styles - * Only displayed when SVGs are supported to avoid large empty spaces - */ -/* line 12, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_svg.scss */ -.icon { - display: inline-block; - fill: currentColor; - height: 0; - width: 0; -} - -/* line 18, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_svg.scss */ -.svg .icon { - height: 1em; - width: 1em; -} - -/** - * Hide fallback text if browser supports SVG - */ -/** - * @section Tables - * Styling for tables - */ -/* line 6, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -table { - border-collapse: collapse; - border-spacing: 0; - margin-bottom: 1.5625em; - max-width: 100%; - width: 100%; -} - -/* line 14, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -th, -td { - text-align: left; - padding: 0.5em; -} - -/* line 20, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -th { - border-bottom: 0.125em solid #e5e5e5; - font-weight: bold; - vertical-align: bottom; -} - -/* line 27, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -td { - border-top: 1px solid #e5e5e5; - vertical-align: top; -} - -/** - * Adds zebra striping - */ -/* line 35, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -.table-striped tbody tr:nth-child(odd) { - background-color: #f7f7f7; -} - -/** - * Reduces padding on condensed tables - */ -/* line 43, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ -.table-condensed th, -.table-condensed td { - padding: 0.25em; -} - -/** - * Pure CSS responsive tables - * Adds label to each cell using the [data-label] attribute - * @link https://techblog.livingsocial.com/blog/2015/04/06/responsive-tables-in-pure-css/ - */ -@media (max-width: 40em) { - /* line 57, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive thead { - display: none; - visibility: hidden; - } - /* line 62, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive tr { - border-top: 1px solid #ededed; - display: block; - padding: 0.5em; - } - /* line 68, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive td { - border: 0; - display: block; - padding: 0.25em; - } - /* line 73, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_tables.scss */ - .table-responsive td:before { - content: attr(data-label); - display: block; - font-weight: bold; - } -} - -/** - * @section Overrides - * Nudge and tweak alignment, spacing, and visibility. - */ -/** - * Text sizes - */ -/* line 11, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-small { - font-size: 0.9375em; -} - -/* line 15, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-large { - font-size: 1.1875em; - line-height: 1.4; -} - -@media (min-width: 40em) { - /* line 15, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ - .text-large { - font-size: 1.3125em; - } -} - -/** - * Text colors - */ -/* line 29, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-muted { - color: #808080; -} - -/** - * Text alignment - */ -/* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-center { - text-align: center; -} - -/* line 42, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-right { - text-align: right; -} - -/* line 46, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.text-left { - text-align: left; -} - -@media (min-width: 40em) { - /* line 51, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ - .text-right-medium { - text-align: right; - } -} - -/** - * Floats - */ -/* line 61, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.float-left { - float: left; -} - -/* line 65, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.float-center { - float: none; - margin-left: auto; - margin-right: auto; -} - -/* line 71, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.float-right { - float: right; -} - -/** - * Margins - */ -/* line 80, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-margin-top { - margin-top: 0; -} - -/* line 84, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-margin-bottom { - margin-bottom: 0; -} - -/* line 88, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-top { - margin-top: 1.5625em; -} - -/* line 92, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-bottom { - margin-bottom: 1.5625em; -} - -/* line 96, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-bottom-small { - margin-bottom: 0.5em; -} - -/* line 100, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.margin-bottom-large { - margin-bottom: 2em; -} - -/** - * Padding - */ -/* line 109, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-padding-top { - padding-top: 0; -} - -/* line 113, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.no-padding-bottom { - padding-bottom: 0; -} - -/* line 117, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-top { - padding-top: 1.5625em; -} - -/* line 121, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-top-small { - padding-top: 0.5em; -} - -/* line 125, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-top-large { - padding-top: 2em; -} - -/* line 129, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-bottom { - padding-bottom: 1.5625em; -} - -/* line 133, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-bottom-small { - padding-bottom: 0.5em; -} - -/* line 137, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.padding-bottom-large { - padding-bottom: 2em; -} - -/** - * Visibility - */ -/** - * Visually hide an element, but leave it available for screen readers - * @link https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/main.css - * @link http://snook.ca/archives/html_and_css/hiding-content-for-accessibility - */ -/* line 151, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.screen-reader, .svg .icon-fallback-text { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - white-space: nowrap; - width: 1px; -} - -/** - * Extends the .screen-reader class to allow the element to be focusable when navigated to via the keyboard - * @link https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/main.css - * @link https://www.drupal.org/node/897638 - */ -/* line 168, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.screen-reader-focusable:active, -.screen-reader-focusable:focus { - clip: auto; - height: auto; - margin: 0; - overflow: visible; - position: static; - white-space: normal; - width: auto; -} - -/** - * @workaround - * @affected IE 8/9/10 - * @link http://juicystudio.com/article/screen-readers-display-none.php - */ -/* line 184, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -[hidden], template { - display: none; - visibility: hidden; -} - -/** - * Contain floats - * The space content is one way to avoid an Opera bug when the `contenteditable` attribute is included anywhere else in the document. - * @link https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/main.css - */ -/* line 196, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.clearfix:before, .container:before, -.row:before, -.clearfix:after, -.container:after, -.row:after { - display: table; - content: " "; -} - -/* line 202, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_overrides.scss */ -.clearfix:after, .container:after, -.row:after { - clear: both; -} - -/** - * @section Print - * Styling for printed content. Adapted from HTML5BP. - * @link http://html5boilerplate.com - */ -@media print { - /** - * Universal selector. - * Reset all content to transparent background, black color, and remove box and text shadows. - */ - /* line 13, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - * { - background: transparent !important; - color: #000 !important; - box-shadow: none !important; - text-shadow: none !important; - } - /** - * Specifies page margin - */ - @page { - margin: 0.5cm; - } - /** - * Underline all links - */ - /* line 30, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - a, .link-block-styled, - a:visited, - .link-block-styled:visited { - text-decoration: underline; - } - /** - * Show URL after links - */ - /* line 38, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - a[href]:after, [href].link-block-styled:after { - content: " (" attr(href) ")"; - } - /** - * Don't show URL for internal links - */ - /* line 45, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - a[href^="#"]:after, [href^="#"].link-block-styled:after { - content: ""; - } - /** - * Specifies the minimum number of lines to print at the top and bottom of a page. - */ - /* line 52, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - p, - h1, h2, h3 { - orphans: 3; - widows: 3; - } - /** - * Avoid inserting a page break after headers - */ - /* line 61, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - h1, h2, h3 { - page-break-after: avoid; - } - /** - * Change border color on blockquotes and preformatted text. - * Avoid page breaks inside the content - */ - /* line 69, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - pre, - blockquote { - border-color: #999; - page-break-inside: avoid; - } - /** - * Displayed as a table header row group - */ - /* line 78, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - thead { - display: table-header-group; - } - /** - * Avoid inserting a page break inside table rows and images - */ - /* line 85, /Users/cferdinandi/Documents/Go Make Things LLC/plugins/_template/src/sass/components/_print.scss */ - tr, - img { - page-break-inside: avoid; - } -} diff --git a/src/docs/assets/img/favicon.ico b/src/docs/assets/img/favicon.ico deleted file mode 100755 index 9c98897..0000000 Binary files a/src/docs/assets/img/favicon.ico and /dev/null differ diff --git a/src/docs/assets/js/gumshoe.min.js b/src/docs/assets/js/gumshoe.min.js deleted file mode 100755 index 266bcc3..0000000 --- a/src/docs/assets/js/gumshoe.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! gumshoe v3.1.2 | (c) 2016 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/gumshoe */ -!function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.gumshoe=t(e)}("undefined"!=typeof global?global:this.window||this.global,function(e){"use strict";var t,n,o,r,a,c,i={},s="querySelector"in document&&"addEventListener"in e&&"classList"in document.createElement("_"),l=[],u={selector:"[data-gumshoe] a",selectorHeader:"[data-gumshoe-header]",offset:0,activeClass:"active",callback:function(){}},f=function(e,t,n){if("[object Object]"===Object.prototype.toString.call(e))for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(n,e[o],o,e);else for(var r=0,a=e.length;a>r;r++)t.call(n,e[r],r,e)},d=function(){var e={},t=!1,n=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var r=function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t&&"[object Object]"===Object.prototype.toString.call(n[o])?e[o]=d(!0,e[o],n[o]):e[o]=n[o])};o>n;n++){var a=arguments[n];r(a)}return e},v=function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},m=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},g=function(e){var n=0;if(e.offsetParent){do n+=e.offsetTop,e=e.offsetParent;while(e)}else n=e.offsetTop;return n=n-a-t.offset,n>=0?n:0},h=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},p=function(){l.sort(function(e,t){return e.distance>t.distance?-1:e.distance=o&&h(l[0].target))return H(l[0]),l[0];for(var r=0,a=l.length;a>r;r++){var c=l[r];if(c.distance<=n)return H(c),c}y(),t.callback()};var C=function(){f(l,function(e){e.nav.classList.contains(t.activeClass)&&(c={nav:e.nav,parent:e.parent})})};i.destroy=function(){t&&(e.removeEventListener("resize",L,!1),e.removeEventListener("scroll",L,!1),l=[],t=null,n=null,o=null,r=null,a=null,c=null)};var L=function(e){n||(n=setTimeout(function(){n=null,"scroll"===e.type&&i.getCurrentNav(),"resize"===e.type&&(i.setDistances(),i.getCurrentNav())},66))};return i.init=function(n){s&&(i.destroy(),t=d(u,n||{}),r=document.querySelector(t.selectorHeader),b(),0!==l.length&&(C(),i.setDistances(),i.getCurrentNav(),e.addEventListener("resize",L,!1),e.addEventListener("scroll",L,!1)))},i}); \ No newline at end of file diff --git a/src/docs/assets/js/highlight-active-nav.js b/src/docs/assets/js/highlight-active-nav.js deleted file mode 100755 index 4aa4981..0000000 --- a/src/docs/assets/js/highlight-active-nav.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * highlight-active-nav.js - * @description Highlight the active navigation element - * @version 1.0.0 - * @author Chris Ferdinandi - * @license MIT - */ - -(function (root, factory) { - if ( typeof define === 'function' && define.amd ) { - define([], factory(root)); - } else if ( typeof exports === 'object' ) { - module.exports = factory(root); - } else { - root.highlightActiveNav = factory(root); - } -})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) { - - 'use strict'; - - // - // Variables - // - - var highlight = {}; // Object for public APIs - var supports = !!document.querySelector && !!root.addEventListener; // Feature test - var settings; - - // Default settings - var defaults = { - selector: '[data-nav-highlight]', - activeClass: 'nav-active', - urlPrefix: null, - callback: function () {} - }; - - - // - // Methods - // - - /** - * Merge defaults with user options - * @private - * @param {Object} defaults Default settings - * @param {Object} options User options - * @returns {Object} Merged values of defaults and options - */ - var extend = function () { - - // Variables - var extended = {}; - var deep = false; - var i = 0; - var length = arguments.length; - - // Check if a deep merge - if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { - deep = arguments[0]; - i++; - } - - // Merge the object into the extended object - var merge = function (obj) { - for ( var prop in obj ) { - if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { - // If deep merge and property is an object, merge properties - if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { - extended[prop] = extend( true, extended[prop], obj[prop] ); - } else { - extended[prop] = obj[prop]; - } - } - } - }; - - // Loop through each object and conduct a merge - for ( ; i < length; i++ ) { - var obj = arguments[i]; - merge(obj); - } - - return extended; - - }; - - /** - * Destroy the current initialization. - * @public - */ - highlight.destroy = function () { - if ( !settings ) return; - document.documentElement.classList.remove( settings.initClass ); - settings = null; - container = null; - }; - - /** - * Initialize highlightActiveNav - * @public - * @param {Object} options User settings - */ - highlight.init = function ( options ) { - - // feature test - if ( !supports ) return; - - // Destroy any existing initializations - highlight.destroy(); - - // Merge user options with defaults - settings = extend( defaults, options || {} ); - - // Get the container - var href = settings.urlPrefix ? location.pathname.split( settings.urlPrefix )[1] : location.pathname; - var nav = document.querySelector( settings.selector + ' a[href^="' + href + '"]' ); - if ( !nav ) return; - - // Add class to active nav - nav.className += ' ' + settings.activeClass; - - // Run callback - settings.callback(); - - }; - - - // - // Public APIs - // - - return highlight; - -}); \ No newline at end of file diff --git a/src/docs/assets/js/houdini.min.js b/src/docs/assets/js/houdini.min.js deleted file mode 100644 index 2f1b226..0000000 --- a/src/docs/assets/js/houdini.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Houdini v9.4.0 | (c) 2017 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/houdini */ -!(function(t,e){"function"==typeof define&&define.amd?define([],e(t)):"object"==typeof exports?module.exports=e(t):t.houdini=e(t)})("undefined"!=typeof global?global:this.window||this.global,(function(t){"use strict";var e,o,n={},c="querySelector"in document&&"addEventListener"in t&&"classList"in document.createElement("_"),a={selectorToggle:"[data-collapse]",selectorContent:".collapse",toggleActiveClass:"active",contentActiveClass:"active",initClass:"js-houdini",stopVideo:!0,callbackOpen:function(){},callbackClose:function(){}},i=function(t,e,o){if("[object Object]"===Object.prototype.toString.call(t))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(o,t[n],n,t);else for(var c=0,a=t.length;c=0&&e.item(o)!==this;);return o>-1});t&&t!==document;t=t.parentNode)if(t.matches(e))return t;return null},l=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,o=String(t),n=o.length,c=-1,a="",i=o.charCodeAt(0);++c=1&&e<=31||127==e||0===c&&e>=48&&e<=57||1===c&&e>=48&&e<=57&&45===i?a+="\\"+e.toString(16)+" ":a+=e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?o.charAt(c):"\\"+o.charAt(c)}return"#"+a},u=function(t,e){if(e.stopVideo&&t.classList.contains(e.contentActiveClass)){var o=t.querySelector("iframe"),n=t.querySelector("video");if(o){var c=o.src;o.src=c}n&&n.pause()}},d=function(e,o){if(!e.hasAttribute("data-houdini-no-focus")){if(!e.classList.contains(o.contentActiveClass))return void(e.hasAttribute("data-houdini-focused")&&e.removeAttribute("tabindex"));var n={x:t.pageXOffset,y:t.pageYOffset};e.focus(),document.activeElement.id!==e.id&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-houdini-focused",!0),e.focus()),t.scrollTo(n.x,n.y)}};n.closeContent=function(t,o,n){var c=r(e||a,n||{}),i=document.querySelector(l(t));i&&(u(i,c),o&&o.classList.remove(c.toggleActiveClass),i.classList.remove(c.contentActiveClass),d(i,c),e.callbackClose(i,o))},n.openContent=function(t,o,c){var s=r(e||a,c||{}),u=document.querySelector(l(t)),f=o&&o.hasAttribute("data-group")?document.querySelectorAll('[data-group="'+o.getAttribute("data-group")+'"]'):[];u&&(i(f,(function(t){n.closeContent(t.hash,t)})),o&&o.classList.add(s.toggleActiveClass),u.classList.add(s.contentActiveClass),d(u,s),u.removeAttribute("data-houdini-no-focus"),s.callbackOpen(u,o))};var f=function(c){var a=t.location.hash;if(o&&(o.id=o.getAttribute("data-collapse-id"),o=null),a){var i=document.querySelector(e.selectorToggle+'[href*="'+a+'"]');n.openContent(a,i)}},h=function(c){if(0===c.button&&!c.metaKey&&!c.ctrlKey){var a=s(c.target,e.selectorToggle);if(a&&a.hash){if(a.classList.contains(e.toggleActiveClass))return c.preventDefault(),void n.closeContent(a.hash,a);o=document.querySelector(a.hash),o&&(o.setAttribute("data-collapse-id",o.id),o.id="",a.hash===t.location.hash&&(c.preventDefault(),f()))}}},v=function(n){if((o=s(n.target,e.selectorContent))&&!o.classList.contains(e.contentActiveClass)){var c=o.id;if(o.setAttribute("data-collapse-id",c),o.setAttribute("data-houdini-no-focus",!0),o.id="",c===t.location.hash.substring(1))return void f();t.location.hash=c}};return n.destroy=function(){e&&(document.documentElement.classList.remove(e.initClass),document.removeEventListener("click",h,!1),document.removeEventListener("focus",v,!0),t.removeEventListener("hashchange",f,!1),e=null,o=null)},n.init=function(o){c&&(n.destroy(),e=r(a,o||{}),document.documentElement.classList.add(e.initClass),document.addEventListener("click",h,!1),document.addEventListener("focus",v,!0),t.addEventListener("hashchange",f,!1),f())},n})); \ No newline at end of file diff --git a/src/docs/assets/js/prism.js b/src/docs/assets/js/prism.js deleted file mode 100755 index 92b3663..0000000 --- a/src/docs/assets/js/prism.js +++ /dev/null @@ -1,21 +0,0 @@ -/* ============================================================= - - Prism v1.0 - Lightweight, robust, elegant syntax highlighting, by Lea Verou - http://lea.verou.me - - Licensed under MIT License. - http://www.opensource.org/licenses/mit-license.php/ - - * ============================================================= */ - - (function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=self.Prism={util:{type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){var n=t.util.type(e);switch(n){case"Object":var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.util.clone(e[i]));return r;case"Array":return e.slice()}return e}},languages:{extend:function(e,n){var r=t.util.clone(t.languages[e]);for(var i in n)r[i]=n[i];return r},insertBefore:function(e,n,r,i){i=i||t.languages;var s=i[e],o={};for(var u in s)if(s.hasOwnProperty(u)){if(u==n)for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);o[u]=s[u]}return i[e]=o},DFS:function(e,n){for(var r in e){n.call(e,r,e[r]);t.util.type(e)==="Object"&&t.languages.DFS(e[r],n)}}},highlightAll:function(e,n){var r=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code');for(var i=0,s;s=r[i++];)t.highlightElement(s,e===!0,n)},highlightElement:function(r,i,s){var o,u,a=r;while(a&&!e.test(a.className))a=a.parentNode;if(a){o=(a.className.match(e)||[,""])[1];u=t.languages[o]}if(!u)return;r.className=r.className.replace(e,"").replace(/\s+/g," ")+" language-"+o;a=r.parentNode;/pre/i.test(a.nodeName)&&(a.className=a.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var f=r.textContent;if(!f)return;f=f.replace(/&/g,"&").replace(/e.length)break e;if(p instanceof i)continue;a.lastIndex=0;var d=a.exec(p);if(d){l&&(c=d[1].length);var v=d.index-1+c,d=d[0].slice(c),m=d.length,g=v+m,y=p.slice(0,v+1),b=p.slice(g+1),w=[h,1];y&&w.push(y);var E=new i(u,f?t.tokenize(d,f):d);w.push(E);b&&w.push(b);Array.prototype.splice.apply(s,w)}}}return s},hooks:{all:{},add:function(e,n){var r=t.hooks.all;r[e]=r[e]||[];r[e].push(n)},run:function(e,n){var r=t.hooks.all[e];if(!r||!r.length)return;for(var i=0,s;s=r[i++];)s(n)}}},n=t.Token=function(e,t){this.type=e;this.content=t};n.stringify=function(e,r,i){if(typeof e=="string")return e;if(Object.prototype.toString.call(e)=="[object Array]")return e.map(function(t){return n.stringify(t,r,e)}).join("");var s={type:e.type,content:n.stringify(e.content,r,i),tag:"span",classes:["token",e.type],attributes:{},language:r,parent:i};s.type=="comment"&&(s.attributes.spellcheck="true");t.hooks.run("wrap",s);var o="";for(var u in s.attributes)o+=u+'="'+(s.attributes[u]||"")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'" '+o+">"+s.content+""};if(!self.document){self.addEventListener("message",function(e){var n=JSON.parse(e.data),r=n.language,i=n.code;self.postMessage(JSON.stringify(t.tokenize(i,t.languages[r])));self.close()},!1);return}var r=document.getElementsByTagName("script");r=r[r.length-1];if(r){t.filename=r.src;document.addEventListener&&!r.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",t.highlightAll)}})();; - Prism.languages.markup={comment:/<!--[\w\W]*?-->/g,prolog:/<\?.+?\?>/,doctype:/<!DOCTYPE.+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?[\w:-]+\s*(?:\s+[\w:-]+(?:=(?:("|')(\\?[\w\W])*?\1|\w+))?\s*)*\/?>/gi,inside:{tag:{pattern:/^<\/?[\w:-]+/i,inside:{punctuation:/^<\/?/,namespace:/^[\w-]+?:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/gi,inside:{punctuation:/=|>|"/g}},punctuation:/\/?>/g,"attr-name":{pattern:/[\w:-]+/g,inside:{namespace:/^[\w-]+?:/}}}},entity:/&#?[\da-z]{1,8};/gi};Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))});; - Prism.languages.css={comment:/\/\*[\w\W]*?\*\//g,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*{))/gi,inside:{punctuation:/[;:]/g}},url:/url\((["']?).*?\1\)/gi,selector:/[^\{\}\s][^\{\};]*(?=\s*\{)/g,property:/(\b|\B)[\w-]+(?=\s*:)/ig,string:/("|')(\\?.)*?\1/g,important:/\B!important\b/gi,ignore:/&(lt|gt|amp);/gi,punctuation:/[\{\};:]/g};Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<|<)style[\w\W]*?(>|>)[\w\W]*?(<|<)\/style(>|>)/ig,inside:{tag:{pattern:/(<|<)style[\w\W]*?(>|>)|(<|<)\/style(>|>)/ig,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.css}}});; - Prism.languages.clike={comment:{pattern:/(^|[^\\])(\/\*[\w\W]*?\*\/|(^|[^:])\/\/.*?(\r?\n|$))/g,lookbehind:!0},string:/("|')(\\?.)*?\1/g,"class-name":{pattern:/((?:(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/ig,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/g,"boolean":/\b(true|false)\b/g,"function":{pattern:/[a-z0-9_]+\(/ig,inside:{punctuation:/\(/}}, number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,operator:/[-+]{1,2}|!|<=?|>=?|={1,3}|(&){1,2}|\|?\||\?|\*|\/|\~|\^|\%/g,ignore:/&(lt|gt|amp);/gi,punctuation:/[{}[\];(),.:]/g}; - ; - Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(var|let|if|else|while|do|for|return|in|instanceof|function|new|with|typeof|try|throw|catch|finally|null|break|continue)\b/g,number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?|NaN|-?Infinity)\b/g});Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/g,lookbehind:!0}});Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<|<)script[\w\W]*?(>|>)[\w\W]*?(<|<)\/script(>|>)/ig,inside:{tag:{pattern:/(<|<)script[\w\W]*?(>|>)|(<|<)\/script(>|>)/ig,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.javascript}}}); - ; - Prism.languages.php=Prism.languages.extend("clike",{keyword:/\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|extends|private|protected|parent|static|throw|null|echo|print|trait|namespace|use|final|yield|goto|instanceof|finally|try|catch)\b/ig, constant:/\b[A-Z0-9_]{2,}\b/g});Prism.languages.insertBefore("php","keyword",{delimiter:/(\?>|<\?php|<\?)/ig,variable:/(\$\w+)\b/ig,"package":{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/g,lookbehind:!0,inside:{punctuation:/\\/}}});Prism.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/g,lookbehind:!0}}); Prism.languages.markup&&(Prism.hooks.add("before-highlight",function(a){"php"===a.language&&(a.tokenStack=[],a.code=a.code.replace(/(?:<\?php|<\?|<\?php|<\?)[\w\W]*?(?:\?>|\?>)/ig,function(b){a.tokenStack.push(b);return"{{{PHP"+a.tokenStack.length+"}}}"}))}),Prism.hooks.add("after-highlight",function(a){if("php"===a.language){for(var b=0,c;c=a.tokenStack[b];b++)a.highlightedCode=a.highlightedCode.replace("{{{PHP"+(b+1)+"}}}",Prism.highlight(c,a.grammar,"php"));a.element.innerHTML=a.highlightedCode}}), Prism.hooks.add("wrap",function(a){"php"===a.language&&"markup"===a.type&&(a.content=a.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g,'$1'))}),Prism.languages.insertBefore("php","comment",{markup:{pattern:/(<|<)[^?]\/?(.*?)(>|>)/g,inside:Prism.languages.markup},php:/\{\{\{PHP[0-9]+\}\}\}/g}));; - Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(\/\*[\w\W]*?\*\/|\/\/.*?(\r?\n|$))/g,lookbehind:!0},atrule:/@[\w-]+(?=\s+(\(|\{|;))/gi,url:/([-a-z]+-)*url(http://github.com/?=\()/gi,selector:/([^@;\{\}\(\)]?([^@;\{\}\(\)]|&|\#\{\$[-_\w]+\})+)(?=\s*\{(\}|\s|[^\}]+(:|\{)[^\}]+))/gm});Prism.languages.insertBefore("scss","atrule",{keyword:/@(if|else if|else|for|each|while|import|extend|debug|warn|mixin|include|function|return)|(?=@for\s+\$[-_\w]+\s)+from/i});Prism.languages.insertBefore("scss","property",{variable:/((\$[-_\w]+)|(#\{\$[-_\w]+\}))/i});Prism.languages.insertBefore("scss","ignore",{placeholder:/%[-_\w]+/i,statement:/\B!(default|optional)\b/gi,"boolean":/\b(true|false)\b/g,"null":/\b(null)\b/g,operator:/\s+([-+]{1,2}|={1,2}|!=|\|?\||\?|\*|\/|\%)\s+/g}); - ; \ No newline at end of file diff --git a/src/docs/assets/js/toc.js b/src/docs/assets/js/toc.js deleted file mode 100755 index 6b03942..0000000 --- a/src/docs/assets/js/toc.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * tableOfContents.js - * @description Dynamically create a table of contents - * @version 1.0.0 - * @author Chris Ferdinandi - * @license MIT - */ - -(function (root, factory) { - if ( typeof define === 'function' && define.amd ) { - define([], factory(root)); - } else if ( typeof exports === 'object' ) { - module.exports = factory(root); - } else { - root.tableOfContents = factory(root); - } -})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) { - - 'use strict'; - - // - // Variables - // - - var toc = {}; // Object for public APIs - var supports = !!document.querySelector && !!root.addEventListener; // Feature test - var settings, container; - - // Default settings - var defaults = { - container: '[data-toc]', - selectors: '[data-toc-content] h2', - heading: 'Contents', - headingType: 'h2', - headingClass: '', - navClass: '', - linkClass: '', - initClass: 'js-table-of-contents', - callback: function () {} - }; - - - // - // Methods - // - - /** - * A simple forEach() implementation for Arrays, Objects and NodeLists - * @private - * @param {Array|Object|NodeList} collection Collection of items to iterate - * @param {Function} callback Callback function for each iteration - * @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating over (aka `this`) - */ - var forEach = function (collection, callback, scope) { - if (Object.prototype.toString.call(collection) === '[object Object]') { - for (var prop in collection) { - if (Object.prototype.hasOwnProperty.call(collection, prop)) { - callback.call(scope, collection[prop], prop, collection); - } - } - } else { - for (var i = 0, len = collection.length; i < len; i++) { - callback.call(scope, collection[i], i, collection); - } - } - }; - - /** - * Merge defaults with user options - * @private - * @param {Object} defaults Default settings - * @param {Object} options User options - * @returns {Object} Merged values of defaults and options - */ - var extend = function () { - - // Variables - var extended = {}; - var deep = false; - var i = 0; - var length = arguments.length; - - // Check if a deep merge - if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { - deep = arguments[0]; - i++; - } - - // Merge the object into the extended object - var merge = function (obj) { - for ( var prop in obj ) { - if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { - // If deep merge and property is an object, merge properties - if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { - extended[prop] = extend( true, extended[prop], obj[prop] ); - } else { - extended[prop] = obj[prop]; - } - } - } - }; - - // Loop through each object and conduct a merge - for ( ; i < length; i++ ) { - var obj = arguments[i]; - merge(obj); - } - - return extended; - - }; - - /** - * Render the Table of Contents - */ - toc.render = function () { - - // Variables - var sections = document.querySelectorAll( settings.selectors ); - var toc = ''; - - if ( sections.length === 0 ) return; - - // Loop through each section and create a link to it - forEach(sections, function (section) { - - // Ignore sections without an id - var id = section.id; - if ( !id ) return; - - // Create section navigation - toc += '
  • ' + section.innerHTML + '
  • '; - - }); - - // Inject table of contents into the DOM - container.innerHTML = '<' + settings.headingType + '>' + settings.heading + '
      ' + toc + '
    '; - - // Run callback - settings.callback(); - - }; - - /** - * Destroy the current initialization. - * @public - */ - toc.destroy = function () { - if ( !settings ) return; - document.documentElement.classList.remove( settings.initClass ); - container.innerHTML = ''; - settings = null; - container = null; - }; - - /** - * Initialize tableOfContents - * @public - * @param {Object} options User settings - */ - toc.init = function ( options ) { - - // feature test - if ( !supports ) return; - - // Destroy any existing initializations - toc.destroy(); - - // Merge user options with defaults - settings = extend( defaults, options || {} ); - - // Get the container - container = document.querySelector( settings.container ); - if ( !container ) return; - - // Add class to HTML element to activate conditional CSS - document.documentElement.classList.add( settings.initClass ); - - // Render the table of contents - toc.render(); - - }; - - - // - // Public APIs - // - - return toc; - -}); \ No newline at end of file diff --git a/src/docs/browsers.md b/src/docs/browsers.md deleted file mode 100755 index f873b44..0000000 --- a/src/docs/browsers.md +++ /dev/null @@ -1,20 +0,0 @@ -# Browser Compatibility - -## Supported Browsers - -Smooth Scroll works in all modern browsers, and IE 9 and above. - -Smooth Scroll is built with modern JavaScript APIs, and uses progressive enhancement. If the JavaScript file fails to load, or if your site is viewed on older and less capable browsers, anchor links will jump the way they normally would. - -
    - - -## Known Issues - -### `` styling - -If the `` element has been assigned a height of `100%` or `overflow: hidden`, Smooth Scroll is unable to properly calculate page distances and will not scroll to the right location. The `` element can have a fixed, non-percentage based height (ex. `500px`), or a height of `auto`, and an `overflow` of `visible`. - -### Animating from the bottom - -Animated scrolling links at the very bottom of the page (example: a "scroll to top" link) will stop animated almost immediately after they start when using certain easing patterns. This is an issue that's been around for a while and I've yet to find a good fix for it. I've found that `easeOut*` easing patterns work as expected, but other patterns can cause issues. [See this discussion for more details.](https://github.com/cferdinandi/smooth-scroll/issues/49) \ No newline at end of file diff --git a/src/docs/extras.md b/src/docs/extras.md deleted file mode 100644 index 300d3b0..0000000 --- a/src/docs/extras.md +++ /dev/null @@ -1,85 +0,0 @@ -# Extras - -Frequently asked questions, code snippets, and more to help you get the most out of Smooth Scroll. - -
    - -## Scrolling to an anchor link on another page - -This, unfortunately, cannot be done well. - -Most browsers instantly jump you to the anchor location when you load a page. You could use `scrollTo(0, 0)` to pull users back up to the top, and then manually use the `smoothScroll.animateScroll()` method, but in my experience, it results in a visible jump on the page that's a worse experience than the default browser behavior. - -
    - -## Scrolling without updating the URL - -Smooth Scroll is designed to progressively enhance anchor links while offloading as much to the browser as possible. In it's current implementation, it relies on `hashchange` events (which occur whenever a `#` changes in the URL) to trigger the scrolling behavior. - -A benefit of this approach is that it preserves browser history and let's users navigate between anchors with the forward and back buttons on the browsers, just like you would normally. - -*However*, I know certain front-end frameworks also use URL hashes for their own internal processes. While I view this as an anti-pattern, and won't bake hashless anchor links into Smooth Scroll's core, you can enable scrolling without updating the URL via the Smooth Scroll API. - -Here's a relatively lightweight helper function that listens for click events and uses the `smoothScroll.animateScroll()` method to scroll to the anchor. If you use this, you **should not** need initialize Smooth Scroll with `smoothScroll.init()`. - -```javascript -var smoothScrollWithoutHash = function (selector, settings) { - - /** - * Get the closest matching element up the DOM tree. - * @private - * @param {Element} elem Starting element - * @param {String} selector Selector to match against - * @return {Boolean|Element} Returns null if not match found - */ - var getClosest = function ( elem, selector ) { - - // Element.matches() polyfill - if (!Element.prototype.matches) { - Element.prototype.matches = - Element.prototype.matchesSelector || - Element.prototype.mozMatchesSelector || - Element.prototype.msMatchesSelector || - Element.prototype.oMatchesSelector || - Element.prototype.webkitMatchesSelector || - function(s) { - var matches = (this.document || this.ownerDocument).querySelectorAll(s), - i = matches.length; - while (--i >= 0 && matches.item(i) !== this) {} - return i > -1; - }; - } - - // Get closest match - for ( ; elem && elem !== document; elem = elem.parentNode ) { - if ( elem.matches( selector ) ) return elem; - } - - return null; - - }; - - - /** - * If smooth scroll element clicked, animate scroll - * @private - */ - var clickHandler = function (event) { - var toggle = getClosest( event.target, selector ); - console.log(toggle); - if ( !toggle || toggle.tagName.toLowerCase() !== 'a' ) return; - console.log(toggle.hash); - var anchor = document.querySelector( toggle.hash ); - if ( !anchor ) return; - - event.preventDefault(); // Prevent default click event - smoothScroll.animateScroll( anchor, toggle, settings || {} ); // Animate scroll - }; - - window.addEventListener('click', clickHandler, false ); - -}; - -// Run our function -smoothScrollWithoutHash( 'a[href*="#"]' ); -``` \ No newline at end of file diff --git a/src/docs/index.md b/src/docs/index.md deleted file mode 100755 index a850be6..0000000 --- a/src/docs/index.md +++ /dev/null @@ -1,65 +0,0 @@ -# Smooth Scroll - -Smooth Scroll is a lightweight script to animate scrolling to anchor links. It works great with [Gumshoe](https://github.com/cferdinandi/gumshoe). - -
    - -## Demo - -

    - Linear
    - Linear (no other options)
    -

    - -

    - Ease-In
    - Quad
    - Cubic
    - Quart
    - Quint -

    - -

    - Ease-In-Out
    - Quad
    - Cubic
    - Quart
    - Quint -

    - -

    - Ease-Out
    - Quad
    - Cubic
    - Quart
    - Quint -

    - -

    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . -

    - -

    - Non-ASCII Characters
    - 中文 -

    - -

    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . -

    - -

    中文

    - -

    Bazinga!

    - -

    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    - .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    . -

    - -

    Back to the top

    \ No newline at end of file diff --git a/src/docs/license.md b/src/docs/license.md deleted file mode 100755 index 9071845..0000000 --- a/src/docs/license.md +++ /dev/null @@ -1,161 +0,0 @@ -# License - -Smooth Scroll has three types of licenses: - -1. **[Open Source](#open-source-license)**, for personal and open source projects. -2. **[Commercial](#commercial-license)**, for commercial projects and applications. -3. **[OEM](#oem-license)**, for when this Smooth Scroll will be bundled with a commercial interface builder, SDK, or toolkit. - -
    - - -## Open Source License - -If you're looking to use Smooth Scroll on an open source or personal project, the code is available under the [GPLv3 License](https://gomakethings.com/gpl/). GPLv3 has many terms, but the most important one is that it [requires you to license you entire project under the terms of GPLv3 as well](https://gomakethings.com/gpl/#5-conveying-modified-source-versions): - -> You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. - -You can absolutely use the open source license for commercial projects, but those projects must also be open sourced in their entirety with a GPLv3 license. - -
    - - -## Commercial License - -The Commercial License let's you use Smooth Scroll in commercial projects and applications without the provisions of GPLv3. With this license, your code is kept proprietary. - -- You can modify the source code. -- You can include it in your own commercial products and applications, such as premium CMS themes, plugins, or templates. -- Customers and users of your products do not need to purchase their own license, as long as they're not developing their own commercial products with Smooth Scroll. - -### Buy a Commercial License - -Commercial Licenses are priced based on the number of websites, applications, or other products that use Smooth Scroll. Pay with credit card and instantly receive a PDF of your Commercial License. - - - - - - - - - - - - - - - - - - - - - - -
    DescriptionPrice
    1 Site or AppBuy a 1 Site License now for $29
    5 Sites or AppsBuy a 5 Site License now for $59
    25 Sites or AppsBuy a 25 Site License now for $119
    - -You can read the full text of the Commercial License below. Email me at chris@gomakethings.com with any questions you have about licensing. - - -### The Commercial License Agreement - -This Software License Agreement (the **“Agreement”**) is between Go Make Things, LLC (**“Go Make Things”**) and You (including your agents and affiliates), a commercial licensee of Go Make Things's software. If you have not purchased a Smooth Scroll Commercial License from Go Make Things, these terms do not apply to you, and your use of the Go Make Things software is instead governed by the [GNU General Public License, version 3](https://gomakethings.com/gpl/). - -#### 1. Definitions - -- **“Application”** means any software, application, or elements that Your Licensed Developers develop using the Software or Modifications in accordance with this Agreement. -- **“End User”** means an end user of Your Application who acquires a license to such solely for their own use and not for distribution, resale, user interface design, or software development purposes. -- **“Licensed Developer”** shall mean an individual person permitted to use the Software and make Modifications for your Applications, whether such person is Your employee or a consultant or contractor providing services to You. -- **“Modification”** means any revision, adaptation, or derivative of the Software produced by You. -- The **“Software”** means Smooth Scroll version 11. - -#### 2. Commercial license grant - -Subject to the terms of this Agreement, Go Make Things grants to You a revocable, non-exclusive, non-transferable license: -- for Licensed Developers to use the Software to create Modifications and [n—varies based on the license you purchase] Applications; -- for You to distribute the Software and/or Modifications to an unlimited number of End Users solely as integrated into the Applications; -- and for End Users to use the Software as incorporated into Your Applications in accordance with the terms of this Agreement. - -You are entitled to receive all updates to the major version of the Software licensed by you, as well as any later version of the Software that Go Make Things, in writing, explicitly authorizes you to use. (For illustration purposes only, if you purchased a license for version 2.0, this licenses authorizes you to use version 2.9, but not 3.0.) Go Make Things makes no representation that any update will be compatible with your Application. - -#### 3. Ownership - -This is a license agreement and not an agreement for sale. Go Make Things reserves ownership of all intellectual property rights inherent in or relating to the Software and corresponding source code, which include all copyright, patent rights, all rights in relation to registered and unregistered trademarks (including service marks), confidential information (including trade secrets and know-how) and all rights other than those expressly granted by this Agreement. - -You must not remove, obscure or interfere with any copyright, acknowledgment, attribution, trademark, warning or disclaimer statement affixed to, incorporated in or otherwise applied in connection with the Software. Notwithstanding the above, you are permitted to produce, use, and distribute compressed or “minified” copies of the Software that do not bear the notices contained in the Software’s source code, so long as you otherwise comply with the terms of this license. - -#### 4. Prohibited Uses - -Your Application must have substantially different functionality than, and must not compete directly with, the Software. - -You may not distribute the Software or Modifications except as included within Your Application. - -If You produce an Application for a customer, You are responsible for ensuring that your customer does not make use of the Software except with Applications licensed herein. - -Your Application must not enable End Users to produce separate applications that incorporate the Software or Modifications. For example, if Your Application is a development toolkit or library, an application builder, a website builder that can be used to incorporate the Software into a new Application, You must obtain a separate OEM license from Go Make Things. - -#### 5. Termination - -This Agreement and the license granted hereunder shall continue until terminated in accordance with this Section. Unless otherwise specified in this Agreement, the license shall last as long as Your use of the Software is in compliance with the terms herein. - -Go Make Things shall have the right to terminate this Agreement and the license granted hereunder immediately if You breach any of the material terms of this Agreement. Upon termination of this Agreement, all licenses granted to You in this Agreement shall terminate automatically and You shall immediately cease use and distribution of the Software. - -Upon termination of this Agreement, You must cease all use of the Software. If, prior to your breach of this Agreement, you delivered Applications incorporating the Software to Your End Users, those End Users’ licenses shall survive termination. - -#### 6. Disclaimer of Warranties - -TO THE EXTENT PERMITTED BY LAW, GO MAKE THINGS DISCLAIMS ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE. WE DO NOT GUARANTEE THAT THE OPERATION OF THE SOFTWARE OR YOUR APPLICATION WILL BE UNINTERRUPTED OR ERROR-FREE, AND YOU ACKNOWLEDGE THAT IT IS NOT TECHNICALLY PRACTICABLE FOR US TO DO SO. - -#### 7. Limitation of Liabilities - -TO THE EXTENT PERMITTED BY LAW, IN NO EVENT SHALL GO MAKE THINGS BE LIABLE UNDER ANY LEGAL OR EQUITABLE THEORY FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LAW) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE OR THE CODE IT PRODUCES OR ANY OTHER SUBJECT MATTER RELATING TO THIS AGREEMENT, EVEN IF GO MAKE THINGS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN ANY CASE, GO MAKE THINGS’S ENTIRE LIABILITY WITH RESPECT TO ANY SUBJECT MATTER RELATING TO THIS AGREEMENT SHALL BE LIMITED TO THE GREATER OF: (I) THE AMOUNT ACTUALLY PAID BY YOU FOR THE LICENSE, OR (II) FIVE HUNDRED DOLLARS ($500). - -#### 8. Indemnification - -While redistributing the Software or Modifications thereof as part of Your Application, You may choose to offer acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this Agreement. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, and not on Go Make Things’s behalf. - -You agree to indemnify, hold harmless, and defend Go Make Things and its owners, officers, agents, and affiliates from and against any and all claims, lawsuits and proceedings (collectively “Claims”), and all expenses, costs (including attorney's fees), judgments, damages and other liabilities resulting from such Claims, that arise or result from: -- your use of the Software in violation of this Agreement; -- the use or distribution of Your Application, except to the extent such claim is based solely on the inclusion of the Software therein; -- your Modification of the Software’s source code; or -- your accepting support, warranty, indemnity, or additional liability as described in the preceding paragraph. - -#### 9. Payment and Taxes - -All payments under this Agreement are due to Go Make Things upon Your purchase of a license to the Software. - -Each party shall be responsible for all taxes (including, but not limited to, taxes based upon its income) or levies imposed on it under applicable laws, regulations and tax treaties as a result of this Agreement and any payments made hereunder (including those required to be withheld or deducted from payments); provided that You shall be responsible for any value added tax, use tax, sales tax, or similar tax, and shall pay or reimburse Go Make Things for the same upon invoice. Each party shall furnish evidence of such paid taxes as is sufficient to enable the other party to obtain any credits available to it, including original tax withholding certificates. - -#### 10. Miscellaneous - -Software Updates and Upgrades. The license granted herein applies only to the version of the Software available when purchased in connection with the terms of this Agreement, and to any updates and/or upgrades to which You may be entitled. Any previous or subsequent license granted to You for use of the Software shall be governed by the terms and conditions of the agreement entered in connection with purchase or download of that version of the Software. - -**Survival.** The provisions of sections 4 through 10 will survive termination of this Agreement. - -**Compliance with Applicable Laws.** You agree that You will comply with all applicable laws and regulations with respect to the Software, including without limitation all export control laws and regulations. - -**Marketing.** You agree to Go Make Things’s use of Your name, trade name, and trademark, for use in Go Make Things’s marketing materials and its website, solely to identify you as a customer of Go Make Things. - -**Assignment.** This Agreement may be assigned by Go Make Things in whole or in part and will inure to the benefit of Go Make Things’s successors and assigns. You may not assign or transfer this Agreement without Go Make Things’s prior written consent. Notwithstanding the foregoing, however, if You transfer ownership of an Application to a customer for which it was developed, You may assign this Agreement to that customer (the “Assignee”) provided: -1. You provide written notice to Go Make Things prior to the effective date of such assignment; and -2. there is a written agreement, wherein the Assignee accepts the terms of this Agreement. - -**Entire Agreement.** The terms and conditions stated herein set forth the entire agreement of the parties and replace and supersede all other contracts, agreements, and understandings, written or oral, relating to the subject matter hereof. - -**Severability.** In the event that any portion of this Agreement is held to be unenforceable, such portions shall not limit or otherwise modify or affect any other portion of this Agreement. - -**Modification; Waiver.** This Agreement cannot be amended except by a written instrument executed by Go Make Things.

 All Additional Terms are hereby incorporated into this Agreement by this reference.

 The failure of Go Make Things to enforce any provision of this Agreement may not be deemed a waiver of that or any other provision of this Agreement. - -**Governing Law.** This Agreement is subject to, and shall be interpreted and enforced in accordance with, the laws of the Commonwealth of Massachusetts in all respects without regard to conflict of law principles. The Courts of Bristol County, Massachusetts and Norfolk County, Massachusetts shall be the sole and exclusive Courts in which either party may attempt to enforce or establish the existence or scope of any rights, benefits or obligations under this Agreement. The UN Convention on Contracts for the International Sale of Goods is expressly excluded. - -**Government Use.** If the Software or any related documentation is licensed to the U.S. Government or any agency thereof, it will be considered to be “commercial computer software” or “commercial computer software documentation,” as those terms are used in 48 CFR § 12.212 or 48 CFR § 227.7202, and is being licensed with only those rights as are granted to all other licensees as set forth in this Agreement. - -
    - - -## OEM License - -If you'll be including Smooth Scroll in a project that can be used to build new products, websites, or applications—such as a commercial interface builder, SDK, or toolkit—you need to purchase an OEM License. - -The OEM License is customized for you. Please content me chris@gomakethings.com to discuss your project. \ No newline at end of file diff --git a/src/docs/options.md b/src/docs/options.md deleted file mode 100755 index 357c7d7..0000000 --- a/src/docs/options.md +++ /dev/null @@ -1,165 +0,0 @@ -# Options and Settings - -Smooth Scroll includes smart defaults and works right out of the box. But if you want to customize things, it also has a robust API that provides multiple ways for you to adjust the default options and settings. - -
    - -## Global Settings - -You can pass options and callbacks into Smooth Scroll through the `init()` function: - -```javascript -smoothScroll.init({ - // Selectors - selector: '[data-scroll]', // Selector for links (must be a valid CSS selector) - ignore: '[data-scroll-ignore]' // Selector to ignore (won't animate scrolling on links with this selector) - selectorHeader: null, // Selector for fixed headers (must be a valid CSS selector) [optional] - - // Speed & Easing - speed: 500, // Integer. How fast to complete the scroll in milliseconds - offset: 0, // Integer or Function returning an integer. How far to offset the scrolling anchor location in pixels - easing: 'easeInOutCubic', // Easing pattern to use - - // Custom easing patterns. - // Must be an object with the easing name as the key - // Each pattern must be a function, with `time` as the argument, that returns the pattern - easingPatterns: { - myCustomEasingPattern: function (time) { - return time * (2 - time); - } - } - - // Callback API - before: function (anchor, toggle) {}, // Function to run before scrolling starts - after: function (anchor, toggle) {} // Function to run after scrolling completes -}); -``` - -**Note:** To programatically add Smooth Scroll to all anchor links on a page, pass `selector: 'a[href*="#"]'` into `init`. - -### Easing Options - -**Linear** -*Moves at the same speed from start to finish.* - -* `Linear` - - -**Ease-In** -*Gradually increases in speed.* - -* `easeInQuad` -* `easeInCubic` -* `easeInQuart` -* `easeInQuint` - - -**Ease-In-Out** -*Gradually increases in speed, peaks, and then gradually slows down.* - -* `easeInOutQuad` -* `easeInOutCubic` -* `easeInOutQuart` -* `easeInOutQuint` - - -**Ease-Out** -*Gradually decreases in speed.* - -* `easeOutQuad` -* `easeOutCubic` -* `easeOutQuart` -* `easeOutQuint` - - -Learn more about the different easing patterns and what they do at [easings.net](http://easings.net/). - -
    - - -## Override settings with data attributes - -Smooth Scroll also lets you override global settings on a link-by-link basis using the `[data-options]` data attribute. - -```markup - - Anchor Link - -``` - -***Note:*** *You must use [valid JSON](http://jsonlint.com/) in order for the `data-options` feature to work. Does not support the `before` and `after` callback methods, or the `easingPatterns` object.* - -
    - - -## Use Smooth Scroll events in your own scripts - -You can also call Smooth Scroll's scroll animation events in your own scripts. - -### animateScroll() -Animate scrolling to an anchor. - -```javascript -smoothScroll.animateScroll( - anchor, // Node to scroll to, OR an integer. ex. document.querySelector( '#bazinga' ) - toggle, // Node that toggles the animation. ex. document.querySelector( '#toggle' ) - options // Classes and callbacks. Same options as those passed into the init() function. -); -``` - -**Example 1** - -```javascript -var anchor = document.querySelector( '#bazinga' ); -smoothScroll.animateScroll( anchor ); -``` - -**Example 2** - -```javascript -var anchor = document.querySelector( '#bazinga' ); -var toggle = document.querySelector('#toggle'); -var options = { speed: 1000, easing: 'easeOutCubic' }; -smoothScroll.animateScroll( anchor, toggle, options ); -``` - -**Example 3** - -```javascript -// You can optionally pass in a y-position to scroll to as an integer -smoothScroll.animateScroll( 750 ); -``` - -### destroy() -Destroy the current `smoothScroll.init()`. This is called automatically during the `init` function to remove any existing initializations. - -```javascript -smoothScroll.destroy(); -``` - -
    - - -## Fixed Headers - -If you're using a fixed header, Smooth Scroll will automatically offset scroll distances by the header height. Pass in a valid CSS selector for your fixed header as an option to the `init`. - -If you have multiple fixed headers, pass in the last one in the markup. - -```markup - -... - -``` \ No newline at end of file diff --git a/src/docs/setup.md b/src/docs/setup.md deleted file mode 100755 index 7887315..0000000 --- a/src/docs/setup.md +++ /dev/null @@ -1,66 +0,0 @@ -# Getting Started - -Compiled and production-ready code can be found in the `dist` directory. The `src` directory contains development code. - -
    - -## Quick Start - -### 1. Include Smooth Scroll on your site. - -```markup - -``` - -### 2. Add the markup to your HTML. - -Turn anchor links into Smooth Scroll links by adding the `[data-scroll]` data attribute. Give the anchor location an ID just like you normally would. - -```markup -Anchor Link -... -Bazinga! -``` - -### 3. Initialize Smooth Scroll. - -In the footer of your page, after the content, initialize Smooth Scroll. And that's it, you're done. Nice work! - -```markup - -``` - -
    - -## Using a Package Manager - -Install Smooth Scroll with your favorite package manager or module bundler directly from NPM. - -```bash -npm install smooth-scroll -``` - -
    - - -## Working with the Source Files - -If you would prefer, you can work with the development code in the `src` directory using the included [Gulp build system](http://gulpjs.com/). This compiles, lints, and minifies code. - -### Dependencies -Make sure these are installed first. - -* [Node.js](http://nodejs.org) -* [Gulp](http://gulpjs.com) `sudo npm install -g gulp` - -### Using Gulp - -1. In bash/terminal/command line, `cd` into your project directory. -2. Run `npm install` to install required files. -3. When it's done installing, run one of the task runners to get going: - * `gulp` manually compiles files. - * `gulp watch` automatically compiles files when changes are made and applies changes using [LiveReload](http://livereload.com/). - -Compiled and production-ready code can be found in the `dist` directory. The `src` directory contains development code. \ No newline at end of file diff --git a/src/docs/support.md b/src/docs/support.md deleted file mode 100755 index 5dcb7ec..0000000 --- a/src/docs/support.md +++ /dev/null @@ -1,46 +0,0 @@ -# Support - -If you're having issues with Smooth Scroll, there are a few ways to get help. - -
    - - -## Community Support - -You can ask questions and get help from a community of developers on [GitHub Issues](https://github.com/cferdinandi/smooth-scroll/issues). - -**Before posting, do a search to make sure your issue or questions hasn't already been reported or discussed.** If no matching issue exists, go ahead and create one. Please be sure to include all of the following: - -1. A clear, descriptive title (ie. "A bug" is not a good title). -2. [A reduced test case.](https://css-tricks.com/reduced-test-cases/) - - Clearly demonstrate the bug or issue. - - Include the bare minimum HTML, CSS, and JavaScript required to demonstrate the bug. - - A link to your production site is not a reduced test case. -3. The browser and OS that you're using. - -Duplicates and issues without a reduced test case may be closed without comment. - -
    - - -## Premium Support - -Premium Support gives your direct access to me by email to answer any specific questions or issues you have. - -Get Premium Support - -
    - - -## Custom Support - -If you want to customize Smooth Scroll to better meet your needs, I can help. Send me an email at chris@gomakethings.com with the details. - -
    - - -## Feature Requests - -Please post feature requests on [GitHub Issues](https://github.com/cferdinandi/smooth-scroll/issues) and clearly mark it as a feature request. Provide as much detail as you can. - -If there's a feature listed there already that you'd like to see incorporated into the plugin, add your support. \ No newline at end of file diff --git a/src/js/smooth-scroll.js b/src/js/smooth-scroll.js deleted file mode 100755 index 7f4e08d..0000000 --- a/src/js/smooth-scroll.js +++ /dev/null @@ -1,592 +0,0 @@ -(function (root, factory) { - if ( typeof define === 'function' && define.amd ) { - define([], factory(root)); - } else if ( typeof exports === 'object' ) { - module.exports = factory(root); - } else { - root.smoothScroll = factory(root); - } -})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) { - - 'use strict'; - - // - // Variables - // - - var smoothScroll = {}; // Object for public APIs - var supports = 'querySelector' in document && 'addEventListener' in root; // Feature test - var settings, anchor, toggle, fixedHeader, headerHeight, eventTimeout, animationInterval; - - // Default settings - var defaults = { - // Selectors - selector: '[data-scroll]', - ignore: '[data-scroll-ignore]', - selectorHeader: null, - - // Speed & Easing - speed: 500, - offset: 0, - easing: 'easeInOutCubic', - easingPatterns: {}, - - // Callback API - before: function () {}, - after: function () {} - }; - - - // - // Methods - // - - /** - * Merge two or more objects. Returns a new object. - * @private - * @param {Boolean} deep If true, do a deep (or recursive) merge [optional] - * @param {Object} objects The objects to merge together - * @returns {Object} Merged values of defaults and options - */ - var extend = function () { - - // Variables - var extended = {}; - var deep = false; - var i = 0; - var length = arguments.length; - - // Check if a deep merge - if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) { - deep = arguments[0]; - i++; - } - - // Merge the object into the extended object - var merge = function (obj) { - for ( var prop in obj ) { - if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) { - // If deep merge and property is an object, merge properties - if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) { - extended[prop] = extend( true, extended[prop], obj[prop] ); - } else { - extended[prop] = obj[prop]; - } - } - } - }; - - // Loop through each object and conduct a merge - for ( ; i < length; i++ ) { - var obj = arguments[i]; - merge(obj); - } - - return extended; - - }; - - /** - * Get the height of an element. - * @private - * @param {Node} elem The element to get the height of - * @return {Number} The element's height in pixels - */ - var getHeight = function ( elem ) { - return Math.max( elem.scrollHeight, elem.offsetHeight, elem.clientHeight ); - }; - - /** - * Get the closest matching element up the DOM tree. - * @private - * @param {Element} elem Starting element - * @param {String} selector Selector to match against - * @return {Boolean|Element} Returns null if not match found - */ - var getClosest = function ( elem, selector ) { - - // Element.matches() polyfill - if (!Element.prototype.matches) { - Element.prototype.matches = - Element.prototype.matchesSelector || - Element.prototype.mozMatchesSelector || - Element.prototype.msMatchesSelector || - Element.prototype.oMatchesSelector || - Element.prototype.webkitMatchesSelector || - function(s) { - var matches = (this.document || this.ownerDocument).querySelectorAll(s), - i = matches.length; - while (--i >= 0 && matches.item(i) !== this) {} - return i > -1; - }; - } - - // Get closest match - for ( ; elem && elem !== document; elem = elem.parentNode ) { - if ( elem.matches( selector ) ) return elem; - } - - return null; - - }; - - /** - * Escape special characters for use with querySelector - * @private - * @param {String} id The anchor ID to escape - * @author Mathias Bynens - * @link https://github.com/mathiasbynens/CSS.escape - */ - var escapeCharacters = function ( id ) { - - // Remove leading hash - if ( id.charAt(0) === '#' ) { - id = id.substr(1); - } - - var string = String(id); - var length = string.length; - var index = -1; - var codeUnit; - var result = ''; - var firstCodeUnit = string.charCodeAt(0); - while (++index < length) { - codeUnit = string.charCodeAt(index); - // Note: there’s no need to special-case astral symbols, surrogate - // pairs, or lone surrogates. - - // If the character is NULL (U+0000), then throw an - // `InvalidCharacterError` exception and terminate these steps. - if (codeUnit === 0x0000) { - throw new InvalidCharacterError( - 'Invalid character: the input contains U+0000.' - ); - } - - if ( - // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is - // U+007F, […] - (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || - // If the character is the first character and is in the range [0-9] - // (U+0030 to U+0039), […] - (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || - // If the character is the second character and is in the range [0-9] - // (U+0030 to U+0039) and the first character is a `-` (U+002D), […] - ( - index === 1 && - codeUnit >= 0x0030 && codeUnit <= 0x0039 && - firstCodeUnit === 0x002D - ) - ) { - // http://dev.w3.org/csswg/cssom/#escape-a-character-as-code-point - result += '\\' + codeUnit.toString(16) + ' '; - continue; - } - - // If the character is not handled by one of the above rules and is - // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or - // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to - // U+005A), or [a-z] (U+0061 to U+007A), […] - if ( - codeUnit >= 0x0080 || - codeUnit === 0x002D || - codeUnit === 0x005F || - codeUnit >= 0x0030 && codeUnit <= 0x0039 || - codeUnit >= 0x0041 && codeUnit <= 0x005A || - codeUnit >= 0x0061 && codeUnit <= 0x007A - ) { - // the character itself - result += string.charAt(index); - continue; - } - - // Otherwise, the escaped character. - // http://dev.w3.org/csswg/cssom/#escape-a-character - result += '\\' + string.charAt(index); - - } - - return '#' + result; - - }; - - /** - * Calculate the easing pattern - * @private - * @link https://gist.github.com/gre/1650294 - * @param {String} type Easing pattern - * @param {Number} time Time animation should take to complete - * @returns {Number} - */ - var easingPattern = function ( settings, time ) { - var pattern; - - // Default Easing Patterns - if ( settings.easing === 'easeInQuad' ) pattern = time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuad' ) pattern = time * (2 - time); // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuad' ) pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInCubic' ) pattern = time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutCubic' ) pattern = (--time) * time * time + 1; // decelerating to zero velocity - if ( settings.easing === 'easeInOutCubic' ) pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInQuart' ) pattern = time * time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuart' ) pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuart' ) pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; // acceleration until halfway, then deceleration - if ( settings.easing === 'easeInQuint' ) pattern = time * time * time * time * time; // accelerating from zero velocity - if ( settings.easing === 'easeOutQuint' ) pattern = 1 + (--time) * time * time * time * time; // decelerating to zero velocity - if ( settings.easing === 'easeInOutQuint' ) pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; // acceleration until halfway, then deceleration - - // Custom Easing Patterns - if ( settings.easingPatterns[settings.easing] ) { - pattern = settings.easingPatterns[settings.easing]( time ); - } - - return pattern || time; // no easing, no acceleration - }; - - /** - * Calculate how far to scroll - * @private - * @param {Element} anchor The anchor element to scroll to - * @param {Number} headerHeight Height of a fixed header, if any - * @param {Number} offset Number of pixels by which to offset scroll - * @returns {Number} - */ - var getEndLocation = function ( anchor, headerHeight, offset ) { - var location = 0; - if (anchor.offsetParent) { - do { - location += anchor.offsetTop; - anchor = anchor.offsetParent; - } while (anchor); - } - location = Math.max(location - headerHeight - offset, 0); - return Math.min(location, getDocumentHeight() - getViewportHeight()); - }; - - /** - * Determine the viewport's height - * @private - * @returns {Number} - */ - var getViewportHeight = function() { - return Math.max( document.documentElement.clientHeight, root.innerHeight || 0 ); - }; - - /** - * Determine the document's height - * @private - * @returns {Number} - */ - var getDocumentHeight = function () { - return Math.max( - document.body.scrollHeight, document.documentElement.scrollHeight, - document.body.offsetHeight, document.documentElement.offsetHeight, - document.body.clientHeight, document.documentElement.clientHeight - ); - }; - - /** - * Convert data-options attribute into an object of key/value pairs - * @private - * @param {String} options Link-specific options as a data attribute string - * @returns {Object} - */ - var getDataOptions = function ( options ) { - return !options || !(typeof JSON === 'object' && typeof JSON.parse === 'function') ? {} : JSON.parse( options ); - }; - - /** - * Get the height of the fixed header - * @private - * @param {Node} header The header - * @return {Number} The height of the header - */ - var getHeaderHeight = function ( header ) { - return !header ? 0 : ( getHeight( header ) + header.offsetTop ); - }; - - /** - * Bring the anchored element into focus - * @private - */ - var adjustFocus = function ( anchor, endLocation, isNum ) { - - // Don't run if scrolling to a number on the page - if ( isNum ) return; - - // Otherwise, bring anchor element into focus - anchor.focus(); - if ( document.activeElement.id !== anchor.id ) { - anchor.setAttribute( 'tabindex', '-1' ); - anchor.focus(); - anchor.style.outline = 'none'; - } - root.scrollTo( 0 , endLocation ); - - }; - - /** - * Start/stop the scrolling animation - * @public - * @param {Node|Number} anchor The element or position to scroll to - * @param {Element} toggle The element that toggled the scroll event - * @param {Object} options - */ - smoothScroll.animateScroll = function ( anchor, toggle, options ) { - - // Options and overrides - var overrides = getDataOptions( toggle ? toggle.getAttribute('data-options') : null ); - var animateSettings = extend( settings || defaults, options || {}, overrides ); // Merge user options with defaults - - // Selectors and variables - var isNum = Object.prototype.toString.call( anchor ) === '[object Number]' ? true : false; - var anchorElem = isNum || !anchor.tagName ? null : anchor; - if ( !isNum && !anchorElem ) return; - var startLocation = root.pageYOffset; // Current location on the page - if ( animateSettings.selectorHeader && !fixedHeader ) { - // Get the fixed header if not already set - fixedHeader = document.querySelector( animateSettings.selectorHeader ); - } - if ( !headerHeight ) { - // Get the height of a fixed header if one exists and not already set - headerHeight = getHeaderHeight( fixedHeader ); - } - var endLocation = isNum ? anchor : getEndLocation( anchorElem, headerHeight, parseInt((typeof animateSettings.offset === 'function' ? animateSettings.offset() : animateSettings.offset), 10) ); // Location to scroll to - var distance = endLocation - startLocation; // distance to travel - var documentHeight = getDocumentHeight(); - var timeLapsed = 0; - var percentage, position; - - /** - * Stop the scroll animation when it reaches its target (or the bottom/top of page) - * @private - * @param {Number} position Current position on the page - * @param {Number} endLocation Scroll to location - * @param {Number} animationInterval How much to scroll on this loop - */ - var stopAnimateScroll = function ( position, endLocation, animationInterval ) { - var currentLocation = root.pageYOffset; - if ( position == endLocation || currentLocation == endLocation || ( (root.innerHeight + currentLocation) >= documentHeight ) ) { - - // Clear the animation timer - clearInterval(animationInterval); - - // Bring the anchored element into focus - adjustFocus( anchor, endLocation, isNum ); - - // Run callback after animation complete - animateSettings.after( anchor, toggle ); - - } - }; - - /** - * Loop scrolling animation - * @private - */ - var loopAnimateScroll = function () { - timeLapsed += 16; - percentage = ( timeLapsed / parseInt(animateSettings.speed, 10) ); - percentage = ( percentage > 1 ) ? 1 : percentage; - position = startLocation + ( distance * easingPattern(animateSettings, percentage) ); - root.scrollTo( 0, Math.floor(position) ); - stopAnimateScroll(position, endLocation, animationInterval); - }; - - /** - * Set interval timer - * @private - */ - var startAnimateScroll = function () { - clearInterval(animationInterval); - animationInterval = setInterval(loopAnimateScroll, 16); - }; - - /** - * Reset position to fix weird iOS bug - * @link https://github.com/cferdinandi/smooth-scroll/issues/45 - */ - if ( root.pageYOffset === 0 ) { - root.scrollTo( 0, 0 ); - } - - // Run callback before animation starts - animateSettings.before( anchor, toggle ); - - // Start scrolling animation - startAnimateScroll(); - - }; - - /** - * Handle has change event - * @private - */ - var hashChangeHandler = function (event) { - - // Get hash from URL - var hash; - try { - hash = escapeCharacters( decodeURIComponent( root.location.hash ) ); - } catch(e) { - hash = escapeCharacters( root.location.hash ); - } - - // Only run if there's an anchor element to scroll to - if ( !anchor ) return; - - // Reset the anchor element's ID - anchor.id = anchor.getAttribute( 'data-scroll-id' ); - - // Scroll to the anchored content - smoothScroll.animateScroll( anchor, toggle ); - - // Reset anchor and toggle - anchor = null; - toggle = null; - - }; - - /** - * If smooth scroll element clicked, animate scroll - * @private - */ - var clickHandler = function (event) { - - // Don't run if right-click or command/control + click - if ( event.button !== 0 || event.metaKey || event.ctrlKey ) return; - - // Check if a smooth scroll link was clicked - toggle = getClosest( event.target, settings.selector ); - if ( !toggle || toggle.tagName.toLowerCase() !== 'a' || getClosest( event.target, settings.ignore ) ) return; - - // Only run if link is an anchor and points to the current page - if ( toggle.hostname !== root.location.hostname || toggle.pathname !== root.location.pathname || !/#/.test(toggle.href) ) return; - - // Get the sanitized hash - var hash; - try { - hash = escapeCharacters( decodeURIComponent( toggle.hash ) ); - } catch(e) { - hash = escapeCharacters( toggle.hash ); - } - - // If the hash is empty, scroll to the top of the page - if ( hash === '#' ) { - - // Prevent default link behavior - event.preventDefault(); - - // Set the anchored element - anchor = document.body; - - // Save or create the ID as a data attribute and remove it (prevents scroll jump) - var id = anchor.id ? anchor.id : 'smooth-scroll-top'; - anchor.setAttribute( 'data-scroll-id', id ); - anchor.id = ''; - - // If no hash change event will happen, fire manually - // Otherwise, update the hash - if ( root.location.hash.substring(1) === id ) { - hashChangeHandler(); - } else { - root.location.hash = id; - } - - return; - - } - - // Get the anchored element - anchor = document.querySelector( hash ); - - // If anchored element exists, save the ID as a data attribute and remove it (prevents scroll jump) - if ( !anchor ) return; - anchor.setAttribute( 'data-scroll-id', anchor.id ); - anchor.id = ''; - - // If no hash change event will happen, fire manually - if ( toggle.hash === root.location.hash ) { - event.preventDefault(); - hashChangeHandler(); - } - - }; - - /** - * On window scroll and resize, only run events at a rate of 15fps for better performance - * @private - * @param {Function} eventTimeout Timeout function - * @param {Object} settings - */ - var resizeThrottler = function (event) { - if ( !eventTimeout ) { - eventTimeout = setTimeout(function() { - eventTimeout = null; // Reset timeout - headerHeight = getHeaderHeight( fixedHeader ); // Get the height of a fixed header if one exists - }, 66); - } - }; - - /** - * Destroy the current initialization. - * @public - */ - smoothScroll.destroy = function () { - - // If plugin isn't already initialized, stop - if ( !settings ) return; - - // Remove event listeners - document.removeEventListener( 'click', clickHandler, false ); - root.removeEventListener( 'resize', resizeThrottler, false ); - - // Reset varaibles - settings = null; - anchor = null; - toggle = null; - fixedHeader = null; - headerHeight = null; - eventTimeout = null; - animationInterval = null; - }; - - /** - * Initialize Smooth Scroll - * @public - * @param {Object} options User settings - */ - smoothScroll.init = function ( options ) { - - // feature test - if ( !supports ) return; - - // Destroy any existing initializations - smoothScroll.destroy(); - - // Selectors and variables - settings = extend( defaults, options || {} ); // Merge user options with defaults - fixedHeader = settings.selectorHeader ? document.querySelector( settings.selectorHeader ) : null; // Get the fixed header - headerHeight = getHeaderHeight( fixedHeader ); - - // When a toggle is clicked, run the click handler - document.addEventListener( 'click', clickHandler, false ); - - // Listen for hash changes - root.addEventListener('hashchange', hashChangeHandler, false); - - // If window is resized and there's a fixed header, recalculate its size - if ( fixedHeader ) { - root.addEventListener( 'resize', resizeThrottler, false ); - } - - }; - - - // - // Public APIs - // - - return smoothScroll; - -}); \ No newline at end of file diff --git a/src/smooth-scroll.js b/src/smooth-scroll.js new file mode 100755 index 0000000..e444ec8 --- /dev/null +++ b/src/smooth-scroll.js @@ -0,0 +1,3 @@ +import SmoothScroll from './core.js'; + +export default SmoothScroll; \ No newline at end of file diff --git a/src/smooth-scroll.polyfills.js b/src/smooth-scroll.polyfills.js new file mode 100755 index 0000000..da09ab8 --- /dev/null +++ b/src/smooth-scroll.polyfills.js @@ -0,0 +1,6 @@ +import './_closest.polyfill.js'; +import './_customEvent.polyfill.js'; +import './_requestAnimationFrame.polyfill.js'; +import SmoothScroll from './core.js'; + +export default SmoothScroll; \ No newline at end of file