$('.watch-video').click(function() {
const index = $(this).attr('data-index');
$('#uploadVideos').load('videos.html #video_'+index);.....
function Foo() {
console.log('foo');
}
let foo = function() {
console.log('foo');
};
$('.list').find('.list-item').sort(function(a, b) {
var attrA = $(a).attr('data-hit') ? '!!!!!!' : 'zzzzzz';
var attrB = $(b).attr('data-hit') ? '!!!!!!' : 'zzzzzz';
var nameA = attrA + $(a).text().trim().toLowerCase();
var nameB = attrB + $(b).text().trim().toLowerCase();
return (nameA < nameB) ? -1 : (nameA > nameB) ? 1 : 0;
}).appendTo($('.list'));