<!DOCTYPE HTML>
<html>
    <head>
        <title>Climber - Scan results</title>
        
        <!-- CSS -->
        <link rel="stylesheet" href="css/github.css" type="text/css" />
        <link rel="stylesheet" href="css/report.css" type="text/css" />
        <!-- /CSS -->
        
    </head>
    <body>
    
        <h1>Climber - Scan results</h1>
        
        <p><em>Check UNIX/Linux systems for privilege escalation</em></p>
        
        <div id="content">
            <div id="menu-collapsible">
                <a href="#" id="closeAll" title="Close all">Close All</a> | <a href="#" id="openAll" title="Open All">Open All</a>
            </div>
            
${html_block}
            
        </div>
        
        <!-- JS -->
        <script type="text/javascript" src="javascripts/highlight.pack.js"></script>
        <script type="text/javascript" src="javascripts/jquery.min.js"></script>
        <script type="text/javascript" src="javascripts/jquery.collapsible.min.js"></script>
        
        <script type="text/javascript">
            $(document).ready(function() {
            
                //syntax highlighter
                hljs.tabReplace = '    ';
                hljs.initHighlightingOnLoad();
            
                $.fn.slideFadeToggle = function(speed, easing, callback) {
                    return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
                };
            
                //collapsible management
                $('.collapsible').collapsible({
                    defaultOpen: 'section1',
                    cookieName: 'nav',
                    speed: 'slow',
                    animateOpen: function (elem, opts) { //replace the standard slideUp with custom function
                        elem.next().slideFadeToggle(opts.speed);
                    },
                    animateClose: function (elem, opts) { //replace the standard slideDown with custom function
                        elem.next().slideFadeToggle(opts.speed);
                    },
                    loadOpen: function (elem) { //replace the standard open state with custom function
                        elem.next().show();
                    },
                    loadClose: function (elem, opts) { //replace the close state with custom function
                        elem.next().hide();
                    }
                });
                $('.page_collapsible').collapsible({
                    defaultOpen: 'body_section1',
                    cookieName: 'body2',
                    speed: 'slow',
                    animateOpen: function (elem, opts) { //replace the standard slideUp with custom function
                        elem.next().slideFadeToggle(opts.speed);
                    },
                    animateClose: function (elem, opts) { //replace the standard slideDown with custom function
                        elem.next().slideFadeToggle(opts.speed);
                    },
                    loadOpen: function (elem) { //replace the standard open state with custom function
                        elem.next().show();
                    },
                    loadClose: function (elem, opts) { //replace the close state with custom function
                        elem.next().hide();
                    }
            
                });
            
                //assign open/close all to functions
                function openAll() {
                    $('.page_collapsible').collapsible('openAll');
                }
                function closeAll() {
                    $('.page_collapsible').collapsible('closeAll');
                }
            
                //listen for close/open all
                $('#closeAll').click(function(event) {
                    event.preventDefault();
                    closeAll();
            
                });
                $('#openAll').click(function(event) {
                    event.preventDefault();
                    openAll();
                });
            
            });
        </script>
        <!-- /JS -->
    </body>
</html>
