Skip to content

Instantly share code, notes, and snippets.

View Ema4rl's full-sized avatar

Harrison Emmanuel Ema4rl

View GitHub Profile
@Ema4rl
Ema4rl / ssbg-slideshow.js
Last active January 18, 2020 18:43 — forked from ki11ua/Super simple background image slideshow.css
Super Simple jQuery Background-image Slideshow (using CSS3 for the transition, gets the image paths via HTML5 `data` attribute, and with image preload trick).
/*!
* By Eharry.me (https://gist.github.com/Ema4rl/b8ef90be99205ddada5ef2cd6e632ebe)
*/
! function ($) {
"use strict";
var slide = $("[data-slides]"),
count = 0,
slides = slide.data("slides"),
len = slides.length,
n = function () {
@Ema4rl
Ema4rl / detect-private-browsing.js
Last active February 27, 2017 17:02 — forked from cou929/detect-private-browsing.js
Detect private browsing mode (InPrivate Browsing or Incognito).
"use strict";
// check out https://jsfiddle.net/Lj2fs5kr/
new Promise(function (resolve) {
var db = void 0,
on = function on() {
return resolve(true);
},
off = function off() {
return resolve(false);