Skip to content

Instantly share code, notes, and snippets.

View tilomitra's full-sized avatar
👋

Tilo Mitra tilomitra

👋
View GitHub Profile
@tilomitra
tilomitra / gist:3702922
Created September 11, 2012 23:17
YUI Blog Issues
Comment with any issues re. the YUI Blog theme.
@tilomitra
tilomitra / tap.js
Created September 14, 2012 21:07
YUI3 event-tap module with additions to prevent 'click' from firing after touchend
/**
The tap module provides a gesture events, "tap", which normalizes user interactions
across touch and mouse or pointer based input devices. This can be used by application developers
to build input device agnostic components which behave the same in response to either touch or mouse based
interaction.
'tap' is like a touchscreen 'click', only it requires much less finger-down time since it listens to touch events,
but reverts to mouse events if touch is not supported.
@example
<!DOCTYPE html>
<html>
<head>
<title>Drag Touch</title>
<script type="text/javascript" src="../../../../build/yui/yui.js"></script>
<style>
#myDrag {
@tilomitra
tilomitra / gist:3838689
Created October 5, 2012 08:07
Tracking -ms-touch-action on win8 tablets
<!DOCTYPE html>
<html>
<head>
<style>
html {
font-family: sans-serif;
color: #333;
}
#circle, #square {
@tilomitra
tilomitra / gist:3860901
Created October 9, 2012 19:29
Test results for Slider, Dial and Scrollview

This is with the touchEnabled fix (1) and the -ms-touch-action fix (2)

IE10 Mouse Mode

Scrollview

Manual tests pass, unit tests pass.

Dial

@tilomitra
tilomitra / gist:3869168
Created October 10, 2012 23:16
winjs-results
This file has been truncated, but you can view the full file.
[{"name":"ArraySort","passed":3,"failed":0,"errors":0,"ignored":0,"total":3,"duration":114,"type":"report","Basic Tests":{"name":"Basic Tests","passed":3,"failed":0,"errors":0,"ignored":0,"total":3,"duration":23,"type":"testcase","testNumbers":{"result":"pass","message":"Test passed","type":"test","name":"testNumbers","duration":2},"testStrings":{"result":"pass","message":"Test passed","type":"test","name":"testStrings","duration":2},"testMixedStrings":{"result":"pass","message":"Test passed","type":"test","name":"testMixedStrings","duration":1}},"timestamp":"Wednesday, October 10, 2012 6:40:00 PM"},{"name":"Event: Simulate","passed":67,"failed":0,"errors":0,"ignored":0,"total":67,"duration":783,"type":"report","MouseEvent Tests":{"name":"MouseEvent Tests","passed":44,"failed":0,"errors":0,"ignored":0,"total":44,"duration":446,"type":"testsuite","Event 'click' Tests":{"name":"Event 'click' Tests","passed":7,"failed":0,"errors":0,"ignored":0,"total":7,"duration":120,"type":"testcase","testDefault":{"result":"p
@tilomitra
tilomitra / gist:3901176
Created October 16, 2012 18:46
-ms-touch-action on IE10 Desktop
<!DOCTYPE html>
<html>
<head>
<style>
#square {
width:200px;
height:200px;
background: yellow;
border:3px solid black;
position: relative;
@tilomitra
tilomitra / tabview.css
Created October 22, 2012 02:31
Colorful YUI3 Tabview
@gray: #f4f4f4;
@primary: #ff7200;
@medPrimary: darken(@primary, 30%);
@darkPrimary: darken(@medPrimary, 35%);
@highlight: #fff;
#demo {
box-shadow: 0 0 7px darken(@gray, 10%);
border: 1px solid darken(@gray, 15%);
margin: 50px auto;
@tilomitra
tilomitra / gist:4179224
Created November 30, 2012 22:43
YUI Weekly Nov 30
@tilomitra
tilomitra / gist:4437637
Last active December 10, 2015 12:58
standard table
<table class="yui3-table">
<thead>
<tr>
<th>#</th>
<th>Make</th>
<th>Model</th>
<th>Year</th>
</tr>
</thead>
<tbody>