Sha256: 8178e88c8ca5d944ab8c78cced77d35224e3f658ab186a8bbfd2b5eae057f848

Contents?: true

Size: 1.94 KB

Versions: 14

Compression:

Stored size: 1.94 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 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

14 entries across 14 versions & 1 rubygems

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