app/static/js/event_handling.js
/**
 * This function removes unnecessary direct styling of HTML elements, which causes bad layout of some elements of the timeline.
 */
This function removes unnecessary direct styling of HTML elements, which causes bad layout of some elements of the timeline.
This function removes unnecessary direct styling of HTML elements which causes bad layout of some elements of the timeline .
function remove_unnecessary_direct_styling() {
	$('.tl-media-youtube').removeAttr('width');
	$('.tl-media-youtube').removeAttr('height');
	$('.tl-media-youtube').removeAttr('style');
	$('.tl-media-item').removeAttr('width');
	$('.tl-media-item').removeAttr('height');
	$('.tl-media-item').removeAttr('style');
	$('.tl-media').removeAttr('width');
	$('.tl-media').removeAttr('height');
	$('.tl-media').removeAttr('style');
	$('.tl-slide-content').removeAttr('width');
	$('.tl-slide-content').removeAttr('height');
	$('.tl-slide-content').removeAttr('style');
}
function remove_unnecessary_direct_styling ( ) { $ ( '.tl-media-youtube' ) . removeAttr ( 'width' ) ; $ ( '.tl-media-youtube' ) . removeAttr ( 'height' ) ; $ ( '.tl-media-youtube' ) . removeAttr ( 'style' ) ; $ ( '.tl-media-item' ) . removeAttr ( 'width' ) ; $ ( '.tl-media-item' ) . removeAttr ( 'height' ) ; $ ( '.tl-media-item' ) . removeAttr ( 'style' ) ; $ ( '.tl-media' ) . removeAttr ( 'width' ) ; $ ( '.tl-media' ) . removeAttr ( 'height' ) ; $ ( '.tl-media' ) . removeAttr ( 'style' ) ; $ ( '.tl-slide-content' ) . removeAttr ( 'width' ) ; $ ( '.tl-slide-content' ) . removeAttr ( 'height' ) ; $ ( '.tl-slide-content' ) . removeAttr ( 'style' ) ; }
This function removes unnecessary direct styling of HTML elements, which causes bad layout of some elements of the timeline.
This function removes unnecessary direct styling of HTML elements which causes bad layout of some elements of the timeline .
// tl-media-item tl-media-youtube tl-media-shadow // pattern: $("#myParagraph").css({ //	"backgroundColor":"black", //	"color":"white" //}); //tl-media-item tl-media-youtube tl-media-shadow //$('.tl-slide-content .tl-text-content').css('box-sizing', ''); //document.getElementById('mydiv').style.removeProperty('-moz-user-select')