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
var re = /(\[([A-G])\])/g; | |
var str = "[ar: Sam Smith]\n[ti: I'm Not The Only One]\n[length: 03:58]\n[00:00.76]gsgasdgasgdasgsgs[B]きって行くぞ(青春 All right [C]青春 Oh"; | |
var str_convert = str.replace(re, '<span class="hopam">$1</span>'); | |
//alert(str_convert); | |
var ap5 = new APlayer({ | |
element: document.getElementById('player5'), | |
narrow: false, | |
autoplay: false, | |
showlrc: 1, | |
mutex: true, |