/var/www/hkosl.com/waiyin/tc/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
<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">主頁
                        </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">
                                關於我們
                            </a>

                            <div class="dropdown-menu dropdown-menu-left" aria-labelledby="about">
                                <a class="dropdown-item" href="about.php" title="關於我們">關於我們</a>
                                <a class="dropdown-item" href="team.php" title="名譽顧問團">名譽顧問團</a>
                                <a class="dropdown-item" href="presidential.php" title="會長的話">會長的話</a>
                                <a class="dropdown-item" href="presidential_old.php" title="永遠名譽會長">永遠名譽會長
                                </a>
                                <a class="dropdown-item" href="trustees.php" title="信託委員會">信託委員會
                                </a>
                                <a class="dropdown-item" href="executive.php" title="執行委員會">執行委員會
                                </a>
                                <a class="dropdown-item" href="presidential_history.php" title="歷屆會長">歷屆會長
                                </a>
                            </div>
                        </div>
                    </li>
                    <li class="menu__item">
                        <a href="member.php" title="Home">會員
                        </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">
                                最新消息
                            </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="活動回顧">活動回顧</a>
                                <a class="dropdown-item" href="tree.php" title="社會建樹">社會建樹
                                </a>
                                <a class="dropdown-item" href="langfund.php" title="語言文化交流團獎學金">語言文化交流團獎學金
                                </a>
                                <a class="dropdown-item" href="dream.php" title="'Dream Big' 慈善義賣">'Dream Big' 慈善義賣
                                </a>
                                <a class="dropdown-item" href="fund.php" title="慈善基金">慈善基金
                                </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">
                                支持我們
                            </a>

                            <div class="dropdown-menu dropdown-menu-left" aria-labelledby="support">
                                <a class="dropdown-item" href="sponsorway.php" title="贊助方法">贊助方法</a>
                                <a class="dropdown-item" href="donate.php" title="捐贈">捐贈</a>
                                <a class="dropdown-item" href="sponsor.php" title="贊助商">贊助商
                                </a>

                            </div>
                        </div>
                    </li>
                    <li class="menu__item">
                        <a href="contact.php" title="contact">聯絡我們
                        </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>