$(function() {
$f("player", {src: "components/com_bulle/assets/swf/flowplayer-3.0.3.swf", opacity:0}, {
// log:{level: 'debug'},
screen: {
width:110,
height:100,
opacity:0,
backgroundcolor:'#ffffff',
},
canvas: {
backgroundImage: 'url(http://beta.icontes.com/components/com_bulle/assets/img/bubble_player_mp3_inline.png) no-repeat',
opacity:0,
},
clip: {
subTitle: 'de iContes.com',
urlBase: 'http://audio.icontes.com/',
linkWindow: '_blank',
autoPlay:true,
onCuepoint: [3000, function(clip) {
var home = clip.linkUrl;
var name = clip.title;
var image = clip.picture;
var lien = "<a href='"+home+"' target='_blank'>";
var page = lien+name+"</a>";
var info = "<img src="http://icontes.com/"+image+"">"+page;
$("#eventInfo").html(info).addClass("home").show();
$().getScreen().hide();
$().getPlugin("animation").show();
}],
onFinish: function(clip) {
var vider = "";
$("#eventInfo").html(vider).hide();
}
},
plugins: {
controls: {
url: 'components/com_bulle/assets/swf/flowplayer.controls-3.0.3.swf',
bottom:0,
left:70,
height:15,
zIndex:1,
backgroundColor: 'transparent',
backgroundGradient: '1.0 1.0',
// controlbar specific configuration
fontColor: '#ffffff',
timeFontColor: '#333333',
buttonColor: '#b3b3b3',
autoHide: 'never',
play:false,
volume:false,
mute:false,
time:false,
stop:false,
playlist:true,
fullscreen:false,
scrubber: false
},
audio: { url: 'components/com_bulle/assets/swf/flowplayer.audio-3.0.2.swf' },
animation: {
url: 'components/com_bulle/assets/swf/Revolt.swf',
top: 0,
left: 0,
width:110,
height:75,
opacity: 1,
zIndex: 3,
},
},
playlist: [
{
title: 'Mauvaise foi',
url: 'http://audio.icontes.com/Mauvaise%20foi.mp3',
linkUrl: 'http://icontes.com/contes-et-icontes/histoires-du-ratcontar/172-mauvaise-foi',
iconte: 'iconte Ratcontar',
duration: 550,
picture:'images/stories/articles/simon-bondoufle.jpg',
},
{
title: 'Les trois voleurs',
url: 'http://audio.icontes.com/Trois%20Voleurs.mp3',
linkUrl: 'http://icontes.com/Contes-pour-tout-public/les-trois-voleurs',
iconte: 'iconte Fée',
picture:'images/stories/trois-voleurs.jpg',
},
{
title: 'Pauline',
url: 'http://audio.icontes.com/Pauline.mp3',
linkUrl: 'http://icontes.com/Histoires-du-Ratcontar/pauline',
iconte: 'iconte Ratcontar',
picture:'images/stories/articles/pauline.jpg',
} ,
{
title: 'Ouagadou Gomébé',
url: 'http://audio.icontes.com/Ouagadou%20gomebe.mp3',
linkUrl: 'http://icontes.com/Contes-pour-tout-public/ouagadou-gomebe',
iconte: 'iconte Ratcontar',
picture:'images/stories/articles/arbre.jpg',
} ,
{
title: 'Un train d Enfer',
url: 'http://audio.icontes.com/Un%20train%20d-enfer.mp3',
linkUrl: 'http://icontes.com/Histoires-du-Ratcontar/un-train-denfer',
iconte: 'iconte Ratcontar',
picture: 'images/stories/articles/train.jpg',
}
]
// use HTML controls. place it inside element named "controls"
}).controls("controls");
$f("player").playlist("div.clips:first", {
loop:true,
//when set to true and splash image is clicked then first clip is played manual configuration only
playOnClick: true
});
$("div.vertical").scrollable({size:3, items:'.clips', vertical:true});
// setup global variable "api" to have scrollable API usage
window.api = $("div.vertical").scrollable();
// set up other flash for the page
flashembed("dessin", "components/com_bulle/assets/swf/expression_artistique.swf");
$("a.overlay").overlay({
top: 10,
onBeforeLoad: function() {
$f().hide();
this.expose({color: "#fff"});
},
onClose: function() {
$f().show();
$.unexpose();
}
});
var embedCode = $f().embed().getEmbedCode;
$("textarea#embedPane").html(embedCode);
$("#shareTabs").tabs("#panes > div");
$("#shareForm").submit(function(e) {
var form = $(this);
form.fadeTo(500, 0.1);
$.getJSON(form.attr("action") + "?" + form.serialize() + "&format=json&jsoncallback=?", function(json) {
form.fadeTo(500, 1);
var info = $("#info").show();
if (json.message) {
info.addClass("alert").html(json.message);
} else {
info.removeClass("alert").addClass("info").html("Email envoyé !");
}
});
e.preventDefault();
return false;
});
});