$(document).ready(function() { var chkPreview = window.location.host.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/); if (!chkPreview){ switch (window.location.protocol) { case 'http:': window.location.href = 'https://' + window.location.host + window.location.pathname + window.location.search; break; case 'https:': break; case 'file:': window.location.href = 'https://' + window.location.host + window.location.pathname + window.location.search; break; default: window.location.href = 'https://' + window.location.host + window.location.pathname + window.location.search; } } var html = '\
\

Hyogo Performing Arts Center

\ \

\ \
\ '; document.getElementById('header').innerHTML = html; //$('#header').html(html); $(document).on('click','a.menu-language', function () { if ($(this).closest('.drop-menu').hasClass('on')) { $(this).closest('.drop-menu').removeClass('on'); } else { $(this).closest('.drop-menu').addClass('on'); } }); }); $(window).on('load',function(){ var nav='\ \ '; $('nav.nav-menu').html(nav); var orc = '\ Hyogo Performing Arts Center Orchestra\ '; $('.lang_pac p.logo').html(orc); });