$(document).ready(function(){ $(window).scroll(function(){ if($(window).scrollTop()>164) $(".pkp_navigation_primary_row").css({"background-color" : "rgba(0,0,0,0.5)"}); else $(".pkp_navigation_primary_row").css({"background-color" : "rgba(0,0,0,0.5)"}); }); var theLanguage = $('html').attr('lang'); if(theLanguage=="en-US" ) { $("#navigationPrimary").append('<li id="search" class="dropdown"><a data-toggle="dropdown" aria-haspopup="true" href="/index.php/frrec/search/results"><img class="searchIcon" src="https://journals.ub.uni-heidelberg.de/public/site/images/admin/such_icon.png" alt=""></a><ul class="dropdown-menu"><li><form class="navbar-form searchForm" action="https://journals.ub.uni-heidelberg.de/index.php/frrec/search/results" method="post"><div class="input-group"><input class="form-control query" name="query" value="" type="text"><button class="headerSearchButton" type="submit"><img class="searchIcon" src="https://journals.ub.uni-heidelberg.de/public/site/images/admin/such_icon_schwarz.png" alt=""></button></div></form></li><li class="divider"></li><li><a title="Search" href="/index.php/frrec/search/results">Advanced Search</a></li></ul></li>'); } else if(theLanguage=="de-DE") { $("#navigationPrimary").append('<li id="search" class="dropdown"><a data-toggle="dropdown" aria-haspopup="true" href="/index.php/frrec/search/results"><img class="searchIcon" src="https://journals.ub.uni-heidelberg.de/public/site/images/admin/such_icon.png" alt=""></a><ul class="dropdown-menu"><li><form class="navbar-form searchForm" action="https://journals.ub.uni-heidelberg.de/index.php/frrec/search/results" method="post"><div class="input-group"><input class="form-control query" name="query" value="" type="text"><button class="headerSearchButton" type="submit"><img class="searchIcon" src="https://journals.ub.uni-heidelberg.de/public/site/images/admin/such_icon_schwarz.png" alt=""></button></div></form></li><li class="divider"></li><li><a title="Suche" href="/index.php/frrec/search/results">Erweiterte Suche</a></li></ul></li>'); } else { $("#navigationPrimary").append('<li id="search" class="dropdown"><a data-toggle="dropdown" aria-haspopup="true" href="/index.php/frrec/search/results"><img class="searchIcon" src="https://journals.ub.uni-heidelberg.de/public/site/images/admin/such_icon.png" alt=""></a><ul class="dropdown-menu"><li><form class="navbar-form searchForm" action="https://journals.ub.uni-heidelberg.de/index.php/frrec/search/results" method="post"><div class="input-group"><input class="form-control query" name="query" value="" type="text"><button class="headerSearchButton" type="submit"><img class="searchIcon" src="https://journals.ub.uni-heidelberg.de/public/site/images/admin/such_icon_schwarz.png" alt=""></button></div></form></li><li class="divider"></li><li><a title="Rechercher" href="/index.php/frrec/search/results">Rechercher avancée</a></li></ul></li>'); } });