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.
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.
/*! | |
* hnl.mobileConsole - javascript mobile console - v1.2.6 - 26/10/2016 | |
* Adds html console to webpage. Especially useful for debugging JS on mobile devices. | |
* Supports 'log', 'trace', 'info', 'warn', 'error', 'group', 'groupEnd', 'table', 'assert', 'clear' | |
* Inspired by code by jakub fiala (https://gist.github.com/jakubfiala/8fe3461ab6508f46003d) | |
* Licensed under the MIT license | |
* | |
* Original author: @hnldesign | |
* Further changes, comments: @hnldesign | |
* Copyright (c) 2014-2016 HN Leussink |
// the array to loop through | |
const arr = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]; | |
// start with a resolved promise | |
let p = Promise.resolve(); | |
// loop through the array | |
for (let i of arr) { | |
I hereby claim:
To claim this, I am signing this object:
var touchstartX = 0; | |
var touchstartY = 0; | |
var touchendX = 0; | |
var touchendY = 0; | |
var gesuredZone = document.getElementById('gesuredZone'); | |
gesuredZone.addEventListener('touchstart', function(event) { | |
touchstartX = event.screenX; | |
touchstartY = event.screenY; |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
#!/bin/bash | |
# Replaces all _lightweight_ Git tags with an _annotated_ tag | |
# in the current repository | |
echo "Converting lightweight tags to annotated tags..." | |
for tag in $(git tag) | |
do |
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |