!function(p){p.fn.toc=function(t){var e,l=this,c=p.extend({},jQuery.fn.toc.defaults,t),t=p(c.container),a=p(c.selectors,t),i=[],s=c.prefix+"-active",h=function(t){for(var e=0,a=arguments.length;e=e){p("li",l).removeClass(s),t=p("li:eq("+(a-1)+")",l).addClass(s),c.onHighlight(t);break}},50)};return c.highlightOnScroll&&(p(window).bind("scroll",t),t()),this.each(function(){var n=p(this),r=p("");a.each(function(t,e){var a=p(e);i.push(a.offset().top-c.highlightOffset);p("").attr("id",c.anchorName(t,e,c.prefix)).insertBefore(a);var o=p("").text(c.headerText(t,e,a)).attr("href","#"+c.anchorName(t,e,c.prefix)).bind("click",function(t){var e,a;e=t,c.smoothScrolling&&(e.preventDefault(),a=p(e.target).attr("href"),t=p(a),h.animate({scrollTop:t.offset().top},400,"swing",function(){location.hash=a})),p("li",l).removeClass(s),p(e.target).parent().addClass(s),n.trigger("selected",p(this).attr("href"))}),o=p("
Join us, fork Codeception and submit your pull requests!
')}}),$("#scroll-to-top").click(function(){return $("html, body").animate({scrollTop:0},400),!1}),$(window).scroll(function(){300<$(window).scrollTop()?$("#scroll-to-top").fadeIn("slow"):$("#scroll-to-top").fadeOut("slow")})}),$(document).ready(function(){function t(t){var e=$(t+" .item").length,a=Math.floor(Math.random()*e);$(t+" .item").each(function(t){t==a?$(this).addClass("active"):$(this).removeClass("active")})}t("#carousel-tweets"),t("#carousel-companies");var e=$("#toc");e.length&&e.toc({selectors:"h2",prefix:"toc",container:"#page",anchorName:function(t,e,a){return $(e).text().replace(/\s/g,"-").replace(/[^\w-]/g,"")}});var a=$("#page table"),o=$("#toc"),n=$("#toc > ul"),r=$("#toc ul.list li a");a.length&&a.addClass("table table-striped table-bordered"),o.length&&o.toc({selectors:"h2,h3,h4",prefix:"toc",container:"#page",anchorName:function(t,e,a){return $(e).text().replace(/\s/g,"-").replace(/[^\w-]/g,"")}}),n.length&&n.addClass("list"),r.length&&r.addClass("searchitem");var l={valueNames:["searchitem"]},c=(new List("searchable",l),$(".navbar-toggle"));function t(t){var e=$(t+" .item").length,a=Math.floor(Math.random()*e);$(t+" .item").each(function(t){t==a?$(this).addClass("active"):$(this).removeClass("active")})}c.length&&c.click(function(){$(".row.home").toggleClass("no-padding-top")}),t("#carousel-tweets"),t("#carousel-companies"),(e=$("#toc")).length&&e.toc({selectors:"h2",prefix:"toc",container:"#page",anchorName:function(t,e,a){return $(e).text().replace(/\s/g,"-").replace(/[^\w-]/g,"")}});var i=$(".cp:contains('')"),a=$("#page table"),o=$("#toc"),n=$("#toc > ul"),r=$("#toc ul.list li a");i.length&&i.css({visibility:"hidden"}),e.length&&e.css({visibility:"hidden"}),a.length&&a.addClass("table table-striped table-bordered"),o.length&&o.toc({selectors:"h2,h3,h4",prefix:"toc",container:"#page",anchorName:function(t,e,a){return $(e).text().replace(/\s/g,"-").replace(/[^\w-]/g,"")}}),n.length&&n.addClass("list"),r.length&&r.addClass("searchitem");l={valueNames:["searchitem"]},new List("searchable",l);(c=$(".navbar-toggle")).length&&c.click(function(){$(".row.home").toggleClass("no-padding-top")})});var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-1899308-9"]),_gaq.push(["_trackPageview"]),function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();