jQuery(document).ready(function($) {
$('.home-blog-whitepaper-press-card').matchHeight();
$('.product-card').matchHeight();
$('.single-all-case-study').matchHeight();
$('.all-features-card').matchHeight();
$('.resources-card, .resources-card-view-all').matchHeight();
$('.use-cases-card').matchHeight();
$('.use-cases-card h3').matchHeight();
$('.support-card').matchHeight();
$('.support-card h2').matchHeight();
$('.publications-research-card').matchHeight();
$('.publications-research-card h2').matchHeight();
$('.news-events-card').matchHeight();
$('.careers-card').matchHeight();
$('.white-card').matchHeight();
$('.asr-top-box').matchHeight();
$('.asr-bottom-boxes, .asr-how-does-this-work-question').matchHeight();
$('.hnri-white-box').matchHeight();
$('.home-section-5-card').matchHeight();
$('.home-section-8-block p').matchHeight();
$('.vuln-card').matchHeight();
$('.it-card').matchHeight();
$('.product-asm-section-5 .pas5-card').matchHeight();
$('.pas7-card h3').matchHeight();
$('.pas7-card').matchHeight();
$('.e-card').matchHeight();
$('.integration-card').matchHeight();
$( ".open-mobile-menu" ).click(function() {
$( ".mobile-menu" ).slideDown();
});
$( ".close-mobile-menu" ).click(function() {
$( ".mobile-menu" ).slideUp();
});
$( ".mobile-menu-items a" ).click(function() {
$( ".mobile-menu" ).hide();
});
$( ".how-it-works-slider" ).slick({
dots: true,
vertical: true,
slidesToShow: 1,
slidesToScroll: 1,
verticalSwiping: true,
adaptiveHeight: true,
responsive: [
{
breakpoint: 1199,
settings: "unslick"
}
]
});
$( ".soc-slider" ).slick({
dots: true,
vertical: true,
slidesToShow: 1,
slidesToScroll: 1,
verticalSwiping: true,
adaptiveHeight: true,
responsive: [
{
breakpoint: 1199,
settings: "unslick"
}
]
});
$('.roles-change-panel').hide();
$('.roles-change-panel.ciso').show();
$('.roles-dropdown-select select').change(function () {
if ($(this).val() === "CISO"){
$('.roles-change-panel.ciso').show();
$('.roles-change-panel.gid').hide();
$('.roles-change-panel.dcas').hide();
$('.roles-change-panel.threat-hunter').hide();
$('.roles-change-panel.researcher').hide();
} else if ($(this).val() === "GID"){
$('.roles-change-panel.ciso').hide();
$('.roles-change-panel.gid').show();
$('.roles-change-panel.dcas').hide();
$('.roles-change-panel.threat-hunter').hide();
$('.roles-change-panel.researcher').hide();
} else if ($(this).val() === "DCAS"){
$('.roles-change-panel.ciso').hide();
$('.roles-change-panel.gid').hide();
$('.roles-change-panel.dcas').show();
$('.roles-change-panel.threat-hunter').hide();
$('.roles-change-panel.researcher').hide();
} else if ($(this).val() === "TH"){
$('.roles-change-panel.ciso').hide();
$('.roles-change-panel.gid').hide();
$('.roles-change-panel.dcas').hide();
$('.roles-change-panel.threat-hunter').show();
$('.roles-change-panel.researcher').hide();
} else if ($(this).val() === "Researcher"){
$('.roles-change-panel.ciso').hide();
$('.roles-change-panel.gid').hide();
$('.roles-change-panel.dcas').hide();
$('.roles-change-panel.threat-hunter').hide();
$('.roles-change-panel.researcher').show();
}
});
$('.toggle-soc').click(function () {
$('.toggle-soc').addClass("active");
$('.toggle-vuln').removeClass("active");
$('.toggle-it').removeClass("active");
$('main.soc').show();
$('main.vuln').hide();
$('main.it').hide();
});
$('.toggle-vuln').click(function () {
$('.toggle-soc').removeClass("active");
$('.toggle-vuln').addClass("active");
$('.toggle-it').removeClass("active");
$('main.soc').hide();
$('main.vuln').show();
$('main.it').hide();
});
$('.toggle-it').click(function () {
$('.toggle-soc').removeClass("active");
$('.toggle-vuln').removeClass("active");
$('.toggle-it').addClass("active");
$('main.soc').hide();
$('main.vuln').hide();
$('main.it').show();
});
$('.toggle-enterprise').click(function () {
$('main.free').hide();
$('main.enterprise').show();
$('.toggle-free').removeClass("active");
$('.toggle-enterprise').addClass("active");
});
$('.toggle-free').click(function () {
$('.enterprise').hide();
$('.free').show();
$('.toggle-enterprise').removeClass("active");
$('.toggle-free').addClass("active");
});
$('.counter').each(function() {
var $this = $(this),
countTo = $this.attr('data-count');
$({
countNum: $this.text()
}).animate({
countNum: countTo
},
{
duration: 6000,
easing: 'linear',
step: function() {
$this.text(commaSeparateNumber(Math.floor(this.countNum)));
},
complete: function() {
$this.text(commaSeparateNumber(this.countNum));
//alert('finished');
}
}
);
});
function commaSeparateNumber(val) {
while (/(\d+)(\d{3})/.test(val.toString())) {
val = val.toString().replace(/(\d+)(\d{3})/, '$1' + ',' + '$2');
}
return val;
}
stickybits('.sticky-sidebar', {stickyBitStickyOffset: 100});
// Smooth Scroll to Anchor
// Smooth Scroll on Anchor Tags
if (navigator.userAgent.search("Chrome") >= 0) {
document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth',
block: "start"
});
});
});
} else if (navigator.userAgent.search("Safari") >= 0) {
$(document).ready(function () {
// Add smooth scrolling to all links
$("a").on('click', function (event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 800, function () {
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
});
}
// Adds arrows to pre code
var _pre = document.querySelector(".documentation-article pre");
_pre.innerHTML=""+(_pre.textContent.split("\n").filter(Boolean).join("\n"))+"";
fluidvids.init({
selector: ['iframe', 'object'], // runs querySelectorAll()
players: ['www.youtube.com', 'player.vimeo.com'] // players to support
});
});
// Copy URL to Clipboard
function copyURL()
{
urlCopied.innerHTML = window.location.href;
}
new ClipboardJS('.copy-clipboard');
// Careers Accordion
jQuery('.careers-accordion').accordion({
active:false, collapsible: true
});
jQuery.validator.setDefaults({
debug: true,
success: "valid"
});
jQuery( "#asr-form" ).validate({
rules: {
field: {
required: true,
email: true
}
}
});