This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '2.23.0' into geotrek_UX_dev_mid_2018
- Loading branch information
Showing
21 changed files
with
133 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="medias detail-content-medias" ng-if="result.properties.videos[0]"> | ||
<h3>Media</h3> | ||
<ul class="medias-liste"> | ||
<li ng-repeat="media in result.properties.videos track by $index" | ||
class="detail-media media" | ||
ng-class="{video: media.backend === 'Youtube' || media.backend === 'Vimeo', audio: media.backend === 'SoundCloud'}"> | ||
<a href class="detail-media-link primary-hover-c" ng-click="openPlayer(media)" title="{{::media.legend}}"> | ||
<i ng-if="media.backend === 'Youtube' || media.backend === 'Vimeo'" class="fa fa-file-video-o"></i> | ||
<i ng-if="media.backend === 'SoundCloud'" class="fa fa-file-audio-o"></i> | ||
<span>{{::media.legend}}</span> | ||
</a> | ||
</li> | ||
<li ng-repeat="file in result.properties.files track by $index" class="detail-media media file"> | ||
<a href="{{::file.url}}" title="{{::file.legend}}" class="detail-media-link primary-hover-c"> | ||
<i class="fa fa-file-o"></i> {{::file.legend}} | ||
</a> | ||
</li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use strict'; | ||
|
||
function MediaController(media, $scope, $timeout, $modalInstance) { | ||
|
||
function initPlayer() { | ||
var player = document.createElement('iframe'); | ||
player.width = '100%'; | ||
player.height = '100%'; | ||
player.frameborder = '0'; | ||
player.setAttribute('allowfullscreen', ''); | ||
player.setAttribute('webkitallowfullscreen', ''); | ||
player.setAttribute('mozallowfullscreen', ''); | ||
player.src = media.url; | ||
document.querySelector('#media-player').appendChild(player); | ||
|
||
} | ||
|
||
$scope.close = function close () { | ||
$modalInstance.dismiss('close'); | ||
}; | ||
|
||
$timeout(initPlayer, 500); | ||
|
||
} | ||
|
||
module.exports = { | ||
MediaController: MediaController | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
function mediaPlayer() { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: true, | ||
template: require('./templates/media-modal.html'), | ||
controller: 'MediaController' | ||
}; | ||
} | ||
|
||
module.exports = { | ||
mediaPlayer: mediaPlayer | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
angular.module('rando.media', []) | ||
.controller('MediaController', require('./controllers').MediaController) | ||
.directive('mediaPlayer', require('./directives').mediaPlayer); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#media-player { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.medias-liste { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="modal-close-button" ng-click="close()"> | ||
<i class="fa fa-times"></i> | ||
</div> | ||
<div id="media-player"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters