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
@import "compass"; | |
/* Wrapper */ | |
#wrapper { | |
font-size: 16px; | |
margin: 0 auto; | |
padding: 35px 0 0; | |
position: relative; | |
width: 700px; |
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
for d in `find . -type d -name "gallery-aui-*"`; do auiPath="${d/gallery-/}"; tickets=`git --git-dir="$NC_ALLOY_PATH/.git" log --oneline --since="January 17, 2011" -- "src/$auiPath" | grep -oE "AUI-[[:digit:]]+" | sort | uniq | tr '\n' ',' | sed 's/,$//; s/,/, /g'`; msg="Adding $d"; [[ -n $tickets ]] && msg="$tickets"; echo && echo $auiPath && echo "----------" && echo $msg && git add "$d" && git commit -m "$msg"; done; |
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
AUI.add( | |
'liferay-util-window', | |
function(A) { | |
var Util = Liferay.Util; | |
var Window = Util.Window; | |
Util.incrementWindowXY = function(decrement) { | |
var incrementor = Window.XY_INCREMENTOR; | |
var windowXY = Window.XY; |
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> | |
<script src="../build/yui/yui.js" type="text/javascript"></script> | |
<script src="../build/aui-base/aui-base.js" type="text/javascript"></script> | |
<link rel="stylesheet" href="../build/aui-skin-classic/css/aui-skin-classic-all-min.css" type="text/css" media="screen" /> | |
</head> |
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
//Verify service API | |
AUI().use( | |
'async-queue', | |
function(A) { | |
var q = new A.AsyncQueue(); | |
window.q = q; | |
q.after( | |
'complete', | |
function(event) { |
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
Liferay.Service('user/get-user-by-id', fn); | |
Liferay.Service('user/get-user-by-id', {}, fn); | |
Liferay.Service({ | |
'user/get-user-by-id': {} | |
}, fn); | |
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
//Long forms: | |
Liferay.Service( | |
{ | |
'user/get-user-by-id': { | |
id: 3 | |
} | |
}, | |
function(obj) { | |
} |
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 id="gallery1" class="gallery"> | |
<a href="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-1.jpg" title="Doug, Meesa and Louis resting"> | |
<img class="picture" src="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-1_tn.jpg" /> | |
</a> | |
<a href="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-2.jpg" title="Grand finale teams"> | |
<img class="picture" src="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-2_tn.jpg" /> | |
</a> | |
<a href="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-3.jpg" title="Jen looking the landscape"> | |
<img class="picture" src="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-3_tn.jpg" /> | |
</a> |
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
//replace LINK_ID | |
//Add this to your theme vm | |
<div id="LINK_ID"> | |
<a href="javascript:;" data-customCssClass="red">Red</a> | |
<a href="javascript:;" data-customCssClass="blue">Blue</a> | |
<a href="javascript:;" data-customCssClass="green">Green</a> | |
</div> | |
//Add this to your JS somewhere |
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
Liferay = window.Liferay || {}; | |
;(function(A, Liferay) { | |
var Lang = A.Lang; | |
Liferay.namespace = A.namespace; | |
A.mix( | |
AUI.defaults.io, | |
{ |