Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/js/main.js

36 lines
908 B

$(function () {
// Elevator Scroll
$(window).scroll(function () {
if ($(this).scrollTop() > 50) {
$('.app-elevator').fadeIn();
} else {
$('.app-elevator').fadeOut();
}
});
// scroll body to 0px on click
$('#back-to-top').click(function () {
$('#back-to-top').tooltip('hide');
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
var $inputTitle = $("#add_course_title");
$inputTitle.keyup(function () {
var value = $(this).val();
var titleDefault = "Course Title";
if (value.length > 0) {
$("#title_course_card").text(value);
} else {
$("#title_course_card").text(titleDefault);
}
}).keyup();
$("select[name=category_code]").change(function () {
$(".category").show();
var $category = $('select[name=category_code] option:selected').html();
$(".category").text($category);
});
});