$(function() {
$(window).on('contextmenu', function(event) {
if(event.target.nodeName.toLowerCase() == 'img' || $(event.target).css('background-image') != 'none') {
alert($('html').data('copyright-msg'));
event.preventDefault();
}
});