Skip to content

Instantly share code, notes, and snippets.

View NiklasJordan's full-sized avatar
🛰️
Make satellite data accessible for everyone.

Niklas Jordan NiklasJordan

🛰️
Make satellite data accessible for everyone.
View GitHub Profile
.zweispaltig {
column-count: 2;
column-gap: 20px;
}
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#nav li#sub ul").css({"display":"none"});
$("#nav li#sub").mouseover(function() {
$("#nav li#sub ul").stop(true, true).fadeIn("300");
<?php
// get a page
$editpage = $pages->get("/editme/");
$ignorefields = array("isOld","language_published");
$form = $modules->get("InputfieldForm");
$form->method = 'post';
$form->action = './';
@NiklasJordan
NiklasJordan / gist:6210300
Created August 12, 2013 12:08
Analytics-Codes zur besseren Analyse der Bounce-Rate erweitern. In die Absprungrate zählen dann nur noch User die weniger als 5 Sekunden auf der Seite bleiben. Installation: Die Zeile einfach unter den letzten _gaq.push-Eintrag einfügen. Thats it...
setTimeout('_gaq.push([\'_trackEvent\', \'NoBounce\', \'Over 5 seconds\'])',5000);
<?php snippet('header') ?>
<?php foreach($page->children()->flip() as $article): ?>
<?php if($article->template() == 'link'): ?>
<!-- link html -->
<?php elseif($article->template() == 'article'): ?>
@NiklasJordan
NiklasJordan / artikelliste.html
Created November 21, 2013 16:19
Fluid: TypoScript direkt ins HTML einbinden
<f:cObject typoscriptObjectPath="lib.content" />

Menu for Personal Website

Many folks use these, and their merits can be argued, but for practical purposes, the "Hamburger" icon has familiarity going for it, at the very least. These animations add a little more transparency to what it means from a UI perspective by transforming it into another recognizable icon - the closing "x". Full walkthrough here: http://designcouch.com/home/why/2014/06/23/playing-with-hamburger-icon-animations/

Forked from Jesse Couch's Pen Menu "Hamburger" Icon Animations.

Forked from Jesse Couch's Pen Menu "Hamburger" Icon Animations.

Forked from Jesse Couch's Pen Menu "Hamburger" Icon Animations.

@NiklasJordan
NiklasJordan / framerjs_pager.js
Last active October 22, 2015 16:20
FramerJS Pager
# Set background
bg = new BackgroundLayer
backgroundColor: "#e67e22"
#####################
### Create Layers ###
#####################
layerA = new Layer
width: 130
<?php if($page->isHomepage()): ?>
Foo
<?php else: ?>
Bar
<?php endif ?>

Keybase proof

I hereby claim:

  • I am niklasjordan on github.
  • I am niklasjordan (https://keybase.io/niklasjordan) on keybase.
  • I have a public key ASAKrKT6eL8j61lOvI-CUVAik0ahCiNbfUGYlzGHBTpO6Qo

To claim this, I am signing this object: