Skip to content

Instantly share code, notes, and snippets.

View Asinox's full-sized avatar
💭
React + Cinema = App!

Juan Miguel Calcaño Asinox

💭
React + Cinema = App!
View GitHub Profile
$(function(){
var $targetElement = '.wordBreak';
if($.browser.msie) {
$($targetElement).css('word-break', 'break-all');
} else {
$($targetElement).each(function(){
if(navigator.userAgent.indexOf('Firefox/2') != -1) {
$(this).html($(this).text().split('').join('<wbr />'));
} else {
$(this).html($(this).text().split('').join(String.fromCharCode(8203)));