Commit 73dc84a7 authored by Otto Zaiser's avatar Otto Zaiser

Language switcher style

parent c1bcf6b5
.topnav{
position: relative;
z-index: 1050;
z-index: 1035;
padding-top: 15px;
font-size: 0.65em;
@media (max-width: 768px) {
margin-right: 60px;
font-size: 0.85em;
}
.menu{
.menu, .links{
float: right;
}
ul > li {
float: left !important;
display: block;
a{
padding: 0;
......
This diff is collapsed.
!function(o,t){function a(){o(this).scrollTop()>110?(o("#navbar").addClass("navbar-fondo"),n()&&o(".path-frontpage #logo").attr("src","/themes/bfa/logo.svg")):(o("#navbar").removeClass("navbar-fondo"),n()&&o(".path-frontpage #logo").attr("src","/themes/bfa/logo-white.svg"))}function n(){return!!(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))}o(".bt-top").hide(),o(window).scroll(function(){a()}),a(),o(document).on("click",'[data-toggle="lightbox"]',function(t){t.preventDefault(),o(this).ekkoLightbox({alwaysShowClose:!1})})}(jQuery,Drupal);
\ No newline at end of file
(function ($, Drupal) {
$('.bt-top').hide();
$(window).scroll(function() {
checkNav();
});
function checkNav(){
var currentScroll = $(this).scrollTop();
if(currentScroll > 110) {
$('#navbar').addClass('navbar-fondo');
if(isIE()) $(".path-frontpage #logo").attr("src", "/themes/bfa/logo.svg");
} else {
$('#navbar').removeClass('navbar-fondo');
if(isIE()) $(".path-frontpage #logo").attr("src", "/themes/bfa/logo-white.svg");
}
}
function isIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number
{
//alert(parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))));
return true;
}
else // If another browser, return 0
{
return false;
}
return false;
}
checkNav();
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox({
alwaysShowClose: false
});
});
})(jQuery, Drupal);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment