Skip to content

Instantly share code, notes, and snippets.

View mickaelxd's full-sized avatar

Mickael Rocha mickaelxd

  • Pulsati
  • Blumenau, Brazil
View GitHub Profile
// Bootstrap version 4
function detectSizeBootstrapGrid() {
let envs = ['xs', 'sm', 'md', 'lg', 'xl'];
// Create element to get name size
let el = document.createElement('div');
document.body.appendChild(el);
let size = envs.shift();