$(document).ready(function(){
loading = $('
انتظر لحظات ...
');
$(".users-logn > span").click(function(){
$(this).next('ul').toggle();
});
$(".header-news").addClass("loaded");
$(".single-header").addClass('load');
$("form#s input#s").on('keyup',function(){
if ($(this).val() != '') {
$.ajax({
url: "https://tv1.egydead.live/wp-content/themes/egydeadc-taq/Ajax/live-search.php",
data: "search="+$(this).val()+'',
type: 'POST',
success: function(Posts){
$(".searchLive").show().html(Posts);
},
error: function(){},
});
} else {
$(".searchLive").hide().html('');
}
});
})
function listeningCount(postID,containerClass) {
$.ajax({
url: 'https://tv1.egydead.live/wp-content/themes/egydeadc-taq/Ajax/Counters/listening.php',
data: 'postID='+postID+'',
dataType: "text",
type: 'POST',
success: function(msg) {
$(containerClass).html(msg);
},
error: function() {}
});
}
function downloadCount(postID,containerClass) {
$.ajax({
url: 'https://tv1.egydead.live/wp-content/themes/egydeadc-taq/Ajax/Counters/download.php',
data: 'postID='+postID+'',
dataType: "text",
type: 'POST',
success: function(msg) {
$(containerClass).html(msg);
},
error: function() {}
});
}