Skip to content

Instantly share code, notes, and snippets.

Uwe Schmelzer uschmelzer

Block or report user

Report or block uschmelzer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
uschmelzer / dabblet.css
Created Nov 7, 2018 — forked from wrumsby/dabblet.css
Using images for checkboxes and radiobuttons
View dabblet.css
* Using images for checkboxes and radiobuttons
body {
background-color: #fff;
color: #333;
font-family: "Open Sans", Arial, Helvetica, sans-serif;
line-height: 1.6;
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View JS Bin Test Table Borders inside only.html
<!DOCTYPE html>
<meta charset=utf-8 />
<title>JS Bin</title>
<style id="jsbin-css">
.table {
display: table;
/* border-collapse: separate; */
border-collapse: collapse;
View 1-pods-loop-general-example.php
//set up pods::find parameters to limit to 5 items
$param = array(
'limit' => 5,
//create pods object
$pods = pods('pod_name', $params );
//check that total values (given limit) returned is greater than zero
if ( $pods->total() > 0 ) {
uschmelzer / isElementInViewport.js
Created Jun 15, 2017 — forked from davidtheclark/isElementInViewport.js
JavaScript: Is element in viewport?
View isElementInViewport.js
No jQuery necessary.
Thanks to Dan's StackOverflow answer for this:
function isElementInViewport(el) {
var rect = el.getBoundingClientRect();
return ( >= 0 &&
uschmelzer / onViewport.js
Created Jun 15, 2017 — forked from eltonmesquita/onViewport.js
A simple jQuery function that adds a class when the target(s) is in the viewport
View onViewport.js
function onViewport(el, elClass, offset, callback) {
/*** Based on ***/
var didScroll = false;
var this_top;
var height;
var top;
if(!offset) { var offset = 0; }
$(window).scroll(function() {
View Simple language switcher
<f:layout name="Page"/>
<div xmlns="" lang="en"
<f:section name="SimpleLanguageSwitcher">
<!-- Get current language id, e.g. 0, 1 -->
<!-- In my case 0 = German, 1 = English -->
<f:if condition="{v:page.language(normalWhenNoLanguage: 1)} == 1">
uschmelzer / gist:5597784
Created May 17, 2013
IOS Shorter App title for homescreen -Available as of IOS6 -Undocumented, thus, throws (ignorable) errors in W3C Validator (as of MAY-2013) -Max. 13 chars LINKS
View gist:5597784
<meta name="apple-mobile-web-app-title" content="App-Name here">
You can’t perform that action at this time.