/var/www/hkosl.com/eba/view/medialist.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>

<html lang="en-HK" prefix="og: http://ogp.me/ns#">




<head>
    <title>媒體報導</title>
    <!-- css -->

    <?php include 'inc/headlinks.php';?>

    <!-- js -->

    <?php include 'inc/link-js.php';?>

</head>


<body>


    <!-- header -->

    <?php include 'inc/navbar.php';?>

    <!-- end of header-->



    <!-- breadcrumb -->


    <div class="breadcrumb" style="background-color:#e20076; background-image:url(/eba/assets/images/countbg.png);">

        <div class="breadcrumbWrapper">
            <div class="container">
                <div class="breadcrumbLink">
                    <a href="index.php" class="text-white bigfont"> 首頁</a>
                </div>
                <p class="breadcrumbTitle text-center m-3 h3">媒體報導</p>

            </div>
        </div>

    </div>


    <section class="contentWrap">
        <div class="contentContainer">



            <ul class="nav tabNav">
                <li class="nav-item">
                    <a class="nav-link active tabNavItem" aria-current="page" href="#" data-year="2025">2025</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link tabNavItem" href="#" data-year="2024">2024</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link tabNavItem" href="#" data-year="2023">2023</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link tabNavItem" href="#" data-year="2022">2022</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link tabNavItem" href="#" data-year="2021">2021</a>
                </li>
            </ul>

            <div class="tabcontent">
                <ul class="list-group list-group-flush">



                </ul>

            </div>


        </div>

    </section>



    <!-- end #section -->


    <!-- footer -->

    <?php include 'inc/footer.php'?>

    <script>
    $(function() {


        getYear("2025");


    });



    $('.tabNavItem').on('click', function() {
        var y = $(this).data('year');
        $('.tabNavItem').removeClass('active');
        $(this).addClass('active');


        $(".list-group-item").fadeOut(300, function() {
            $(this).remove();

        });

        getYear(y);

    });


    function getYear(year) {

        $.ajax({
            url: "/eba/assets/json/media.json",
            type: "get",

            data: {},
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            cache: false,

            success: function(data) {

                var list = data[year];
                $.each(list, function(index, item) {
                    var awardHTML = `
                           
                    <li class="list-group-item">
                        <a href="${item.url}" target="_blank">
                         <p>${item.media}</p>
                       <h4>${item.title}</h4>
                       </a>
                    </li>
                     
                         
                `;
                    $(".tabcontent").append(awardHTML);
                });

            },
            error: function(xhr, status, errorThrown) {
                console.log(errorThrown + "\n" + status + "\n" + xhr.statusTex);
            },
        });

    }
    </script>

</body>







</html>