Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
media-query-practice/dist/doc/js.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
36 lines (25 sloc)
1.38 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HTML5 Boilerplate homepage](https://html5boilerplate.com/) | [Documentation | |
table of contents](TOC.md) | |
# The JavaScript | |
Information about the default JavaScript included in the project. | |
## main.js | |
This file can be used to contain or reference your site/app JavaScript code. | |
If you're working on something more advanced you might replace this file | |
entirely. That's cool. | |
## plugins.js | |
This file can be used to contain all your plugins, such as jQuery plugins and | |
other 3rd party scripts for a simple site. | |
One approach is to put jQuery plugins inside of a `(function($){ ... | |
})(jQuery);` closure to make sure they're in the jQuery namespace safety | |
blanket. Read more about [jQuery plugin | |
authoring](https://learn.jquery.com/plugins/#Getting_Started). | |
By default the `plugins.js` file contains a small script to avoid `console` | |
errors in browsers that lack a `console`. The script will make sure that, if | |
a console method isn't available, that method will have the value of empty | |
function, thus, preventing the browser from throwing an error. | |
## vendor | |
This directory can be used to contain all 3rd party library code. | |
Minified versions of the latest jQuery and Modernizr libraries are included by | |
default. You may wish to create your own [custom Modernizr | |
build with the online builder](https://www.modernizr.com/download/) or [command | |
line tool](https://modernizr.com/docs#command-line-config). |