Skip to content

Instantly share code, notes, and snippets.

View camipaixao's full-sized avatar
🏡
working from home

Camila Paixão camipaixao

🏡
working from home
  • Ímpar
  • Rio de Janeiro, RJ
View GitHub Profile
@camipaixao
camipaixao / index.html
Created May 4, 2020 17:28
Efeito para menu hambúrguer
<body>
<input id="menu-hamburguer" type="checkbox">
<label for="menu-hamburguer">
<div class="menu">
<span class="hamburguer"></span>
</div>
</label>
</body>
@camipaixao
camipaixao / formSubmit.js
Created April 15, 2020 18:17 — forked from klhall1987/formSubmit.js
Example of how to use the .on formSubmit listener.
<script>
jQuery( document ).ready( function() {
//Setup our on formSumbit Listener.
jQuery( document ).on( 'nfFormSubmitResponse', function() {
//Do Stuff
ga('send', 'event', 'Email List', 'Subscribed', 'New Subscriber');
});
});
</script>
@camipaixao
camipaixao / index.html
Last active April 6, 2020 20:35
Lightbox for Youtube Video
<button id="playme" onclick="mostrarVideo('video','videoIframe')">Play</button>
<!-- Lightbox video -->
<div id="video" class="lightbox" onclick="esconderVideo('video','videoIframe')">
<div class="lightbox-container">
<div class="lightbox-content">
<button onclick="esconderVideo('video','videoIframe')" class="lightbox-close">Fechar | ✕</button>
<div class="video-container">
<iframe id="videoIframe" width="960" height="540" src="https://www.youtube.com/embed/v0ALfnB7cAY?controls=0" frameborder="0" allowfullscreen autoplay></iframe>
</div>