Skip to content

Instantly share code, notes, and snippets.

@choyer
Created August 6, 2012 20:13
Show Gist options
  • Save choyer/3278059 to your computer and use it in GitHub Desktop.
Save choyer/3278059 to your computer and use it in GitHub Desktop.
/* Inline scroll pane for retail locator list */
var api = $('.scroll-pane').jScrollPane({
showArrows: true,
maintainPosition: false
}).data('jsp');
/* Where to buy retail locator. CSS Maps by Winston Wolf. */
$('#map-continents').cssMap({ 'size': '540',
'visibleList': true,
'loadingText': 'Loading world map ...',
'onClick': function(e) {
var loadurl = 'php/retail_loader.php?c=' + e.children('a').attr('id');
api.getContentPane().load(loadurl, function(){
api.reinitialise();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment