|
|
@@ -12,6 +12,31 @@ app.directive('skrollr', function() {
|
|
|
});
|
|
|
|
|
|
|
|
|
+navigator.sayswho = (function(){
|
|
|
+ var ua= navigator.userAgent, tem,
|
|
|
+ M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
|
|
|
+ if(/trident/i.test(M[1])){
|
|
|
+ tem= /\brv[ :]+(\d+)/g.exec(ua) || [];
|
|
|
+ return 'IE '+(tem[1] || '');
|
|
|
+ }
|
|
|
+ if(M[1]=== 'Chrome'){
|
|
|
+ tem= ua.match(/\b(OPR|Edge)\/(\d+)/);
|
|
|
+ if(tem!== null) return tem.slice(1).join(' ').replace('OPR', 'Opera');
|
|
|
+ }
|
|
|
+ M= M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];
|
|
|
+ if((tem= ua.match(/version\/(\d+)/i))!== null) M.splice(1, 1, tem[1]);
|
|
|
+ return M.join(' ');
|
|
|
+})();
|
|
|
+
|
|
|
+if(navigator.sayswho === 'IE 6' || navigator.sayswho === 'IE 7' || navigator.sayswho === 'IE 8') {
|
|
|
+
|
|
|
+ $(document).ready(function() {
|
|
|
+ $('body').html('<div class="error-navigator">Votre navigateur ' + navigator.sayswho + " n'est pas supporté, vous devez avoir au minimum la version 9.</div>");
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
app.controller('mainController', function($scope, $detection, $http, $mdSidenav, $timeout, $sce, $mdToast) {
|
|
|
$scope.title = "Manche Numerique";
|
|
|
|