{"size": 2417, "ext": "js", "max_stars_repo_path": "public/js/master.js", "max_stars_repo_name": "markjoseph454/opdms", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/master.js", "max_issues_repo_name": "markjoseph454/opdms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/master.js", "max_forks_repo_name": "markjoseph454/opdms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.019047619, "max_line_length": 90, "alphanum_fraction": 0.5270997104}
function openHamburger(x) {
    x.classList.toggle("change");
}

$(document).ready(function () {
	$('.hamburger').on('mouseenter', function(){
           $(this).css('background-color','transparent');
    }) ;
});


var getUrl = window.location;
var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];




$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});


$(document).ready(function(){
    $('[data-toggle="tooltip"]').tooltip({container: "body"});
});



$(document).ready(function(){
    $('.dropdown-submenu a.test').on("click", function(e){
        $(this).next('ul').toggle();
        e.stopPropagation();
        e.preventDefault();
    });
});




/*--- Date Time ---*/
function timeCalculate($date){
    var d = new Date($date);
    var days = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
    var month = days[d.getMonth()];
    var day = d.getDate();
    var year = d.getFullYear();
    var hour = d.getHours();
    var min = d.getMinutes();
    if(hour < 10){
        hour = '0'+hour;
    }
    if(min < 10){
        min = '0'+min;
    }
    var today = month+' '+day+', '+year+' '+hour+':'+min;
    return today;
}


/*--- Date Time ---*/
function hourMinCalculate($date){
    var d = new Date($date);
    var hour = d.getHours();
    var min = d.getMinutes();
    if(hour < 10){
        hour = '0'+hour;
    }
    if(min < 10){
        min = '0'+min;
    }
    var hourMin = hour+':'+min;
    return hourMin;
}

function dateCalculate($date){
    var d = new Date($date);
    var days = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
    var month = days[d.getMonth()];
    var day = d.getDate();
    var year = d.getFullYear();
    var today = month+' '+day+', '+year;
    return today;
}



/*  filter results on table */
function filter_result($scope, $table_name) {
    var filter = $($scope).val().toUpperCase();
    var table = document.getElementsByClassName($table_name)[0];
    var tr = table.getElementsByTagName("tr");
    for (var i = 0; i < tr.length; i++) {
        td2 = tr[i].getElementsByTagName("td")[2];
        if (td2) {
            if (td2.innerHTML.toUpperCase().indexOf(filter) > -1 ) {
                tr[i].style.display = "";
            } else {
                tr[i].style.display = "none";
            }
        }
    }
}
