Skip to content

Instantly share code, notes, and snippets.

@JanCK
JanCK / bridge.js
Last active December 13, 2016 21:15
/*
- JS History Router
- books.js loader
- next / prev page -> Buttons + swipe + x-scroll
- Links überschreiben
- GA
- Cache aktivieren
- Parallax Header
- Video-Youtube-Weiche
@JanCK
JanCK / config.php
Last active September 12, 2016 18:32
syncview getkirby plugin / field
<?php
/*
Append to your config.php
*/
c::set('routes', array(
// SYNCVIEW Route for JSON POST request calls helper to check target url for last modification
array(
'pattern' => 'syncview',
'action' => function() {
// check if a request happend
@JanCK
JanCK / baylys-kiteboarding-child
Last active September 14, 2016 09:43 — forked from larsschenk/ baylys-kiteboarding-child
Bayblys Childtheme for Kiteboarding.eu
# Baylys Kiteboarding Child
Just a simple start for a WordPress child theme for keyboarding based on baylys.
This file should give the gist a meaningfull title, only ;-)
@JanCK
JanCK / Localizable.strings
Last active June 14, 2016 11:59
Deutsche Übersetzung für Bakerframework Localizable.strings
// Shelf Navigation Title at the top of the main Issues List
"SHELF_NAVIGATION_TITLE" = "Baker Kiosk";
// Products alert
"PRODUCTS_REQUEST_FAILED_TITLE" = "Fehler beim Verbinden mit dem App Store";
"PRODUCTS_REQUEST_FAILED_CLOSE" = "Schließen";
// Info button
"INFO_BUTTON_TEXT" = "Info";
@JanCK
JanCK / animation-iteration-event.html
Last active August 29, 2015 14:17
CSS3/JS animation iteration, class based
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta id="viewport" name="viewport" content ="width=device-width, initial-scale = 1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Cover Parallax Test</title>
<style>
@JanCK
JanCK / parallax-header.html
Created March 17, 2015 15:17
HTML/CSS3 Parallax Effect
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<meta id="viewport" name="viewport" content ="width=device-width, initial-scale = 1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Parallax Header</title>
<style>
@JanCK
JanCK / stripteaser_engine.js
Created September 6, 2013 12:07
Javascript engine for loops. You can register and unregister functions and use just a single Interval to fire them all each iteration. Optimization is welcomed. I already tried to replace the interval with a RequestAnimationFrame but the result was not as fast as I expected - in fact slower!!
(function($) {
// GLOBALS
$.STSR_FOCUS_TARGET;
$.STSR_ENGINE;
$.STSR_ENGINE_SPEED;
$.STSR_ENGINE_PROCESSES = [];
$.STSR_ID = 0;
$.ENGINE = {// initialize values