diff options
author | Deployment Bot (from Travis CI) <deploy@travis-ci.org> | 2019-08-05 10:12:28 +0000 |
---|---|---|
committer | Deployment Bot (from Travis CI) <deploy@travis-ci.org> | 2019-08-05 10:12:28 +0000 |
commit | 4b065f28b5bc95773f39260260469005cb2f9860 (patch) | |
tree | c2f99800e2362829cf5afe750077b30ece9bd0a1 /assets/javascripts/application.js | |
parent | 08fde34317d88ed96d7f4c2578dac36b2a068344 (diff) | |
download | terraform-provider-mailgun-4b065f28b5bc95773f39260260469005cb2f9860.tar.gz terraform-provider-mailgun-4b065f28b5bc95773f39260260469005cb2f9860.tar.zst terraform-provider-mailgun-4b065f28b5bc95773f39260260469005cb2f9860.zip |
Deploy fretlink/terraform-provider-mailgun to github.com/fretlink/terraform-provider-mailgun.git:gh-pagesgh-pages
Diffstat (limited to 'assets/javascripts/application.js')
-rw-r--r-- | assets/javascripts/application.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/assets/javascripts/application.js b/assets/javascripts/application.js index 53004d2..e8fec89 100644 --- a/assets/javascripts/application.js +++ b/assets/javascripts/application.js | |||
@@ -9366,6 +9366,17 @@ document.addEventListener('turbolinks:load', function() { | |||
9366 | product: 'terraform' | 9366 | product: 'terraform' |
9367 | } | 9367 | } |
9368 | }) | 9368 | }) |
9369 | |||
9370 | track('a.notification', function(el) { | ||
9371 | var params = { | ||
9372 | name: 'Alert Banner', | ||
9373 | variant: el.innerText.replace(/\s+/g, ' ').trim() | ||
9374 | } | ||
9375 | // Create a stringified `label` prop of the event for GA tracking purposes | ||
9376 | params.label = JSON.stringify(params) | ||
9377 | params.event = 'CTA Clicked' | ||
9378 | return params | ||
9379 | }) | ||
9369 | }) | 9380 | }) |
9370 | ; | 9381 | ; |
9371 | 9382 | ||
@@ -9395,8 +9406,12 @@ document.addEventListener("turbolinks:load", function() { | |||
9395 | // we leave the nav-hidden class alone after this. | 9406 | // we leave the nav-hidden class alone after this. |
9396 | function resetActiveSubnavs() { | 9407 | function resetActiveSubnavs() { |
9397 | subNavs.removeClass("active"); | 9408 | subNavs.removeClass("active"); |
9398 | // Activate current page, locked-open navs, and all their parents: | 9409 | // Activate current page, locked-open navs, and all their ancestors: |
9399 | docsSidebar.find("li").has(".current-page, .nav-visible").addClass("active"); | 9410 | docsSidebar.find("li").has(".current-page, .nav-visible").addClass("active"); |
9411 | // Activate auto-expand navs, but leave their ancestors alone: | ||
9412 | docsSidebar.find(".nav-auto-expand").parent("li").addClass("active"); | ||
9413 | // Colored links for current page and its ancestors | ||
9414 | docsSidebar.find("li").has(".current-page").addClass("current"); | ||
9400 | } | 9415 | } |
9401 | resetActiveSubnavs(); | 9416 | resetActiveSubnavs(); |
9402 | 9417 | ||