Last active
December 18, 2015 20:39
-
-
Save davidecavaliere/5842260 to your computer and use it in GitHub Desktop.
AUI loads jquery and Galleria plugin
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:script> | |
AUI({ | |
groups: { | |
'jquery': { | |
async: false, | |
modules: { | |
'jquery': { | |
fullpath: 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js' | |
}, | |
'galleria': { | |
fullpath: 'http://localhost:8080/GGAMain-portlet/js/galleria/galleria-1.2.9.js', | |
requires: ['jquery'] | |
} | |
} | |
} | |
} | |
}).ready('galleria', function(A){ | |
Galleria.ready(function(options){ | |
//Galleria is ready do something if you need | |
}); | |
Galleria.loadTheme('/GGAMain-portlet/js/galleria/themes/classic/galleria.classic.min.js'); | |
Galleria.run('.galleria'); | |
}); | |
</aui:script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment