mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-09-10 11:50:28 +08:00
Get warning on index.html to work.
This commit is contained in:
+4
-5
@@ -1,8 +1,7 @@
|
||||
$(function () {
|
||||
'use strict';
|
||||
|
||||
(function() {
|
||||
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
||||
alert('lol');
|
||||
$('#MobileWarning').modal('show');
|
||||
} else {
|
||||
Console.log(navigator.userAgent);
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user