{"size": 2355, "ext": "js", "max_stars_repo_path": "public/js/custom.js", "max_stars_repo_name": "imenany/IAMTProject", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/custom.js", "max_issues_repo_name": "imenany/IAMTProject", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/custom.js", "max_forks_repo_name": "imenany/IAMTProject", "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": 34.6323529412, "max_line_length": 259, "alphanum_fraction": 0.5087048832}


   $('.close.icon').click(function(event) {
       $('.message').remove();
   });

   $('.show_file').click(function(event) {
            $url = $(this).data("url").replace("public/","");
            if($url.includes('.jpg') || $url.includes('.png') || $url.includes('.jpeg') || $url.includes('.bmp') || $url.includes('.csv') || $url.includes('.svg'))
            {
                $('#files_reader').html('<img src="/storage/'+$url+'" alt="placeholder+image" id="image" data-zoom-image="storage/Desert.jpg">');
            }
            else if($url.includes('.pdf')){
                $('#files_reader').html('<object data="/storage/'+$url+'" type="application/pdf" width="100%" height="100%"><p>Alternative text - include a link <a href="/storage/download/pdffile.pdf">to the PDF!</a></p></object>');
            }
            else {
                $('#files_reader').html('<h4 class="class="header">This document is only available for download</h4><a href="/storage/'+$url+'"><div class="ui button labeled icon large linkedin" tabindex="0"><i class="download icon"></i> Download</div></a>');
            }
            $last = $url.substring($url.lastIndexOf("/") + 1, $url.length);
            $title = $last + "<a download="+$last+" href='/storage/"+$url+"'><i class='download icon'></i></a><a href='/deleteFile/"+$last+"'><i class='trash icon'></i></a>";
            $('#doc_title').html($title);

            $('#loading_preview').show();

            setTimeout(function() {
                $('#loading_preview').fadeOut('fast');
              }, 650); 
   });

    $('#doc_man').resize(function(event) {
        $('#files_reader').css('height', $(this).height()-30);
    });

    setTimeout(function() {
      $('#loading_files').fadeOut('fast');
    }, 500); 
    

    $('#new_project').click(function(event) {
        location.href = '/newProject';
    });

    $('#new_user').click(function(event) {
        location.href = '/newUser';
    });


    $('.datatable').DataTable({
          "pageLength": 5,
          "lengthMenu": [ 5, 10, 15 ],
          "bDestroy": true
    });

    $('.expand').click(function(event) {
        $(this).parent().parent().children("div.list").toggle();
    });

    $('.previewimage')
      .popup({
            position : 'right center'
      });

    $('.ui.radio.checkbox')
      .checkbox()
    ;


    