Skip to content

Instantly share code, notes, and snippets.

View Mao8a's full-sized avatar

Mauricio Ochoa Mao8a

View GitHub Profile
@Mao8a
Mao8a / media-query-js-css.html
Created October 21, 2022 17:55
Use css media queries as JavaScrip variables based on a DOM element
<script>
/**
* @description Encapsule all variables and funtions
* @const mediaQueryHTML {Object} New DOM element with css heigth based on css break points
*/
(function () {
const mediaQueryHTML = document.createElement('div');
const breakPoints = {
0: 1, //xxs
@Mao8a
Mao8a / initial-function.js
Created February 9, 2023 21:32
JS: JavaScript Empty Function Init
/**
* @description Contact Us Component
* @const elements {Object} List of elements
* @const element {Object} DOM element
*/
(function () {
/**
* @description Main function
*/