$(document).ready(function(){
$('.video-btn').click(function(){
$('.iframe-wrapper').removeClass('for-text');
$('.video-popup').fadeIn();
$('#iframeHolder').html('');
var link=$(this).attr("link");
var types=$(this).attr("data-type");
if(types==='text'){
$('.iframe-wrapper').addClass('for-text');
$('#iframeHolder').html(`<div class="pops-texts">
<h2>I am a happy, active man again</h2>
<p>“I am a happy, active man again,” said James. “With HFX for PDN my diabetic neuropathy pain has decreased from a Level 7-10 to an average of Level 3 . . . and it’s often lower than that.”</p>
<p>For 6 years James suffered with excruciating diabetic neuropathy that began in his back and eventually migrated through his shoulders and stomach to his feet. “The pain was so intense that I would cry and scream,” James recalled. “When it reached my feet, the stabbing and burning was horrible. I reached a point where I was in bed and inactive for a year and lost 80 pounds.”</p>
<p>James says he saw at least a half dozen doctors who were baffled by his condition and prescribed pain medications, which he described as a “bandaid fix.” Finally, James consulted Dr. Fran Broyles. This led to his HFX for PDN trial in June 2018 and implant procedure in July 2018, both performed by Dr. Cong Yu.</p>
<p>“With HFX I am golfing, fishing, camping and enjoying my kids & grandkids again and pursuing my biggest passion:  landscaping and maintaining our 5-acre property, which has ponds, a waterfall and fish. I couldn’t do any of that before my implant,”</p>
</div>`);
}else{
$('#iframeHolder').html('<iframe src="'+link+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>');
}});
$('.close-video').click(function(){
$('.video-popup').fadeOut();
$('#iframeHolder').html('');
});
$('.testimonial_carousel').slick({
slidesToShow: 1,
slidesToScroll: 1,
});
});