PageSourceSearch

https://pc.foamworks.co.kr/share/js/menu.js

js foamworks.co.kr collected 2026-10-06 14:03:31 UTC 1,295 bytes, 52 lines download raw bytes

1/* 
2   Simple JQuery Accordion menu.
3   HTML structure to use:
4
5   <ul id="menu">
6     <li><a href="#">Sub menu heading</a>
7     <ul>
8       <li><a href="http://site.com/">Link</a></li>
9       <li><a href="http://site.com/">Link</a></li>
10       <li><a href="http://site.com/">Link</a></li>
11       ...
12       ...
13     </ul>
14     <li><a href="#">Sub menu heading</a>
15     <ul>
16       <li><a href="http://site.com/">Link</a></li>
17       <li><a href="http://site.com/">Link</a></li>
18       <li><a href="http://site.com/">Link</a></li>
19       ...
20       ...
21     </ul>
22     ...
23     ...
24   </ul>
25
26Copyright 2007 by Marco van Hylckama Vlieg
27
28web: http://www.i-marco.nl/weblog/
29email: [email protected]
30
31Free for non-commercial use
32*/
33
34function initMenu() {
35  $('#menu ul').hide();
36  $('#menu ul').children('.on').parent().show();
37  //$('#menu ul:first').show();
38  $('#menu li a').click(
39    function() {
40      var checkElement = $(this).next();
41      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
42        return false;
43        }
44      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
45        $('#menu ul:visible').slideUp('normal');
46        checkElement.slideDown('normal');
47        return false;
48        }
49      }
50    );
51  }
52$(document).ready(function() {initMenu();});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.