4 |
http://www.crudebyte.com |
http://www.crudebyte.com |
5 |
*/ |
*/ |
6 |
|
|
7 |
|
var g_isTouch = false; |
8 |
|
|
9 |
function crdWindowHeight() { |
function crdWindowHeight() { |
10 |
return window.innerHeight || |
return window.innerHeight || |
11 |
document.documentElement.clientHeight || |
document.documentElement.clientHeight || |
62 |
|
|
63 |
function crdDetectFeatures() { |
function crdDetectFeatures() { |
64 |
if ('ontouchstart' in document.documentElement) { |
if ('ontouchstart' in document.documentElement) { |
65 |
|
g_isTouch = true; |
66 |
document.documentElement.className += ' touch'; |
document.documentElement.className += ' touch'; |
67 |
} else { |
} else { |
68 |
|
g_isTouch = false; |
69 |
document.documentElement.className += ' no-touch'; |
document.documentElement.className += ' no-touch'; |
70 |
} |
} |
71 |
if ($.support["transform"]) { |
if ($.support["transform"]) { |
80 |
$(function() { |
$(function() { |
81 |
crdDetectFeatures(); |
crdDetectFeatures(); |
82 |
$(document).tooltip(); |
$(document).tooltip(); |
83 |
|
if (g_isTouch) { |
84 |
|
$("header a[title]" ).tooltip({ |
85 |
|
disabled: true |
86 |
|
}); |
87 |
|
} |
88 |
$("article img[caption]").each(function() { |
$("article img[caption]").each(function() { |
89 |
$(this).after( |
$(this).after( |
90 |
"<div class='imgcptn'>" + |
"<div class='imgcptn'>" + |