1
2
3
4
5
6
|
/
/57
*57
<link
rel
=
"apple-touch-icon"
href
=
"http://wlog.cn/html/"
/custom
_icon
.png
"/>
<link rel="apple
-touch
-icon
" href="touch
-icon
-iphone
.png
" />
<link rel="apple
-touch
-icon
" sizes="72x72
" href="touch
-icon
-ipad
.png
" />
<link rel="apple
-touch
-icon
" sizes="114x114
" href="touch
-icon
-iphone4
.png
" />
<link rel="apple
-touch
-icon
" sizes="144x144
" href="touch
-icon
-ipad
-retina
.png"
/>
|
1
2
3
4
5
6
7
8
9
10
11
12
|
<!!-- iPhone SPLASHSCREEN-->
<!link href="http://wlog.cn/html/"apple-touch-startup-image-320x460.png" media="(device-width: 320px)" rel="apple-touch-startup-image" />
<!!-- iPhone (Retina) SPLASHSCREEN-->
<!link href="apple-touch-startup-image-640x920.png" media="(device-width: 320px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<!!-- iPad (portrait) SPLASHSCREEN-->
<!link href="apple-touch-startup-image-768x1004.png" media="(device-width: 768px) and (orientation: portrait)" rel="apple-touch-startup-image" />
<!!-- iPad (landscape) SPLASHSCREEN-->
<!link href="apple-touch-startup-image-748x1024.png" media="(device-width: 768px) and (orientation: landscape)" rel="apple-touch-startup-image" />
<!!-- iPad (Retina, portrait) SPLASHSCREEN-->
<!link href="apple-touch-startup-image-1536x2008.png" media="(device-width: 1536px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<!!-- iPad (Retina, landscape) SPLASHSCREEN-->
<link
href
=
"apple-touch-startup-image-1496x2048.png"
media
=
"(device-width: 1536px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)"
rel
=
"apple-touch-startup-image"
/>
|
1
|
<meta
name
=
"apple-mobile-web-app-capable"
content
=
"yes"
/>
|
1
|
<meta
name
=
"apple-mobile-web-app-status-bar-style"
content
=
"black"
/>
|
1
|
<meta
name
=
"viewport"
content
=
"user-scalable=no, width=device-width"
/>
|
1
2
3
4
5
6
7
8
9
|
<script>
function
BlockMove
(
event
)
{
//Tell Safari not to move the window.
event
.
preventDefault
(
)
;
}
</script>
<
body
ontouchmove
=
"BlockMove(event);"
>
.
.
.
<
/
body
>
|
1
2
3
4
5
6
7
|
//Detect whether device supports orientationchange event, otherwise fall back to
//the resize event.
var
supportsOrientationChange
=
"onorientationchange"
in
window
,
orientationEvent
=
supportsOrientationChange
?
"orientationchange"
:
"resize"
;
window
.
addEventListener
(
orientationEvent
,
function
(
)
{
alert
(
'HOLY ROTATING SCREENS BATMAN:'
+
window
.
orientation
+
" "
+
screen
.
width
)
;
}
,
false
)
;
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Mobile Safari in standalone mode
if
(
(
"standalone"
in
window
.
navigator
)
&&
window
.
navigator
.
standalone
)
{
// If you want to prevent remote links in standalone web apps opening Mobile Safari, change 'remotes' to true
var
noddy
,
remotes
=
false
;
document
.
addEventListener
(
'click'
,
function
(
event
)
{
noddy
=
event
.
target
;
//Bubble up until we hit link or top HTML element. Warning: BODY element is not compulsory so better to stop on HTML
while
(
noddy
.
nodeName
!==
"A"
&&
noddy
.
nodeName
!==
"HTML"
)
{
noddy
=
noddy
.
parentNode
;
}
if
(
'href'
in
noddy
&&
noddy
.
href
.
indexOf
(
'http'
)
!==
-
1
&&
(
noddy
.
href
.
indexOf
(
document
.
location
.
host
)
!==
-
1
||
remotes
)
)
{
event
.
preventDefault
(
)
;
document
.
location
.
href
=
noddy
.
href
;
}
}
,
false
)
;
}
|
1
|
<meta
name
="format-detection"
content
="telephone=no"
/>
|
1
|
-webkit-text-size-adjust
:
none
;
|
1
|
-webkit-user-select
:
none
;
|
1
|
-webkit-touch-calloutt
:
none
;
|
1
|
<input
type
=
"text"x
-webkit
-speech
/>
|
1
2
3
|
<input
type
=
"file"
accept
=
"image/*; capture=camera"
/>
<input
type
=
"file"
accept
=
"video/*; capture=camcorder"
/>
<input
type
=
"file"
accept
=
"audio/*; capture=microphone"
/>
|
1
2
3
|
<a
href
=
"http://wlog.cn/html/"sms
:18888886666
,18888885555″
]
]
>
發送短信給多我的 的連接
<a
href
=
"sms:18888886666?body=sms txt"
]
]
>
發送短信附帶內容 的連接
<a
href
="tel
:18888886666″
]
]
>
Call us at 18888886666
</a]]>撥打電話的連接
|