( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
$(document).ready(function(){
// Executed once all the page elements are loaded
// Convert the UL with all the tutorials into a sortable list:
$("ul.sort").sortable({
handle : '.img2',
axis:'y',
containment: 'document',
opacity: 0.6
});
$(".delete_rate").click(function() {
document.getElementById('insert_response66').innerHTML = "<img src=images/indicator.gif hspace=3 align=texttop>Deleting your video...";
var id = $(this).attr("id");
var dataString = 'd='+ id ;
var parent = $(this).parent();
$.ajax({
type: "POST",
url: "ilikes.php",
data: dataString,
cache: false,
success: function()
{
var response = http.responseText;
// if eziki success then execute
document.getElementById('insert_response66').innerHTML = '<img src=images/done.png hspace=3 align=texttop><b>Video removed Successfully:</b>'+response;
if(id % 2)
{
parent.fadeOut('slow', function() {$(this).remove();});
}
else
{
parent.slideUp('slow', function() {$(this).remove();
});
}
}
});
return false;
});
// Convert the UL with all the tutorials into a sortable list:
$("ul.sort2").sortable({
handle : '.img2',
axis:'y',
containment: 'document',
opacity: 0.6
});
// The hover method takes a mouseover and a mouseout function:
$(".draggable").hover(
function(){
$(this).find('.dragger').stop().animate({marginTop:'-25px'},'fast');
},
function(){
$(this).find('.dragger').stop().animate({marginTop:'0'},'fast');
}
);
// Binding an action to the submitPoll button:
$('#submitPoll').click(function(e){
// We then turn the sortable into a comma-separated string
// and assign it to the sortdata hidden form field:
$('#sortdata').val($('ul.sort').sortable('toArray').join(','));
// After this we submit the form:
$('#sform').submit();
// Preventing the default action triggered by clicking on the link
e.preventDefault();
});
$('#submitRated').click(function(e){
// We then turn the sortable into a comma-separated string
// and assign it to the sortrated hidden form field:
$('#sortrated').val($('ul.sort2').sortable('toArray').join(','));
// After this we submit the form:
$('#sform2').submit();
// Preventing the default action triggered by clicking on the link
e.preventDefault();
});
});
$(document).ready(function() {
$('#loading').hide();
});
$(function() {
$(".delete").click(function() {
$('#loading').fadeIn();
document.getElementById('insert_response5').innerHTML = "Deleting your video...";
var id = $(this).attr("id");
var commentContainer = $('#box'+id);
var string = 'deleteplaylist='+ id ;
$.ajax({
type: "POST",
url: "ezikiframework.php",
data: string,
cache: false,
success: function(){
document.getElementById('insert_response5').innerHTML = "<img src=images/done.png hspace=3 align=texttop><b>Successfully deleted video</b>";
commentContainer.slideUp('slow', function() {$(this).remove();});
$('#loading').fadeOut();
}
});
return false;
});
});
$(document).ready(function() {
$('#loading2').hide();
});
$(function() {
$(".delete2").click(function() {
$('#loading2').fadeIn();
document.getElementById('insert_response2').innerHTML = "Deleting your video...";
var id = $(this).attr("id");
var commentContainer = $('#box'+id);
var string = 'deleteplaylist='+ id ;
$.ajax({
type: "POST",
url: "videos/ezikiframework.php",
data: string,
cache: false,
success: function(){
document.getElementById('insert_response2').innerHTML = "<img src=images/done.png hspace=3 align=texttop><b>Successfully deleted video</b>";
commentContainer.slideUp('slow', function() {$(this).remove();});
$('#loading2').fadeOut();
}
});
return false;
});
});