Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Nguyen Quan quannh02

🏠
Working from home
Block or report user

Report or block quannh02

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View quan.js
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,
You can’t perform that action at this time.