Skip to content
Snippets Groups Projects
Commit b409a12e authored by Andrew Berezovsky's avatar Andrew Berezovsky
Browse files

Added !important to width and height of transparent gif

parent 87c8cb7a
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@
//var pos = $(this).offset();
var pos = $(this).position();
var html = '<div class="copyprevention-transparent-gif" style="position: absolute; left: ' + pos.left + 'px; top: ' + pos.top + 'px">'
+ '<img src="' + Drupal.settings.copyprevention.transparentgif + '" width="' + this.clientWidth + '" height="' + this.clientHeight + '"></div>';
+ '<img src="' + Drupal.settings.copyprevention.transparentgif + '" style="width: ' + this.clientWidth + 'px !important; height: ' + this.clientHeight + 'px !important;"></div>';
//var $overlay = $(html).appendTo('body')
var $overlay = $(html).insertAfter(this)
.bind('mouseout', function(e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment