Skip to content
Snippets Groups Projects
Select Git revision
  • 9612c7b4df28c8c5c13317c10ccd3a09ccbf8c8a
  • master default
  • clement
  • fix_requirements
  • new_signup
  • interface_admin
  • hamza
  • dev
  • test
  • melissa
  • context_sheet
  • sorties_new
  • Seon82-patch-2
  • export_bdd
  • refactor/participation-user-link
15 results

views.py

Blame
  • app.js 7.70 KiB
    (function (angular) {
      "use strict";
    
      var translations = {
      	"en": {
      		"info_title_1": "How to stay connected ?",
          "info_title_2": "What is Betskills ?",
          "info_title_3": "How to use Betskills ?",
          "who_we_are_1": "Betskills aims at combining mathematics and statistical analysis with sport. Our team has developed a powerful algorithm which analyses data from previous games. We are currently focused on Football and Tennis.",
          "who_we_are_2": "Regarding football, we provide 6 major European championships per week but also Champions League, a selection of Europa League games and some « exotic » championships or international major tournaments (World Cup, Euro…) during summer.",
          "who_we_are_3": "For Tennis, we provide Grand Slams and all the ATP Masters 1000.",
          "who_we_are_4": "Our statistics are updated up to 24 hours after the last game.",
          "who_we_are_5": "A dozen of parameters are taken into account to proceed our calculations regarding soccer’s outcomes as home/away forms, goals scored/conceded, possession, free kicks... For tennis, we analyse data such as 1st/2nd serve %, winning forehands and backhands, surface, winning returns…",
          "how_to_use_1": "We will never provide any winner or draw for any games. Our job is mainly focused on giving tips to our users on the possible game’s outcomes.",
          "how_to_use_2": "In order to increase your chances of winning, we advise our users to favour « draw no bet » and double chance ( the 2 highest percentages). Also, we do not suggest you to make combinations of multiple games.",
          "how_to_use_3": "When a 2 green ticks are displayed, it means that our prediction was accurate (the final score matches with the highest percentage.",
          "how_to_use_4": "When a orange tick is displayed, it means that our prediction was accurate in double chance (the final score matches with the 2 highest percentages).",
          "how_to_use_5": "When a red cross is displayed, it means the final score matches with the lowest percentage.",
          "facebook_link": "https://facebook.com/betskillsuk",
          "twitter_link": "https://twitter.com/betskills",
          "instagram_link": "https://instagram.com/betskills",
          "daily_predictions": "Daily Predictions",
          "all_predictions": "All the predictions",
          "unlock": "Unlock",
          "predictions": "Predictions",
          "games": "Game(s)"
      	},
      	"fr": {
      		"info_title_1": "Comment resté connecté ?",
          "info_title_2": "Qui sommes-nous ?",
          "info_title_3": "Comment utiliser Betskills ?",
          "who_we_are_1": "Betskills a pour vocation d’allier les mathématiques et l’analyse statistique au sport. Nous avons développé un algorithme mathématique complexe qui analyse les données des dernières rencontres sportives. Notre activité se concentre principalement aujourd’hui sur le football ainsi que le tennis.",
          "who_we_are_2": "Pour le football, nous proposons, chaque week-end et au minimum, 6 championnats majeurs Européens. Mais également l’intégralité de la Ligue des champions, une sélection en Europa League ainsi que certains championnats « exotiques » ou des compétitions internationales majeures (Coupe du monde, Euro…) pendant l’été.",
          "who_we_are_3": "Pour le Tennis, nous couvrons l’ensemble des grands chelems ainsi que les ATP masters 1000.",
          "who_we_are_4": "Nos statistiques sont mises à jours au maximum 24h après la dernière rencontre du championnat ou de la journée.",
          "who_we_are_5": "Notre algorithme prend en compte une douzaine de paramètres pour le football (comme la forme domicile/exterieur, les buts marqués, les buts encaissés, la possession, les coups de pied arrêtés…) et l’ensemble des paramètres disponibles pour le tennis (% de service 1ere et 2eme balles, coups droits gagnants, revers gagnants, la surface, % de retours gagnants…).",
          "how_to_use_1": "Nous ne communiquons jamais sur le possible vainqueur d’une rencontre. Nous nous efforçons cependant de conseiller et d’éclairer au maximum nos utilisateurs sur le possible dénouement d’un match. Notre activité s’oriente sur du conseil et de la prédiction plutôt que sur du pronostique.",
          "how_to_use_2": "Nous conseillons à l’ensemble de nos utilisateurs de privilégier le « draw no bet » ou la double chance qui consiste à prendre en compte les 2 pourcentages les plus élevés (1 ou N, 2 ou N ou 1 et 1 ou 2). Nous déconseillons également de combiner un trop grand nombre de matchs.",
          "how_to_use_3": "Lorsque qu’une rencontre est marquée de 2 ticks verts, cela signifie que notre prédiction est validée (le score finale concorde avec le pourcentage le plus élevé).",
          "how_to_use_4": "Lorsqu’une rencontre est marquée d’un tick orange, cela signifie que notre prédiction est validée en double chance (le score finale concorde avec le 2ème pourcentage le plus élevé).",
          "how_to_use_5": "Lorsqu’une rencontre est marquée d’une croix rouge, cela signifie que le score concorde avec le pourcentage le plus faible.",
          "facebook_link": "https://facebook.com/betskillsfrance",
          "twitter_link": "https://twitter.com/betskills_fr",
          "instagram_link": "https://instagram.com/betskills_fr",
          "daily_predictions": "Prédictions gratuites",
          "all_predictions": "Toutes les prédictions",
          "unlock": "Dévérouiller",
          "predictions": "Prédictions",
          "games": "Match(s)"
      	}
      };
    
      /**
       * @ngInject
       */
      function setupRun($ionicPlatform, NotificationService) {
        $ionicPlatform.ready(function () {
    
          // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
          // for form inputs)
          if (window.cordova && window.cordova.plugins.Keyboard) {
            cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
          }
          if (window.StatusBar) {
            // org.apache.cordova.statusbar required
            StatusBar.styleDefault();
          }
        });
    
        ionic.Platform.ready(function () {
          NotificationService.registerDevice();
        });
      }
    
      function nativeScrolling($ionicConfigProvider) {
        $ionicConfigProvider.scrolling.jsScrolling(false);
      }
    
      /**
       * @ngInject
       */
      function setupRoutes($urlRouterProvider) {
        $urlRouterProvider.otherwise('/tabs/football');
      }
    
      /**
       * @ngInject
       */
      function setupCaching($ionicConfigProvider) {
        $ionicConfigProvider.views.maxCache(0);
      }
    
      angular.module(
        'starter',
        [
          'ionic',
          'templatescache',
          'ngCordova',
          'Config',
          'pascalprecht.translate',
          'ionicImgCache'
        ])
        .run(setupRun)
        .config(setupRoutes)
        .config(function(ionicImgCacheProvider) {
          // Enable imgCache debugging.
          ionicImgCacheProvider.debug(true);
    
          // Set storage size quota to 100 MB.
          ionicImgCacheProvider.quota(100);
        })
        .config(function($ionicConfigProvider, $stateProvider,
        $urlRouterProvider, $translateProvider) {
          $ionicConfigProvider.views.maxCache(5);
          $ionicConfigProvider.tabs.style('standard');
          $ionicConfigProvider.tabs.position('bottom');
          Object.keys(translations).forEach(function (key) {
        		$translateProvider.translations(key, translations[key]);
        	});
          var locale = window.navigator.language.split('-')[0];
          if (locale !== 'fr' && locale !== 'en') {
            locale = 'en';
          }
          $translateProvider.use(locale);
          $translateProvider.useSanitizeValueStrategy('escape');
    
        })
        .config(setupCaching)
        .config(nativeScrolling)
        .config(function ($httpProvider) {
          $httpProvider.defaults.headers.common = {};
          $httpProvider.defaults.headers.post = {};
          $httpProvider.defaults.headers.put = {};
          $httpProvider.defaults.headers.patch = {};
        });
    
    })(angular);