blob: c61f19f879ff9d2dc677310b2bbe02a6d215493f [file] [log] [blame]
/**
* Copyright (c) 2018 Eclipse Foundation and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Eric Poirier (Eclipse Foundation) - initial API and implementation
*
* SPDX-License-Identifier: EPL-2.0
*/
$(function() {
$('.featured-new-noteworthy-item').hover(function() {
$(this).find(".featured-new-noteworthy-read-more").fadeIn(100);
}, function() {
$(this).find(".featured-new-noteworthy-read-more").fadeOut(100);
});
$('.featured-new-noteworthy-read-more .feather-x').click(function() {
$(this).parent().fadeOut(100);
});
$('.view-more-videos').click(function() {
if ($(this).hasClass('close-more-videos')) {
$('.featured-more-videos').slideUp(300);
var icon = $("<i></i>").attr("class","fa fa-arrow-down");
$(this).removeClass('close-more-videos').text('More Videos ').append(icon);
}
else {
$('.featured-more-videos').slideDown(300);
$(this).addClass('close-more-videos').text('Close');
}
});
});