/var/www/hkosl.com/waiyin/en/view/inc/navbar.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<div class="nav">
    <div class="container">
        <div class="d-flex justify-content-between align-items-center navWrap">

            <a href="index.php" title="Home" class="mr-2 align-middle logoImg"><img src="/waiyin/assets/images/logo.png" class="img-fluid" alt="logo"></a>

            <div class="menuWrap">
                <div class="langBar">
                    <a href="#" class="small enlang">ENG</a> | <a href="#" class="small mr-2 tclang"> 繁體</a> <a href="#" class="sbutton btn-primary"><i class="fas fa-volume-up"></i></a>
                </div>
                <ul class="menu">
                    <li class="menu__item">
                        <a href="index.php" title="Home">HOME
                        </a>
                    </li>
                    <li class="menu__item">
                        <div class="dropdown navMenuDrop">
                            <a class="dropdown-toggle" type="button" id="about" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="about">
                                ABOUT
                            </a>

                            <div class="dropdown-menu dropdown-menu-left" aria-labelledby="about">
                                <a class="dropdown-item" href="about.php" title="Honorary Advisors">ABOUT US</a>
                                <a class="dropdown-item" href="team.php" title="Honorary Advisors">Honorary Advisors</a>
                                <a class="dropdown-item" href="presidential.php" title="President Message">President Message</a>
                                <a class="dropdown-item" href="presidential_old.php" title="Honorary Life President">Honorary Life President
                                </a>
                                <a class="dropdown-item" href="trustees.php" title="Board of Trustees">Board of Trustees
                                </a>
                                <a class="dropdown-item" href="executive.php" title="Executive Committee">Executive Committee
                                </a>
                                <a class="dropdown-item" href="presidential_history.php" title="Past President">Past President
                                </a>
                            </div>
                        </div>
                    </li>
                    <li class="menu__item">
                        <a href="member.php" title="Members">Members
                        </a>
                    </li>
                    <li class="menu__item">
                        <div class="dropdown navMenuDrop">
                            <a class="dropdown-toggle" type="button" id="news" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="news">
                                News
                            </a>

                            <div class="dropdown-menu dropdown-menu-left" aria-labelledby="news">
                                <a class="dropdown-item" href="tes.php" title="TES">TES</a>
                                <a class="dropdown-item" href="event_list.php" title="Events">Events</a>
                                <a class="dropdown-item" href="tree.php" title="Beneficiaries">Beneficiaries
                                </a>
                                <a class="dropdown-item" href="langfund.php" title="Charity Fund">Study Tour Scholarship
                                </a>
                                <a class="dropdown-item" href="dream.php" title="'Dream Big' Charity Sales">'Dream Big' Charity Sales
                                </a>
                                <a class="dropdown-item" href="fund.php" title="Study Tour Scholarship">Charity Fund
                                </a>
                            </div>
                        </div>
                    </li>
                    <li class="menu__item">
                        <div class="dropdown navMenuDrop">
                            <a class="dropdown-toggle" type="button" id="support" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="support">
                                Support Us
                            </a>

                            <div class="dropdown-menu dropdown-menu-left" aria-labelledby="support">
                                <a class="dropdown-item" href="sponsorway.php" title="Corporate Sponsorship">Corporate Sponsorship</a>
                                <a class="dropdown-item" href="donate.php" title="Donation">Donation</a>
                                <a class="dropdown-item" href="sponsor.php" title="Our Sponsors">Our Sponsors
                                </a>

                            </div>
                        </div>
                    </li>
                    <li class="menu__item">
                        <a href="contact.php" title="contact">Contact Us
                        </a>
                    </li>
                    <li class="menu__item mobile">
                        <div class="d-flex align-items-center">
                            <a href="#" class="small enlang">ENG</a> | <a href="#" class="small mr-2 tclang"> 繁體</a> <a href="#" class="sbutton btn-primary"><i class="fas fa-volume-up"></i></a>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="nav__toggle">
                <div class="menuIcon"></div>
            </div>
        </div>

        <!--  <div class="ml-auto rightMenu desktop">

        <div class="d-flex align-items-center">
            <a href="https://forms.gle/rMY3eohDyskBFsuV8" target="_blank"><button class="roundBtn btn-primary mr-1">Trial Class</button></a>
            <a href="https://wa.me/85263681045" target="_blank"><button class="roundBtn btn-primary mr-2">Enrol Now</button></a>
           
        </div>
    </div>-->
    </div>
</div>


<script>
    $(document).ready(function() {
        let lang = window.location.href;
        let href = lang.split("/");



        let new_url_en = "";
        let new_url_tc = "";
        $.each(href, function(index, item) {
            
         
            if (item == 'en' || item == 'tc') {
                new_url_en += 'en/';
                new_url_tc += 'tc/';
            
            } else {
                new_url_en += item + '/';
                new_url_tc += item + '/';
            }

        })


        $(".enlang").attr("href", new_url_en.slice(0, -1));
        $(".tclang").attr("href", new_url_tc.slice(0, -1));




        $('.nav__toggle').on('click', function() {
            $('.menuIcon').toggleClass('animate');
            $('.nav').toggleClass('display');
        });


        let url = window.location.href;
        $('.menu__item a').each(function() {
            if (this.href === url) {
                $(this).closest('a').addClass('active');
            }

        });

    });
</script>