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
$breakpoint_phone: 768px !default; | |
$breakpoint_tablet: 980px !default; | |
@mixin respond-to($types...) { | |
$maxWidth: -1; | |
$minWidth: -1; | |
@each $type in $types { | |
@if $type == phone { | |
$maxWidth: if($maxWidth == -1, $breakpoint_phone - 1, $maxWidth); |
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
# Convenience function for moving up levels in the path to the current working directory. | |
# Synopsis: | |
# `up [n]` moves n levels up in the directory hierarchy; default is 1. | |
# `up dirname` changes to the closest ancestral directory by that name, regardless of case. | |
# `up absolutepath` changes to the specified absolute path; primarily used with command completion (see below). | |
# Additionally, if command completion via _complete_up() is in effect (<tab> represents pressing the tab key): | |
# `up [n]<tab>` replaces n with the absolute path of the directory n levels up (default is 1). | |
# `up dirnameprefix<tab>` replaces dirnameprefix with the absolute path of the closest ancestral directory whose name starts with the specified name prefix, terminated with '/'. | |
# Whether dirnameprefix is matched case-insensitively or not depends on whether case-insensitive command completion is turned on globally via ~/.inputrc or /etc/inputrc. | |
# In both cases the completed absolute path ends in '/', |
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
A.Carousel.fx = { | |
'fade': { | |
in: { | |
opacity: '1', | |
on: { | |
start: function() { | |
this.setStyles({ | |
opacity: '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
var pieChart = A.Widget.getByNode($0); | |
var graphic = pieChart.get("graph").get("graphic"); | |
var width = graphic.get('width'), height = graphic.get('width'); | |
var newWidth = width - 100, newHeight = height - 100; | |
var circle = graphic.addShape({type: 'circle', | |
width: newWidth, | |
height: newHeight, | |
x: 100, | |
y: 100, | |
fill: {color: '#ffffff'}, |
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
#!/usr/bin/env node | |
var colors = require('colors'); | |
var fs = require('fs'); | |
var argv = require('optimist').boolean('q').argv; | |
colors.setTheme({ | |
help: 'cyan', | |
warn: 'yellow', | |
error: 'red', |
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.invoke = function(payload, success, failure){ | |
A.io.request( | |
'/api/jsonws/invoke', | |
{ | |
cache: false, | |
data: { | |
cmd: A.JSON.stringify(payload), | |
p_auth: Liferay.authToken | |
}, | |
dataType: 'json', |
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
;(function(A) { | |
Liferay.on( | |
'chatPortletReady', | |
function(event) { | |
var Chat = Liferay.Chat; | |
Chat.ConversationPanel = Chat.Conversation; | |
Chat.Conversation = function(){ | |
// code before constructor.... |
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.Util.portletTitleEdit = function() { | |
}; | |
if (!themeDisplay.isStatePopUp()) { | |
AUI().ready('aui-live-search', 'aui-overlay-context-panel', 'event-mouseenter', 'liferay-message', 'liferay-panel', 'liferay-store', 'node-focusmanager', 'transition', | |
function(A) { | |
var body = A.getBody(); | |
var portletInformationEl = A.one('#cpContextPanelTemplate'); | |
var portletInformationIcon = A.one('#cpPortletTitleHelpIcon'); |
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
// phone, tablet, desktop | |
// phone, desktop, tablet | |
// tablet, phone, desktop | |
// tablet, desktop, phone | |
// desktop, phone, tablet | |
// desktop, tablet, phone | |
// phone: max-width: 767 | |
// tablet: min-width: 768 - max-width: 979 | |
// desktop: min-width: 980 |