Skip to content

Instantly share code, notes, and snippets.

@ganmahmud
Created January 26, 2017 22:55
Show Gist options
  • Save ganmahmud/da31faa7307750d4ea896c4ab0158a81 to your computer and use it in GitHub Desktop.
Save ganmahmud/da31faa7307750d4ea896c4ab0158a81 to your computer and use it in GitHub Desktop.
For RTL
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