Skip to content

Instantly share code, notes, and snippets.

View k5e's full-sized avatar
😎
Tri-tra-Trullala!

Christian Knappke k5e

😎
Tri-tra-Trullala!
  • Karlsruhe, Germany
View GitHub Profile
@k5e
k5e / keybase.md
Last active August 29, 2015 14:07
keybase.io proof

Keybase proof

I hereby claim:

  • I am k5e on github.
  • I am k5e (https://keybase.io/k5e) on keybase.
  • I have a public key whose fingerprint is DC72 667B B416 DA1A D520 0CDB 3BAF 2845 BACD 0E8B

To claim this, I am signing this object:

setup_placeholders = (function() {
$.support.placeholder = false;
test = document.createElement('input');
if('placeholder' in test) {
$.support.placeholder = true;
return function() {}
} else {
return function(){
function functionToCallOnorientationChange() {
var orientation = screen.mozOrientation;
if (orientation === "portrait-primary" || orientation === "portrait-secondary" ) {
//do something
}
else if if (orientation === "landscape-primary" || orientation === "landscape-secondary" ) {
//do something else
}
}
@k5e
k5e / index.html
Created February 13, 2012 13:41 — forked from RyanHope/index.html
Device specific css files.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="src/css/pre.css" media="only screen and (min-device-width : 320px) and (max-device-width : 480px)">
<link rel="stylesheet" href="src/css/pre3.css" media="only screen and (min-device-width : 480px) and (max-device-width : 800px)">
<link rel="stylesheet" href="src/css/touchpad.css" media="only screen and (min-device-width : 768px) and (max-device-width : 1024px)">
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" />
<title>wTerm App</title>
<script src="/usr/palm/frameworks/enyo/1.0/framework/enyo.js" launch="nobridge" type="text/javascript"></script>