Sha256: d02c0133358fb78c2f7928cb396494cca467e870f2ccb632736fa6c34433d624

Contents?: true

Size: 1.99 KB

Versions: 5

Compression:

Stored size: 1.99 KB

Contents

<%= erb 'js/lib/jquery.min.js' %>
<%= erb 'js/lib/jquery-ui.min.js' %>
<%= erb 'js/lib/jquery.jqplot.min.js' %>
<%= erb 'js/lib/jqplot.barRenderer.min.js' %>
<%= erb 'js/lib/jqplot.pieRenderer.min.js' %>
<%= erb 'js/lib/jqplot.cursor.min.js' %>
<%= erb 'js/lib/jqplot.categoryAxisRenderer.min.js' %>
<%= erb 'js/lib/jqplot.pointLabels.min.js' %>


$.expr[':'].icontains = function(obj, index, meta, stack){
    return (obj.textContent || obj.innerText || jQuery(obj).text() || '').
        toLowerCase().indexOf(meta[3].toLowerCase()) >= 0;
};

<%= erb 'js/helpers.js' %>

// var configuration = <%= js_multiline(conf) %>
var email_address;

jQuery(function ($) {

    tabs = function (options) {

        var defaults = {
            selector: '.tabs',
            selectedClass: 'selected'
        };

        if (typeof options == 'string') defaults.selector = options;
        var options = $.extend(defaults, options);

        return $(options.selector).each(function () {

            var obj = this;
            var targets = Array();

            function show(i) {
                $.each(targets, function (index, value) {
                    $(value).hide();
                })
                $(targets[i]).fadeIn('fast');
                $(obj).children().removeClass(options.selectedClass);
                selected = $(obj).children().get(i);
                $(selected).addClass(options.selectedClass);
            };

            $('a', this).each(function (i) {
                targets.push($(this).attr('href'));
                $(this).click(function (e) {
                    e.preventDefault();
                    show(i);
                });
            });

            show(0);

        });
    }

    tabs('nav ul');

    $("#summary-tabs").tabs();
    $("#issue-tabs").tabs();
    $("#untrusted-tabs").tabs();
    $("#plugin-tabs").tabs();
    $("#plugin-meta-tabs").tabs();
    $("#sitemap-tabs").tabs();
    $("#configuration-tabs").tabs();

    <%= erb 'js/charts.js', { :graph_data => graph_data } %>

});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.4.0.4 reports/html/default/js/init.js
arachni-0.4.0.3 reports/html/default/js/init.js
arachni-0.4.0.2 reports/html/default/js/init.js
arachni-0.4.0.1 reports/html/default/js/init.js
arachni-0.4 reports/html/default/js/init.js