Last active
July 19, 2019 16:35
-
-
Save gsmartagence/a62dae5f6abf450f85423112a378df2e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * bootstrapBreakpointsHelper | |
| */ | |
| export const bootstrapBreakpointsHelper = function () { | |
| 'use strict' | |
| const bootstrapControlStr = '<div style="display:block;padding:1rem 2rem;position:fixed;bottom:0;right:0;z-index:999999;background-color:#B30000;color:#FFF;"><div class="d-block d-sm-none"> XS</div><div class="d-none d-sm-block d-md-none">SM</div><div class="d-none d-md-block d-lg-none">MD</div><div class="d-none d-lg-block d-xl-none">LG</div><div class="d-none d-xl-block">XL</div></div>' | |
| const bootstrapControl = document.createElement('div') | |
| bootstrapControl.innerHTML = bootstrapControlStr | |
| document.body.appendChild(bootstrapControl) | |
| } |
This file contains hidden or 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
| { | |
| "name": "bootstrapBreakpointsHelper.js", | |
| "version": "0.2.1" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment