7. Internet Explorer 11
Surface Pro 3 Web Browser
User Agent
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0;
Touch; rv:11.0) like Gecko
8. ※ 他のデバイスのUser Agent
iPhone
(SP)
Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_1 like Mac OS X)
AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/
11D201 Safari/9537.53
iPad
(Tablet)
Mozilla/5.0 (iPad; CPU OS 8_1_1 like Mac OS X) AppleWebKit/
600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B435 Safari/
600.1.4
GALAXY S4
(SP)
Mozilla/5.0 (Linux; Android 4.2.2; ja-jp; SC-04E Build/JDQ39)
AppleWebKit/535.19 (KHTML, like Gecko) Version/1.0 Chrome/
18.0.1025.308 Mobile Safari/535.19
Nexus 10
(Tablet)
Mozilla/5.0 (Linux; Android 4.3; Nexus 10 Build/JWR66Y)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.72
Safari/537.36
Windows
Phone
Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/
5.0; IEMobile/9.0)
Surface Pro 3 Web Browser
9. Internet Explorer 11
Surface Pro 3 Web Browser
User Agent
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0;
Touch; rv:11.0) like Gecko
↓ 再度凝視... ↓
10. Internet Explorer 11
Surface Pro 3 Web Browser
Surface Pro 3
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0;
Touch; rv:11.0) like Gecko
PC
(Touchless)
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:
11.0) like Gecko
↓ PC IEと比較... ↓
40. JavaScript - Event 1
Surface Pro 3 (Touch PC) 最適化
// start
TARGET.addEventListener(eventTouch.start, dragStart);
TARGET.addEventListener(eventConf.mouse.start, dragStart); // for Touch PC Chrome
!
// move and end
function setEvent() {
// move
TARGET.addEventListener(eventTouch.move, drag);
TARGET.addEventListener(eventConf.mouse.move, drag); // for Touch PC Chrome
!
// end
TARGET.addEventListener(eventTouch.end, dragEnd);
TARGET.addEventListener(eventConf.mouse.end, dragEnd); // for Touch PC Chrome
}
!
// remove
function removeEvent() {
TARGET.removeEventListener(eventTouch.move, drag);
TARGET.removeEventListener(eventConf.mouse.move, drag); // for Touch PC Chrome
TARGET.removeEventListener(eventTouch.end, dragEnd);
TARGET.removeEventListener(eventConf.mouse.end, dragEnd); // for Touch PC Chrome
}