Debian Codegraph @

dojox/mobile/uacss.js

raw symbols SCIP
1 define([
2 "dojo/_base/kernel",
3 "dojo/_base/lang",
4 "dojo/_base/window",
5 "./sniff"
6 ], function(dojo, lang, win, has){
7 var html = win.doc.documentElement;
8 html.className = lang.trim(html.className + " " + [
9 has('bb') ? "dj_bb" : "",
10 has('android') ? "dj_android" : "",
11 has("ios") ? "dj_ios" : "",
12 has("ios") >= 6 ? "dj_ios6" : "",
13 has("ios") ? "dj_iphone" : "", // TODO: remove for 2.0
14 has('ipod') ? "dj_ipod" : "",
15 has('ipad') ? "dj_ipad" : "",
16 has('ie') ? "dj_ie": ""
17 ].join(" ").replace(/ +/g," "));
18
19 /*=====
20 return {
21 // summary:
22 // Requiring this module adds CSS classes to your document's `<html`> tag:
23 //
24 // - "dj_android" when running on Android;
25 // - "dj_bb" when running on BlackBerry;
26 // - "dj_ios" when running on iOS (iPhone, iPad or iPod);
27 // - "dj_ios6" when running on iOS6+; this class is intended for the iphone theme to detect if it must use the iOS 6 variant of the theme. Currently applies on iOS 6 or later.
28 // - "dj_iphone" when running on iPhone, iPad or iPod (Note: will be changed in future versions to be set only on iPhone);
29 // - "dj_ipod" when running on iPod;
30 // - "dj_ipad" when running on iPad.
31 };
32 =====*/
33 return dojo;
34 });