Created
January 26, 2017 22:55
-
-
Save ganmahmud/da31faa7307750d4ea896c4ab0158a81 to your computer and use it in GitHub Desktop.
For RTL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(window).bind("load", function() { | |
// code here | |
if (jQuery("body").hasClass('rtl')){ | |
var vc_rows = jQuery("body .vc_row"); | |
for (var i = vc_rows.length - 1; i >= 0; i--) { | |
vc_rows.css('left', Math.abs(parseInt(vc_rows[i].style.left))); | |
}; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment