admin commited on
Commit
782fc4a
·
1 Parent(s): cadab89

add ignore

Browse files
Files changed (4) hide show
  1. .gitignore +1 -0
  2. css/musicvision.css +0 -1
  3. index.html +0 -2
  4. js/player.js +3 -4
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ test.*
css/musicvision.css CHANGED
@@ -23,7 +23,6 @@ table {
23
 
24
  body {
25
  background-color: black;
26
- /* background-color: #232639; */
27
  margin: 0 !important;
28
  }
29
 
 
23
 
24
  body {
25
  background-color: black;
 
26
  margin: 0 !important;
27
  }
28
 
index.html CHANGED
@@ -9,7 +9,6 @@
9
  </head>
10
 
11
  <body>
12
-
13
  <div id="upl" class="first">
14
  <table border="0" width="100%">
15
  <tr>
@@ -38,7 +37,6 @@
38
  </tr>
39
  </table>
40
  </div>
41
-
42
  <div class="bg"></div>
43
  <canvas id="wrap"></canvas>
44
  </body>
 
9
  </head>
10
 
11
  <body>
 
12
  <div id="upl" class="first">
13
  <table border="0" width="100%">
14
  <tr>
 
37
  </tr>
38
  </table>
39
  </div>
 
40
  <div class="bg"></div>
41
  <canvas id="wrap"></canvas>
42
  </body>
js/player.js CHANGED
@@ -56,8 +56,7 @@ window.onload = function () {
56
  $('#bgFile').change(function () {
57
  if (this.files.length <= 0) return;
58
  if (this.files[0].size > 5242880) {
59
- console.log('File size larger than 5M');
60
- alert('Too large!');
61
  return;
62
  }
63
  let file = this.files[0];
@@ -82,11 +81,11 @@ window.onload = function () {
82
  $('#tip').text('Start decoding')
83
  let timer = setInterval(function () {
84
  count++;
85
- $('#tip').text('In decoding, already used ' + count + ' s')
86
  }, 1000)
87
  audioContext.decodeAudioData(e.target.result, function (buffer) {
88
  clearInterval(timer)
89
- $('#tip').text('Decoded successfully, total time: ' + count + ' s');
90
  let audioBufferSourceNode = audioContext.createBufferSource();
91
  let analyser = audioContext.createAnalyser();
92
  audioBufferSourceNode.connect(analyser);
 
56
  $('#bgFile').change(function () {
57
  if (this.files.length <= 0) return;
58
  if (this.files[0].size > 5242880) {
59
+ alert('File size larger than 5M');
 
60
  return;
61
  }
62
  let file = this.files[0];
 
81
  $('#tip').text('Start decoding')
82
  let timer = setInterval(function () {
83
  count++;
84
+ $('#tip').text('In decoding, already used ' + count + 's')
85
  }, 1000)
86
  audioContext.decodeAudioData(e.target.result, function (buffer) {
87
  clearInterval(timer)
88
+ $('#tip').text('Decoded successfully, total time ' + count + 's');
89
  let audioBufferSourceNode = audioContext.createBufferSource();
90
  let analyser = audioContext.createAnalyser();
91
  audioBufferSourceNode.connect(analyser);