(function() { var animenuToggle = document.querySelector('.webmenu_toggle_btn'), animenuNav = document.querySelector('.webmenu__mainnav'), hasClass = function(elem, className) { return new RegExp(' ' + className + ' ').test(' ' + elem.className + ' '); }, toggleClass = function(elem, className) { var newClass = ' ' + elem.className.replace(/[\t\r\n]/g, ' ') + ' '; if (hasClass(elem, className)) { while (newClass.indexOf(' ' + className + ' ') >= 0) { newClass = newClass.replace(' ' + className + ' ', ' '); } elem.className = newClass.replace(/^\s+|\s+$/g, ''); } else { elem.className += ' ' + className; } }, animenuToggleNav = function() { toggleClass(animenuToggle, "webmenu_toggle_act"); toggleClass(animenuNav, "webmenu_nav_open__"); } if (!animenuToggle.addEventListener) { animenuToggle.attachEvent("onclick", animenuToggleNav); } else { animenuToggle.addEventListener('click', animenuToggleNav); } })()

印尼首都遭受洪水侵袭