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 toggleAction = function (event) { | |
| body.toggleClass('nav-show'); | |
| html.toggleClass('no-scroll'); | |
| navContent.all('ul ul .selected').each( | |
| function (e) { | |
| e.ancestor('ul').removeClass('aui-helper-hidden'); | |
| e.ancestor('.selected').one('.has-child-marker').addClass('child-show'); | |
| } |
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 ($portlet_bean_locator = $portal.getClass().forName('com.liferay.portal.kernel.bean.PortletBeanLocatorUtil')) | |
| #set ($hs_contact_local_service = $portlet_bean_locator.locate("hubspot-portlet", "com.liferay.hubspot.service.HSContactLocalService.velocity")) | |
| #set ($hsutk = "$request.attributes.OSB_HUBSPOT_UTK") | |
| #set ($hs_contact = $hs_contact_local_service.fetchHSContactByUserToken($hsutk)) | |
| #set ($hs_contact_object = $hs_contact.getHSContactJSONObject().getJSONObject("properties")) | |
| #set ($hs_form_local_service = $portlet_bean_locator.locate("hubspot-portlet", "com.liferay.hubspot.service.HSFormLocalService.velocity")) |
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( | |
| 'osb-height-equalizer', | |
| function(A) { | |
| var OSBHeightEqualizer = A.Component.create( | |
| { | |
| ATTRS: { | |
| container: { | |
| value: '.equal-height-container' | |
| }, |
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> | |
| #parse ($init) | |
| <html class="#language ("lang.dir")" dir="#language ("lang.dir")" lang="$w3c_language_id"> | |
| <head> | |
| <title>$the_title - $company_name</title> | |
| <meta content="minimum-scale=1.0, width=device-width" name="viewport" /> |
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"; | |
| @import "mixins"; | |
| $primary-color: #478ECC; | |
| $secondary-color: #E7E8E9; | |
| .primary-background-color { | |
| background: $primary-color; | |
| } |
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().use( | |
| 'anim', | |
| 'transition', | |
| function(A) { | |
| A.all('.animate-scroll').on( | |
| 'click', | |
| function(event) { | |
| event.preventDefault(); | |
| var node = event.currentTarget; |
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
| <%-- | |
| /** | |
| * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. | |
| * | |
| * This library is free software; you can redistribute it and/or modify it under | |
| * the terms of the GNU Lesser General Public License as published by the Free | |
| * Software Foundation; either version 2.1 of the License, or (at your option) | |
| * any later version. | |
| * | |
| * This library is distributed in the hope that it will be useful, but WITHOUT |
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
| #!/bin/zsh | |
| # uses imagemagick to stich together all images in a folder and | |
| # then writes a css file with the correct offsets along with a | |
| # test html page for verification that its all good | |
| # Original script is from jaymz | |
| # https://gist.github.com/jaymzcd/342399 | |
| # | |
| # Modifications : |
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().use( | |
| 'anim', | |
| function(A) { | |
| A.all('.animate-scroll').on( | |
| 'click', | |
| function(event) { | |
| event.preventDefault(); | |
| var section = A.one(event.currentTarget.get('hash')); | |
| var scrollTo = section.getY(); |
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> | |
| var searchUrl = "http://www.liferay.com/skinny-web/api/jsonws/skinny/get-skinny-journal-articles?inst=welcomeContent&companyId=1&groupName=Guest&journalStructureId=27308142&locale=en_US%22"; | |
| var head = document.getElementsByTagName('head')[0]; | |
| var script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = searchUrl; | |
| head.appendChild(script); | |
| var A = AUI(); | |
| A.on( |