Skip to content

Instantly share code, notes, and snippets.

@davidecavaliere
Last active December 18, 2015 20:39
Show Gist options
  • Save davidecavaliere/5842260 to your computer and use it in GitHub Desktop.
Save davidecavaliere/5842260 to your computer and use it in GitHub Desktop.
AUI loads jquery and Galleria plugin
<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