This file contains hidden or 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
| <!-- Utilities/Helper --> | |
| <script src="/path_to_your/underscore.js"></script> | |
| <!-- CommonJS Loader --> | |
| <script src="/path_to_your/inject.js"></script> | |
| <!-- UI/DOM --> | |
| <script src="/path_to_your/jquery-1.7.js"></script> | |
| <!-- Configuration --> | |
| <script src="/path_to_your/lu-config.js"></script> | |
| <!-- Note: Both Underscore and jQuery are CommonJS compliant. Alternatively, they can be loaded with Inject. --> |
This file contains hidden or 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
| //Set the path to lu.js on your server. For cross-domain paths see: | |
| //https://github.com/linkedin/inject | |
| PATH_TO_LU = '/path_to_your/lu.js', | |
| //Set the path to where your lu-controls folder. | |
| PATH_TO_LU_CONTROLS = '/path_to_your/lu-controls/', | |
| //For older browsers Lu uses Crockford's Json Library. | |
| PATH_TO_JSON2 = '/path_to_your/json2.js', | |
| //Lu will log messages in the console. Set the level of logging from 0 to 4 | |
| DEBUG = 0; |
This file contains hidden or 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
| <script type="text/javascript"> | |
| require.ensure( ['lu'], function() {} ); | |
| </script> |
This file contains hidden or 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
| <div data-lu="Carousel"> | |
| <ol> | |
| <li class="lu-selected">One</li> | |
| <li>Two</li> | |
| <li>Three</li> | |
| <li>Four</li> | |
| </ol> | |
| <button data-lu="Button:Previous">Previous</button> | |
| <button data-lu="Button:Next">Next</button> | |
| </div> |
This file contains hidden or 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
| <ol data-lu="Carousel"> | |
| <li class="one lu-selected">One</li> | |
| <li class="two">Two</li> | |
| <li class="three">Three</li> | |
| <li class="four">Four</li> | |
| <li class="five">Five</li> | |
| </ol> |
This file contains hidden or 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
| <ol data-lu="Carousel"> | |
| <li class="lu-selected">One</li> | |
| <li>Two</li> | |
| <li>Three</li> | |
| <li>Four</li> | |
| <li>Five</li> | |
| </ol> |
This file contains hidden or 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
| <ol id="whirly-woo" data-lu="Carousel" class="carousel" data-lu-config="{ | |
| 'Carousel': { | |
| observe: '#whirly-previous' | |
| } | |
| }"> | |
| <li class="one lu-selected">One</li> | |
| <li class="two">Two</li> | |
| <li class="three">Three</li> | |
| <li class="four">Four</li> | |
| <li class="five">Five</li> |
This file contains hidden or 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
| <button role="button" aria-controls="foo" data-lu="Button:Select">Select Foo</button> | |
| <a class="button" href="#baz" role="button" data-lu="Button:Select">Select Baz</a> | |
| <button role="button" data-lu="Button:Select" data-lu-config="{ | |
| 'Button:Select': { | |
| item: '.bar' | |
| } | |
| }">Select Bar</button> |
OlderNewer