Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacob Rossi jacobrossi

View GitHub Profile
@jacobrossi
jacobrossi / ie11_wp81u_uastring.txt
Created Aug 4, 2014
IE for Windows Phone 8.1 Update - UserAgent string
View ie11_wp81u_uastring.txt
Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0;) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537
@jacobrossi
jacobrossi / gist:a003bbc2987db506c5fc
Last active Aug 29, 2015
List of Touches - Pointer Events standard
View gist:a003bbc2987db506c5fc
//Code to create a list of touches called pointerList
var pointerList = []; //Array of all the pointers on the screen
window.addEventListener("pointerdown", updatePointer, true);
window.addEventListener("pointermove", updatePointer, true);
window.addEventListener("pointerup", remPointer, true);
window.addEventListener("pointercancel", remPointer, true);
function updatePointer(e) {
if(e.pointerType === "touch") {