(added 3 new links to story: applied design, measurement, labnotes generator) |
(mobile detection test) |
||
Line 180: | Line 180: | ||
$("#page-switch-next").attr("href", $story[$index + 1]); | $("#page-switch-next").attr("href", $story[$index + 1]); | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
hideNavbars(); | hideNavbars(); | ||
Line 218: | Line 199: | ||
} else { | } else { | ||
$("#page-arrow-top").css("display", "block"); | $("#page-arrow-top").css("display", "block"); | ||
+ | } | ||
+ | |||
+ | if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) { | ||
+ | $(".test").html("mobile"); | ||
+ | } else { | ||
+ | $(".test").html("not mobile"); | ||
} | } | ||
}); | }); |
Revision as of 14:08, 28 October 2017