https://github.com/robflaherty/detect-ios-multitask
https://github.com/robflaherty/detect-ios-multitask
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/robflaherty/detect-ios-multitask
- Owner: robflaherty
- Created: 2015-06-15T20:17:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-15T20:35:30.000Z (about 11 years ago)
- Last Synced: 2025-01-28T02:43:12.397Z (over 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Detect iOS Multitask Mode in Safari
```
detectIOSMultitask(function(data) {
// data.event = 'load', 'enter', or 'exit'
console.log( data['event'], data['width'], data['height'] );
// Example Google Analytics event
ga('send', 'event', 'iOS Multitask', data['event'], data['width'] + 'x' + data['height'], {'nonInteraction': 1});
});
```