Ver Fonte

Making the placeholder span hidden

Making the placeholder span hidden by:
1. Setting display to (inline) block
2. Moving it to endless left (-9999)
Dhruv Vemula há 13 anos atrás
pai
commit
382cd7c94d
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      copylinkaddress.js

+ 2 - 2
copylinkaddress.js

@@ -1,7 +1,7 @@
-var linkAddress = $('<span id="copylAddress" />');
+var linkAddress = $('<span id="copylAddress" style="display: inline-block;" />');
 $('body').append(linkAddress);
 // 'Hidden' yet selectable
-//linkAddress.css({position: 'absolute', left:'-9999em'});
+linkAddress.css({position: 'absolute', left:'-9999em'});
 
 copylLogging = false;