UNPKG

mobius1-selectr

Version:

A lightweight, dependency-free, mobile-friendly javascript select box replacement.

19 lines 1.61 kB
<p><a href="https://html5boilerplate.com">HTML5 Boilerplate homepage</a> | <a href="TOC.md">Documentation table of contents</a></p> <h1 id="the-javascript">The JavaScript</h1> <p>Information about the default JavaScript included in the project.</p> <h2 id="main-js">main.js</h2> <p>This file can be used to contain or reference your site/app JavaScript code. For larger projects, you can make use of a JavaScript module loader, like <a href="http://requirejs.org/">Require.js</a>, to load any other scripts you need to run. </p> <h2 id="plugins-js">plugins.js</h2> <p>This file can be used to contain all your plugins, such as jQuery plugins and other 3rd party scripts.</p> <p>One approach is to put jQuery plugins inside of a <code>(function($){ ... })(jQuery);</code> closure to make sure they&#39;re in the jQuery namespace safety blanket. Read more about <a href="https://learn.jquery.com/plugins/#Getting_Started">jQuery plugin authoring</a>.</p> <p>By default the <code>plugins.js</code> file contains a small script to avoid <code>console</code> errors in browsers that lack a <code>console</code>. The script will make sure that, if a console method isn&#39;t available, that method will have the value of empty function, thus, preventing the browser from throwing an error.</p> <h2 id="vendor">vendor</h2> <p>This directory can be used to contain all 3rd party library code.</p> <p>Minified versions of the latest jQuery and Modernizr libraries are included by default. You may wish to create your own <a href="http://www.modernizr.com/download/">custom Modernizr build</a>.</p>