jquery - Need help finding what is blocking text selection in script -
i using following mobile-me script can seen here:
http://lokeshdhakar.com/projects/mobileme-particles/
i have noticed blocking ability select text on site. example if use mouse select “created by: lokesh dhakar” @ footer of page, cannot done.
here github repository:
https://github.com/lokesh/mobileme-particles
i need finding blocking text being selected in project. assistance appreciated.
i'll start words of wisdom :
disabling text selection bad. don't use this.
from http://api.jqueryui.com/disableselection/
.disableselection()
otherwise can change background of text selection match other background
::selection { background: #ffb7b7; }
or : how disable text selection using jquery?
(function($){ $.fn.disableselection = function() { return .attr('unselectable', 'on') .css('user-select', 'none') .on('selectstart', false); }; })(jquery);
edit : (from me , presto) add modernizr.addtest("userselect",function(){ return modernizr.testallprops("user-select"); });
js file , can select text :)
Comments
Post a Comment