diff --git a/reference/html/spring-cloud-contract.html b/reference/html/spring-cloud-contract.html index 8a5b0421d5..2b486b170d 100644 --- a/reference/html/spring-cloud-contract.html +++ b/reference/html/spring-cloud-contract.html @@ -4,8 +4,9 @@ - -Spring Cloud Contract + + +Spring Cloud Contract Reference Documentation @@ -86,15023 +87,116 @@ function createSwitchItem(block, blockSwitch) { return {'item': item, 'content': content}; } +function globalSwitch() { + $('.switch--item').each(function() { + $(this).off('click'); + $(this).on('click', function() { + selectedText = $(this).text() + selectedIndex = $(this).index() + $(".switch--item").filter(function() { return ($(this).text() === selectedText) }).each(function() { + $(this).addClass('selected'); + $(this).siblings().removeClass('selected'); + selectedContent = $(this).parent().siblings(".content").eq(selectedIndex) + selectedContent.removeClass('hidden'); + selectedContent.siblings().addClass('hidden'); + }); + }); + }); +} + $(addBlockSwitches); +$(globalSwitch); + - +