soundmap_theme/carnaval/js/carnaval.js

32 lines
714 B
JavaScript
Raw Permalink Normal View History

2016-11-29 01:18:17 +01:00
soundManager.url = '/wp-content/themes/soundmap/carnaval/swf/';
var songChanged = function(evt){
var target = evt.info.target;
var id = target.dataset.id;
var data = {
action: 'soundmap_theme_get_post',
post_id: id,
};
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
jQuery.post(WP_Params.ajaxurl + '?lang=' + WP_Params.language, data, function(response) {
jQuery('#info-wrapper').empty().append(response);
});
}
jQuery(document).ready(function(){
jQuery('body').jKit();
jQuery('.antiscroll-wrap').antiscroll();
hotsPlayer.draw();
hotsPlayer.registerEvent('startPlay', songChanged);
//hotsPlayer.registerEvent('startPlay', onSongStarted);
});