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
<snippet> | |
<content><![CDATA[ | |
<audio controls> | |
<source src="${1:file}.ogg" type="audio/ogg"> | |
<source src="${1:file}.mp3" type="audio/mpeg"> | |
<source src="${1:file}.wav" type="audio/wav"> | |
</audio> | |
]]></content> | |
<tabTrigger>audio5</tabTrigger> | |
</snippet> |
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
/* | |
* Copyright (c) 2012, Liferay Inc. All rights reserved. | |
* Code licensed under the BSD License: | |
* https://github.com/liferay/alloy-ui/blob/master/LICENSE.txt | |
* | |
* @author Zeno Rocha <zeno.rocha@liferay.com> | |
*/ | |
// -- Yogi Alloy Header -------------------------------------------------------- | |
var YOGI_PATH = process.env.YOGI_PATH, |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>$('div.foo:first')</title> | |
</head> | |
<body> | |
<div class="foo" id="1"></div> | |
<div class="foo" id="2"></div> |
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
AUI().use('aui-node', 'aui-io-request', function(A) { | |
A.one('#myButton').on('click', function() { | |
loadAnotherContent(); | |
}); | |
function loadAnotherContent() { | |
A.io.request('http://alloyui.com/io/data/content.html', { | |
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
module.exports = | |
prompts: false | |
# These are variables will be accessible via our templates | |
templateData: | |
# Conference info | |
conf: | |
name: "Conference name" |
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
YUI().use('aui-form-validator', function(Y) { | |
var myRules = { | |
myField: { | |
maxLength: 50 | |
} | |
}; | |
new Y.FormValidator({ | |
boundingBox: '#myForm', |
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
/** | |
* TODO. Wanna help? Please send a Pull Request. | |
* | |
* @method _addSuggestion | |
* @param content | |
* @protected | |
*/ | |
_addSuggestion: function(content) { | |
// Method content | |
} |
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
/** | |
* TODO. Wanna help? Please send a Pull Request. | |
* | |
* @attribute alwaysShowContainer | |
* @default false | |
* @type Boolean | |
*/ | |
alwaysShowContainer: { | |
value: false | |
} |
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
YUI().use('aui-carousel', function(Y) { | |
new Y.Carousel({ | |
contentBox: '#myCarousel', | |
height: 250, | |
width: 700 | |
}).render(); | |
}); |