Skip to content

Instantly share code, notes, and snippets.

View jpdery's full-sized avatar

Jean-Philippe Déry jpdery

  • Québec, Canada
View GitHub Profile
package ca.logaritm.veneer.modules.view.lib.fonts;
import android.content.Context;
import android.graphics.Typeface;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.util.ArrayList;
// IE 11 Min Height Flex Fix
if (window.navigator.userAgent.indexOf('Trident/7.0') > 0 ||
window.navigator.userAgent.indexOf('Trident/6.0') > 0) (function($) {
$('*:not(.no-ie-flex-fix').each(function(i, element) {
element = $(element)
var timeout = null
/*
---
provides: moofx
version: 3.2.0
description: A CSS3-enabled javascript animation library
homepage: http://moofx.it
author: Valerio Proietti <@kamicane> (http://mad4milk.net)
license: MIT (http://mootools.net/license.txt)
includes: cubic-bezier by Arian Stolwijk (https://github.com/arian/cubic-bezier)
...
/*
---
provides: moofx
version: 3.2.0
description: A CSS3-enabled javascript animation library
homepage: http://moofx.it
author: Valerio Proietti <@kamicane> (http://mad4milk.net)
license: MIT (http://mootools.net/license.txt)
includes: cubic-bezier by Arian Stolwijk (https://github.com/arian/cubic-bezier)
...
var List = new Class({
Roles: {
'list-item': function(element) {
element.addClass('ui-list-item');
}
},
initialize: function(element) {

Example on how to use the role system:

<div data-role="view">

	<!-- creates an instance of Moobile.Button using this element -->
	<div data-role="control" data-class="Moobile.Button">Push Me</div> 

	<!-- here's how to add custom html inside the button but still specify where the button label is...  -->		
	<div data-role="control" data-class="Moobile.Button">