Advertisement
rdsedmundo

investor

Sep 28th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     document.addEventListener("DOMContentLoaded", function () {
  2.       var _elms = document.querySelectorAll("*");
  3.  
  4.       for (var _elm in _elms) {
  5.         var node = _elms[_elm];
  6.  
  7.         if (node.className) {
  8.           var the_class = node.className;
  9.  
  10.           var _match = the_class.match(/col-lg-offset-(.*)/gi);
  11.           if (_match)
  12.             node.className += " col-xs-offset-" + _match[0].split("offset-")[1];
  13.         }
  14.       }
  15.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement