<commit_before>angular.module('Fablab').directive('fablabCalendar', function () {
	return {
		restrict: 'EA',
		scope: {
			ngModel: '='
		},
		templateUrl: 'lib/directives/calendar/calendar.html',
		controller: function ($scope) {

			var date = new Date();
			var d = date.getDate();
			var m = date.getMonth();
			var y = date.getFullYear();

			/* event source that pulls from google.com */
			$scope.dataSourceGoogleAgenda = {
				url: "https://www.google.com/calendar/feeds/nulu08ntleed9c5peukoeaifl8%40group.calendar.google.com/public/basic",
				className: 'gcal-event',
				currentTimezone: 'Europe/Zurich',
				color: '#B2E0FF',
				textColor: 'black'
			};

			$scope.dataSourceReservation = {
				events: $scope.ngModel,
				color: '#FFEBCC',
				textColor: 'black'
			};

			var eventRender = function (event, element) {
				element.on('click', function (e) {
					alert('coucou');
					e.preventDefault();
				});
			};<commit_msg>Ajout de l'url du calendrier et des couleur d'affichage dans le fichier de propriété<commit_after>angular.module('Fablab').directive('fablabCalendar', function () {
	return {
		restrict: 'EA',
		scope: {
			ngModel: '='
		},
		templateUrl: 'lib/directives/calendar/calendar.html',
		controller: function ($scope) {

			var date = new Date();
			var d = date.getDate();
			var m = date.getMonth();
			var y = date.getFullYear();

			/* event source that pulls from google.com */
			$scope.dataSourceGoogleAgenda = {
				url: App.CONFIG.GOOGLE_CALENDAR_URL,
				className: 'gcal-event',
				currentTimezone: 'Europe/Zurich',
				color: App.CONFI.CALENDAR_AGENDA_COLOR,
				textColor: 'black'
			};

			$scope.dataSourceReservation = {
				events: $scope.ngModel,
				color: App.CONFIG.CALENDAR_RESERVATION_COLOR,
				textColor: 'black'
			};

			var eventRender = function (event, element) {
				element.on('click', function (e) {
					alert('coucou');
					e.preventDefault();
				});
			};
{'fraction_non_alphanumeric': 0.15098241985522234, 'fraction_numerical': 0.004653567735263702, 'mean_word_length': 3.438073394495413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4115634', 'n_tokens_mistral': 805, 'n_tokens_neox': 660, 'n_words': 131}