Found here: http://eprev.org/2017/01/05/how-to-detect-if-css-transforms-are-supported-on-svg/
Added zIndex to make sure SVG element is on top.
window._debug = true; | |
// ... | |
var logTable = function(data, prefix){ | |
var table = [], | |
i, | |
value, | |
isArray; |
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
do | |
npm -g install "$package" | |
done |
<?php | |
$file = file_get_contents("/etc/hosts"); | |
$lines = explode("\n", $file); | |
$hosts = array(); | |
foreach($lines as $line) { | |
if (preg_match("/^#/", $line) || !$line) { | |
continue; | |
} |
const http = require('http'); | |
const port = process.env.PORT || 1234; | |
const server = http.createServer((request, response) => { | |
response.end(`It works!! Url: ${request.url}`); | |
}).listen(port, () => { | |
console.log(`Server listening on http://localhost:${port}`); | |
}); |
<style> | |
html:not(.is-phone) .whatsapp-link { | |
display: none; | |
} | |
</style> | |
<a class="whatsapp-link" href="whatsapp://send?text=url-encoded-text-goes-here"> | |
Share with Whatsapp | |
</a> | |
<script> | |
;(function(navigator, document) { |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2015 Fedia <fedia@psih.ru> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
/* | |
A full list of simple easing equations inspired by GIST from greweb - https://gist.github.com/gre/1650294 | |
Equations source - http://gsgd.co.uk/sandbox/jquery/easing/ | |
*/ | |
{ | |
linear: function(t) { | |
return t | |
}, | |
inQuad: function(t) { |
import $ from 'jquery'; | |
import plugin from './plugin'; | |
class ScrollToTop { | |
constructor(element, options) { | |
const $element = $(element); | |
$(window).scroll(function () { | |
if ($(this).scrollTop() > options.offset) { | |
$element.fadeIn(); |
Found here: http://eprev.org/2017/01/05/how-to-detect-if-css-transforms-are-supported-on-svg/
Added zIndex to make sure SVG element is on top.