document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <html>
  2.     <head>
  3.         <script src="jquery-3.1.1.js"></script>
  4.         <script>
  5.             (function () {
  6.             $(\'nav ul\').removeClass(\'hidden\');
  7.             $(\'nav li\').hover(function () {
  8.                 $(this).parent(\'ul.menu\').css(\'overflow\', \'visible\');
  9.                 $(this).children(\'ul\').filter(\':not(:animated)\').slideDown();
  10.             }, function () {      
  11.                 $(this).children(\'ul\').slideUp();
  12.             });
  13.  
  14.             $(\'#tombolmenu\').toggle(function () {
  15.                 $(this).addClass(\'active\');
  16.                 $(\'nav > ul\').slideDown();
  17.                 return false;
  18.             }, function () {
  19.                 $(this).removeClass(\'active\');
  20.                 $(\'nav > ul\').slideUp();
  21.                 return false;
  22.             });
  23.             function checkWidth() {
  24.                 if ($(window).width() > 600) {
  25.                     $(\'nav > ul\').css(\'display\', \'block\');
  26.                 } else if ($(window).width() <= 600 && $(\'#tombolmenu\').attr(\'class\') === \'active\') {
  27.                     $(\'nav > ul\').css(\'display\', \'block\');
  28.                 } else if ($(window).width() <= 600 && $(\'#tombolmenu\').attr(\'class\') !== \'active\') {
  29.                     $(\'nav > ul\').css(\'display\', \'none\');
  30.                 }
  31.             }
  32.             $(window).resize(checkWidth);
  33.             })();
  34.         </script>
  35.     </head>
  36.     <body>
  37.     </body>
  38. </html>
');