').appendTo(root);
$.ajax({
url: site + '/irlink/news',
type: 'POST',
data: params,
success: function(data) {
root.replaceWith(data);
},
error: function() {
alert('Sorry, there was a problem loading the data');
blind.remove();
}
});
}
function changePage(evt, page) {
refreshNews(evt, {
page: page
});
}
function changeYear(evt, year) {
refreshNews(evt, {
year: year
});
}
$('body').on('click', '.irlink-hkex-news-root .select-box .label', function() {
var dd = $(this).closest('.select-box').find('.dropdown');
if (dd.is(':visible')) {
dd.slideUp(100);
} else {
dd.slideDown(100);
$('body').one('click', function(e) {
if (!$(e.target).parents('.select-box').length) {
dd.slideUp(100);
}
});
}
});
$('body').on('click', '.irlink-hkex-news-root .year-select .dropdown a', function(evt) {
var year = $(this).attr('data-year');
if (!year) return;
changeYear(evt, year);
});
$('body').on('click', '.irlink-hkex-news-root .paginator a', function(evt) {
var page = $(this).attr('data-page');
if (!page) return;
changePage(evt, page - 1);
});
$('left current-year').width = $('irlink-hkex-news-date').width();
})(jQuery);
-
2021年06月30日
-
2021年06月01日
-
2021年05月03日
-
2021年04月27日
-
2021年04月01日
-
2021年03月24日
-
2021年03月24日
-
2021年03月24日
-
2021年03月24日
-
2021年03月23日