<link rel="stylesheet" href="https://cdn.plyr.io/3.4.7/plyr.css">
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<div class="page-container theme-corporate" data-glow="0, 111, 238">
<main id="page-main" class="page-main">
</main>
<div id="site-footer" class="colophon">
<div class="colophon__inner">
<div class="colophon__brand-block">
<div class="ipsen-logo">
<svg id="Calque_1" xmlns="http://www.w3.org/2000/svg" viewBox="-194 390.9 206 60">
<style>.st0{fill:#18296c}.st1{fill:#1a93e5}</style>
<path class="st0" d="M-150.1 446.7c0 .4-.4.6-.7.6-.3 0-.5-.3-.6-.6v-8.3c0-.4.4-.6.7-.6.3 0 .5.3.6.6v8.3zM-166.1 393.3s-39.8 14.3-6.6 28.6c0 0-39.6-14.1 6.6-28.6"/><path class="st0" d="M-175.5 397.2c-8.3 3.6-12.5 7.3-12.5 11.2 0 2.5 1.7 4.8 4 6.8-1.5-1.5-2.3-3.6-2.3-5.7.1-5 5.6-9.3 10.8-12.3m2.8 25.2h-.1c-.7-.2-16.3-5.9-16.1-13.9.1-5.6 7.7-10.8 22.7-15.5.2-.1.5.1.6.3.1.2-.1.4-.3.5-.2.1-19.2 7-19.5 15.7-.1 4.2 4.2 8.3 12.9 12 .2 0 .4.2.4.4-.1.2-.3.4-.6.5.1 0 .1 0 0 0z"/><path class="st0" d="M-185.6 447.4s40.3-13.3 6.9-28.2c0 .1 39.8 15-6.9 28.2"/><path class="st0" d="M-167.3 426.2c1.5 1.5 2.3 3.6 2.3 5.8-.2 4.9-5.8 9-11.1 11.8 8.3-3.3 12.6-6.9 12.8-10.7.1-2.5-1.6-4.9-4-6.9m-18.3 21.7c-.2 0-.4-.1-.4-.3-.1-.2 0-.5.3-.5.2-.1 19.4-6.5 19.8-15.1.2-4.2-4.1-8.3-13-12.3-.2-.1-.3-.4-.2-.6.1-.2.3-.3.5-.2.7.3 16.4 6.3 16.1 14.3-.2 5.5-8 10.5-23.1 14.7.1 0 0 0 0 0M-109.9 416.5c0 2.2-.6 3.1-2.8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 14.9-6.9 28.2"/><path class="st1" d="M-174.1 403.1c1.5 1.5 2.3 3.6 2.3 5.7-.2 4.9-5.8 9-11.1 11.8 8.3-3.3 12.6-6.9 12.8-10.7 0-2.4-1.7-4.8-4-6.8m-18.3 21.7c-.2 0-.4-.2-.4-.4s.1-.4.3-.4c.2-.1 19.4-6.5 19.8-15.1.2-4.2-4.1-8.3-13-12.3-.2-.1-.3-.4-.2-.6.1-.2.3-.3.5-.2.7.3 16.4 6.2 16.1 14.3-.2 5.5-8 10.5-23 14.7h-.1"/><path class="st1" d="M-159.5 414.4s-39.8 14.3-6.6 28.6c0 0-39.6-14.1 6.6-28.6M-161.7 406.6c.8 1.7.1 3.7-1.6 4.5-.1.1-.3.1-.5.2-1.8.7-3.3-.9-3.7-2.1-.4-1.9 1.7-3.1 3.9-3.5.8-.2 1.6.2 1.9.9"/><path class="st1" d="M-168.9 418.3c-8.3 3.6-12.5 7.3-12.6 11.2 0 2.5 1.7 4.8 4 6.8-1.5-1.5-2.3-3.6-2.3-5.7.1-5.1 5.6-9.3 10.9-12.3m2.8 25.1h-.1c-.7-.2-16.3-5.9-16.1-14 .1-5.6 7.7-10.8 22.7-15.5.2-.1.5 0 .5.3.1.2 0 .5-.3.6-.2.1-19.2 7-19.5 15.7-.1 4.2 4.2 8.3 12.9 12 .2 0 .4.2.4.4-.1.3-.3.5-.5.5z"/>
</svg> </div>
<ul class="colophon__brand-block-social">
</ul>
<div class="colophon__brand-block-copyright">
</div>
</div>
<nav class="colophon__widgets">
<div class="colophon__link-block">
<div class="menu-masthead-menu-container">
<h4 class="colophon__heading">Children with lower limb spasticity</h4>
<ul id="menu-masthead-menu" class="menu">
<li><a href="http://local.ipsen.com/testing-blocks/">Testing Blocks</a>
<ul class="sub-menu">
<li><a href="http://local.ipsen.com/">This is a test page</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
<li><a href="http://local.ipsen.com/">This is a test</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
<li><a href="http://local.ipsen.com/">This is a hero test page</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="colophon__link-block">
<div class="menu-masthead-menu-container">
<h4 class="colophon__heading">Adults with spasticity</h4>
<ul id="menu-masthead-menu" class="menu">
<li><a href="http://local.ipsen.com/testing-blocks/">Testing Blocks</a>
<ul class="sub-menu">
<li><a href="http://local.ipsen.com/">This is a test page</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
<li><a href="http://local.ipsen.com/">This is a test</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
<li><a href="http://local.ipsen.com/">This is a hero test page</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="colophon__link-block">
<div class="menu-masthead-menu-container">
<ul class="sub-menu">
<li><a href="http://local.ipsen.com/">This is a test page</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
<li><a href="http://local.ipsen.com/">This is a test</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
<li><a href="http://local.ipsen.com/">This is a hero test page</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="colophon__link-block">
<div class="menu-masthead-menu-container">
<ul id="menu-masthead-menu" class="menu">
<li><a href="http://local.ipsen.com/testing-blocks/">Testing Blocks</a>
<ul class="sub-menu">
<li><a href="http://local.ipsen.com/">This is a test page</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
<li><a href="http://local.ipsen.com/">Home</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>
<div class="legally-required">
</div>
<!-- -->
</div>
<script src="https://cdn.plyr.io/3.4.7/plyr.polyfilled.js"></script>
/* @default */
.no-hero-here {
padding-top: 60px;
@media screen and (min-width: 769px) {
padding-top: 160px;
.browser--ie11 & {
display: block;
}
}
}
.iframe-embed {
// 9/16 is the (default) aspect-ratio of the embedded video
padding-bottom: calc((9 / 16) * 100%);
position: relative;
overflow: hidden;
height: 0;
> iframe {
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
}
}
.table-scroll {
overflow-x: auto;
> table {
border-collapse: collapse;
border-radius: 0;
width: 100%;
}
}
.generic-page-container {
&__inner {
@include poly-padding--large;
width: 100%;
position: relative;
max-width: 1170px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
}
}
.generic-page-main {
max-width: 960px;
}
.generic-page-sidebar {}
body.isi-panel-lock {
overflow: hidden;
}
.page-main {
&.isi-panel-docked {
padding-bottom: 180px !important;
}
}
.isi-panel {
@include poly-padding--large;
padding-top: 1.5rem !important;
width: 100%;
background-color: white;
z-index: 300;
position: fixed;
// top: 75vh;
box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.05);
// transition: all 400ms cubic-bezier(0.000, 0.995, 0.990, 1.000); // Replace with jquery animate or tweenmax
h2 {
width: 100%;
position: relative;
max-width: 1024px;
margin: 0 auto;
@media screen and (max-width: 600px) {
width: 60%;
margin-left: 0;
}
}
&--is-docked {
position: relative;
top: auto !important;
z-index: 10;
display: inline-block;
.isi-panel__expand-toggle {
display: none;
}
}
&--is-expanded {
// bottom: 0;
overflow: hidden;
z-index: 9999 !important;
@media screen and (max-width: 768px) {
z-index: 660;
}
body.admin-bar & {
z-index: 999999;
}
.isi-panel__content {
overflow: auto;
height: 100%;
max-height: 90vh;
}
}
&__content {
@include poly-padding-y--small;
width: 100%;
position: relative;
max-width: 1024px;
margin: 0 auto;
h2 {
@include themify($themes) {
color: themed('ctaGradient');
}
}
.isi-panel__content-box {
&.lower-content {
padding-top: 2rem;
}
}
}
&__expand-toggle {
position: absolute;
top: 0;
right: 0;
padding: 1em;
color: white;
display: flex;
font-size: 14px;
font-weight: bold;
@include themify($themes) {
background-color: themed('ctaFlat');
}
svg {
margin-top: 1px;
margin-left: 15px;
width: 16px;
height: 16px;
path {
fill: white;
}
}
}
&__main {
// .isi-color {
// // p {
// @include themify($themes) {
// color: themed('isiColor');
// line-height: 2em;
// font-size: 14px;
// letter-spacing: 1px;
// }
// // }
// }
h2,h3,h4,h5 {
margin-top: 0.5rem;
}
p {
margin-bottom: 2rem;
}
}
&__black-box {
padding: $base-spacing;
padding-top: 0.75rem;
border: 2px solid black;
color: $black !important;
font-weight: bold;
}
}
@media (max-width: 900px) {
.isi-panel {
padding: 1.5rem 1rem 3rem 2rem;
}
}
@media (max-width: 767px) {
.isi-panel {
padding: 0.5rem 1rem 2rem 1rem !important;
.isi-panel__expand-toggle {
span {
display: none;
}
svg {
margin-left: 0;
}
}
button.isi-panel__expand-toggle {
z-index: 20 !important;
}
h2 {
width: 100%;
z-index: 10 !important;
}
&__content {
margin-top: 0 !important;
p a,
li a {
white-space: pre-wrap;
word-wrap: break-word;
}
}
// &.isi-panel-mobile-scrolled {
// transform: translateY(55px);
// transition: transform 0.2s;
// }
}
.modal {
.cta--primary:before {
width: 100%;
}
.cta--primary:hover:before {
-webkit-transform: translateX(0%) !important;
transform: translateX(0%) !important;
}
}
}
@media (max-width: 340px) {
.isi-panel {
padding: 0.25rem 0.6rem 2rem 0.6rem;
.isi-panel__expand-toggle {
padding: 1rem 0.75rem;
}
}
}
.modal {
.modal-close {
display: none !important;
}
.external-modal-content,
.internal-modal-content {
&.hidden {
display: none;
}
}
}
.desktop-image {
display: block;
}
.mobile-image {
display: none;
}
@media (max-width: 767px) {
.desktop-image {
display: none;
}
.mobile-image {
display: block;
}
}
import $ from 'jQuery'
$.fn.isInViewport = function(b=0) {
var elementTop = $(this).offset().top
var elementBottom = elementTop + $(this).outerHeight()
var viewportTop = $(window).scrollTop()
var viewportBottom = viewportTop + $(window).height() + b
return elementBottom > viewportTop && elementTop < viewportBottom;
};
$(document).ready(function () {
// $('.masthead__primary-link, .wysiwyg-content__inner a').each(function() {
// var url = $(this).attr('href');
// var hasSameDomain = false;
// if (url.indexOf('//') !== -1) {
// if (url.indexOf(window.location.hostname) !== -1) {
// hasSameDomain = true;
// }
// } else {
// hasSameDomain = true;
// }
// var hasSamePath = false;
// if (url.split('#')[0].replace(window.location.hostname,'').replace('http://','').replace('https://','').replace('//','') == window.location.pathname) {
// hasSamePath = true;
// }
// var hasAnchor = false;
// if (url.indexOf('#') !== -1) {
// hasAnchor = true;
// }
// if (hasSameDomain && hasSamePath && hasAnchor) {
// $(this).click(function(){
// if ($('#' + url.split('#')[1] + '.accordion__toggle').attr('aria-expanded')=='false') {
// $('#' + url.split('#')[1] + '.accordion__toggle').click();
// }
// if (url.split('#')[1] == 'important-safety-information-panel') {
// $('#important-safety-information-panel').addClass('isi-panel--is-docked');
// }
// setTimeout(function() {
// var tt = url.split('#')[1];
// $('html, body').animate({
// scrollTop: $('#' + tt).offset().top-180,
// }, 250, 'swing');
// },50);
// return false;
// });
// }
// });
addIframeWrapper();
addTableWrapper();
function addIframeWrapper() {
$('iframe').each(function () {
if(!$(this).parent().hasClass("contentiframe")) {
$(this).wrap( '<div class="iframe-embed"></div>');
}
})
}
function addTableWrapper() {
if ($('table').length) {
$('table').each(function () {
$(this).wrap( '<div class="table-scroll"></div>');
})
}
}
if ($('#important-safety-information-panel').length) {
var lastScrollTop = 0;
var windowHeight = $(window).height()
var elementOffset = (windowHeight/100) * 75
var $iSi = $('#important-safety-information-panel')
var $iSiButton = $('.isi-panel__expand-toggle')
var closeText = $iSiButton.attr('data-close-text')
var openText = $iSiButton.find('span').text()
var testScroll = false
var viewportTop
function isiClickToggle () {
var $trigger = $('a[href="#important-safety-information"]')
$trigger.on('click touchstart', function(e) {
$('html, body').scrollTop(0);
e.preventDefault()
toggleStatus()
})
}
function toggleStatus () {
$iSi.toggleClass('isi-panel--is-expanded')
$('body').toggleClass('isi-panel-lock')
if ($iSi.hasClass('isi-panel--is-expanded')) {
$iSiButton.find('span').html( closeText )
TweenMax.to('#plusIcon', 0.3, {
morphSVG: { shape: '#minusIcon', shapeIndex: [3] },
ease: Power2.easeInOut
})
// $iSi.css('bottom', '0')
// $iSi.css('top', 'auto')
$iSi.animate({
top: '0'
}, 300)
} else {
$iSiButton.find('span').html( openText )
TweenMax.to('#plusIcon', 0.3, {
morphSVG: { shape: '#plusIcon', shapeIndex: [1] },
ease: Power2.easeInOut
})
$iSi.animate({
top: ($( window ).height()-165)+'px'
}, 300, function() {
// $iSi.css({'bottom': '', 'top': ''})
})
}
}
function toggleISIdocking () {
var viewportBottom = viewportTop + elementOffset
var isiOffset = $iSi.offset().top
if ( $('#site-footer').isInViewport(-165)) {
$('#site-footer').css('opacity', '1.0')
$iSi.addClass('isi-panel--is-docked')
$iSi.css('top', 'auto')
$('body').removeClass('isi-panel-docked')
}
if ( isiOffset >= viewportBottom && viewportTop < lastScrollTop) {
$('#site-footer').css('opacity', '0.0')
$iSi.removeClass('isi-panel--is-docked')
$iSi.css('top', ($( window ).height()-165)+'px')
$('body').addClass('isi-panel-docked')
}
lastScrollTop = viewportTop;
}
isiClickToggle()
$iSiButton.click(function() {
toggleStatus()
})
$(window).scroll(function() {
testScroll = true;
viewportTop = $(this).scrollTop();
if (viewportTop > 100) {
$('#important-safety-information-panel').addClass('isi-panel-mobile-scrolled');
} else {
$('#important-safety-information-panel').removeClass('isi-panel-mobile-scrolled');
}
});
setInterval(function() {
if ( testScroll ) {
testScroll = false;
toggleISIdocking ()
}
}, 60);
$(window).resize(function() {
$iSi.css('top', ($( window ).height()-165)+'px')
});
$iSi.css('top', ($( window ).height()-165)+'px')
$('body').addClass('isi-panel-docked')
}
});