Skip to content

Instantly share code, notes, and snippets.

View efinit's full-sized avatar
💭
I may be slow to respond.

E'finit efinit

💭
I may be slow to respond.
View GitHub Profile
@efinit
efinit / *Best Snippets*
Created March 21, 2022 06:39
Best PHP/JS Snippets
This is a collection of my most used or most useful PHP and JS snippets
**Disclaimer, I didn't write most of these - I just curated them over the years**
@efinit
efinit / gist:3d64b8c28109b24fd70dbc1ae6146202
Created June 6, 2021 03:42 — forked from oooh-boi/gist:80e78f98fb1c0cd48c56a0a414d934b3
Show hide Header on scroll - OoohBoi video tutorial
<script>
"use strict";
OB_ready(OB_doWhenReady);
function OB_doWhenReady() {
// localize everything
var ooohBoi = window.ooohBoi || {};
// local scope variables
ooohBoi.prev_scroll_pos = window.scrollY || document.body.scrollTop;
ooohBoi.cur_scroll_pos;
@efinit
efinit / gist:ff03239c5d28aa5af1996d0c4c517eab
Created May 1, 2021 19:47 — forked from oooh-boi/gist:a2e47433443125887d20aafd5cec7388
OoohBoi Video Tutorial : Full-height Image Widget in Elementor PRO
/* be sure to copy-paste to the Image Widget Custom CSS panel */
selector,
selector .elementor-widget-container,
selector .elementor-image,
selector .elementor-image > a {
height: 100%;
}
selector .elementor-image img {
object-fit: cover;
object-position: 50% 50%;