var show;
var hidetxt;
hidetxt = function(type){
param=document.getElementById(type);
if(param.style.display == "none") {
if(show) show.style.display = "none";
param.style.display = "block";
show = param;
}else param.style.display = "none"
}
<?
if (isset($music['text']) AND $music['text'] != "")
{
echo
'<li><a onclick="hidetxt(\'hidden_' .
$music['id'] .
'\'); return false;" href="#" rel="nofollow">' .
$music['tittle'] . ' - ' . $lang['show_text'] .
'</a></li>';
}
?>
<div class="hidden-Lyric" id="hidden_<?=$music['id'];?>">
<?=nl2br($music['text']);?>
</div>
var hidetxt;
$(document).on('ready pjax:success', function() {
$("main").css("display", "none");
$("main").fadeOut(600);
$("main").fadeIn(600);
fireSubmit = function(event) {
document.forms["albums"].submit();
}
var conceptName = $('#album').find(":selected").text();
var show;
hidetxt = function(type){
param=document.getElementById(type);
if(param.style.display == "none") {
if(show) show.style.display = "none";
param.style.display = "block";
show = param;
}else param.style.display = "none"
}
$(function(){
$('audio,video').mediaelementplayer({
loop: true,
shuffle: true,
playlist: true,
audioHeight: 30,
playlistposition: 'bottom',
features: ['playlistfeature', 'prevtrack', 'playpause', 'nexttrack', 'loop', 'shuffle', 'playlist', 'current', 'progress', 'duration', 'volume'],
});
//$('main').bind 'pjax:end', playerStart
});
});