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
| define(['jquery'], function ($) { | |
| 'use strict'; | |
| var Bolderiser = function (); | |
| Bolderiser.prototype = { | |
| embolden: function (el) { | |
| var $el = $(el); | |
| $el.css('font-weight', 'bold'); |
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
| YUI.applyConfig({ | |
| modules: { | |
| 'my-bolderiser': { | |
| type: 'js', | |
| base: './build/', | |
| requires: ['node-core', 'node-style'] | |
| } | |
| } | |
| }); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Using modules</title> | |
| <script src="http://yui.yahooapis.com/3.11.0/build/yui/yui-min.js"></script> | |
| <script src="yui_config.js"></script> | |
| </head> | |
| <body> | |
| <p id="element">This is just some text.</p> | |
| <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
| YUI.add('my-bolderiser', function (Y) { | |
| 'use strict'; | |
| var Bolderiser = function () { | |
| }; | |
| Bolderiser.prototype = { | |
| embolden: function (el) { | |
| var node = new Y.one(el); |
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
| /** | |
| * One-way CSS transition - "yellow" fade out | |
| */ | |
| body { | |
| background: #fcfcfc; | |
| color: #333; | |
| font-family: "Open Sans", sans-serif; | |
| } |
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
| /** | |
| * Birds and smiles | |
| */ | |
| body { | |
| font-family: "Open Sans", sans-serif; | |
| line-height: 1em; | |
| font-size: 24px; | |
| } |
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
| // Karma configuration | |
| // Generated on Thu Jun 13 2013 20:35:00 GMT+1200 (NZST) | |
| // base path, that will be used to resolve files and exclude | |
| basePath = ''; | |
| // list of files / patterns to load in the browser | |
| files = [ |
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
| /** | |
| * Hamburger | |
| */ | |
| body { | |
| background-color: #fff; | |
| font-family: "Open Sans", sans-serif; | |
| } |
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
| /** | |
| * Hamburger | |
| */ | |
| body { | |
| background-color: #fff; | |
| font-family: "Open Sans", sans-serif; | |
| } |
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
| /** | |
| * Foo | |
| * | |
| * @class Foo | |
| * @constructor | |
| */ | |
| function Foo() {} | |
| Foo.prototype = { | |
| /** |