main.js 653 B

123456789101112131415161718192021
  1. /**
  2. * Created by intelWorx on 19/11/2015.
  3. */
  4. (function () {
  5. 'use strict';
  6. angular.module('mdWavesurferApp', ['mdWavesurfer'])
  7. .config(function ($mdIconProvider) {
  8. //$mdIconProvider.fontSet('zmdi', 'fontawesome');
  9. })
  10. .controller('MainController', ['$scope',
  11. function ($scope) {
  12. $scope.urls = ["../media/demo.wav", "../panner/media.wav", "../elan/transcripts/001z.mp3"];
  13. $scope.longList = [];
  14. for (var i = 0; i < 100; i++) {
  15. $scope.longList.push({
  16. title: 'Long List test: ' + i,
  17. url: $scope.urls[Math.floor(3 * Math.random())]
  18. });
  19. }
  20. }])
  21. })();