Sha256: 3e54d1efdbe40ba503dcfb607d352344544b774c56fe7666411e7e66a4803981

Contents?: true

Size: 1.06 KB

Versions: 14

Compression:

Stored size: 1.06 KB

Contents

var $warned = false;
function renderResponse( id, html ){

    if ( !$warned ) {
        confirm_render = confirm( "Rendering the response will also execute" +
            " any JavaScript code that might be included in the page. " +
            "Are you sure you want to continue?" );

        $warned = confirm_render;
        if( !confirm_render){
            return;
        }

    }

    $( '#' + id ).html( $( '<iframe style="width: 100%; height: 400px" ' + 'src="' + html + '" />' ) );
}

function toggleElem(id) {
    elem = $( '#' + id);

    if( elem.is(':hidden') ) {
        elem.show();
        sign = '[-]';
    } else {
        elem.hide();
        sign = '[+]';
    }

    elem_sign = $('#' + id + '_sign');
    if( elem_sign ) {
        elem_sign.text( sign );
    }
}


function inspect(id) {
    $(id).dialog({
        height: 500,
        width: 1000,
        modal: true
    });
}

function searchIssues( val ){
    $(".issue").show();

    if( val != '' ){
        $(".issue:not(:icontains(" + val +"))").hide();
    } else {
        $(".issue").show();
    }
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
arachni-0.4.7 reports/html/default/js/helpers.js
arachni-0.4.6 reports/html/default/js/helpers.js
arachni-0.4.5.2 reports/html/default/js/helpers.js
arachni-0.4.5.1 reports/html/default/js/helpers.js
arachni-0.4.5 reports/html/default/js/helpers.js
arachni-0.4.4 reports/html/default/js/helpers.js
arachni-0.4.3.2 reports/html/default/js/helpers.js
arachni-0.4.3.1 reports/html/default/js/helpers.js
arachni-0.4.3 reports/html/default/js/helpers.js
arachni-0.4.2 reports/html/default/js/helpers.js
arachni-0.4.1.3 reports/html/default/js/helpers.js
arachni-0.4.1.2 reports/html/default/js/helpers.js
arachni-0.4.1.1 reports/html/default/js/helpers.js
arachni-0.4.1 reports/html/default/js/helpers.js