Skip to content

Instantly share code, notes, and snippets.

View VAKHULA's full-sized avatar

andrii.vakhula VAKHULA

View GitHub Profile
function interceptNetworkRequests(ee) {
const open = XMLHttpRequest.prototype.open;
const send = XMLHttpRequest.prototype.send;
const isRegularXHR = open.toString().indexOf('native code') !== -1;
// don't hijack if already hijacked - this will mess up with frameworks like Angular with zones
// we work if we load first there which we can.
if (isRegularXHR) {
@VAKHULA
VAKHULA / no-scroll.css
Created September 13, 2018 11:56 — forked from gwagroves/no-scroll.css
Prevent body scrolling on iOS
/* http://stackoverflow.com/a/19054794/698511 */
body.no-scroll {
left: 0;
-webkit-overflow-scrolling: touch;
position: fixed;
top: 0;
width: 100%;
}
@gregnb
gregnb / css-fadeup.html
Created June 12, 2017 21:37
CSS stagger fade up animation
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS Staggered fade up effect</title>
</head>
<script type="application/javascript">
</script>
@lancejpollard
lancejpollard / paginator.html
Created June 26, 2011 18:11
Semantic Pagination HTML5
<nav class='paginator' role='toolbar'>
<ul class='goto-pages'>
<li class='goto-search'>
<a href="#search" class="search-pages" title="Toggle Advanced Search">&#8981;</a>
</li>
<li class='goto-page'>
<a href="/admin/users?page=1" aria-disabled="true" class="first-page disabled" data-page="1" rel="first" title="Go to the first page">&#8676;</a>
</li>
<li class='goto-page'>
<a href="/admin/users?page=1" aria-disabled="true" class="prev-page disabled" data-page="1" rel="prev" title="Go to page 1">&#8672;</a>