Skip to content

Instantly share code, notes, and snippets.

@galaxy001
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galaxy001/a2865d0824ccd8d13533 to your computer and use it in GitHub Desktop.
Save galaxy001/a2865d0824ccd8d13533 to your computer and use it in GitHub Desktop.
for test only

!TOC

h1

h2

@galaxy001
Copy link
Author

<iframe src="http://tianyi.jp/etc/youtube/glimmer.html" width="690" height="480" frameborder="0" allowfullscreen=""> </iframe>

var lyrics = [
    0,  "「Glimmer」", 
    2000,   "",
    2100,   "魂は逃れられない運命の束縛に囚われ",
    2420,   "",
    2440,   "四散した空虚な瞳は冷酷と隔たりを作り上げた",
    2740,   "",
    2760,   "時代は一体誰が仕掛けた因果によって動いているのだろうか",
    3040,   "",
    6940,   "希望を紡ぎだしてゆく",
    7450,   "",
    ,
    1000000,    "",
];

var getStatus=function(){
    var current_time=player.getCurrentTime()*100+offset;

    if(current_time < lyrics[lyrics_count*2]) {
        lyrics_count=0;
    }
    while(current_time > lyrics[lyrics_count*2+2] && lyrics_count<lyrics_count_end) {
        lyrics_count++;
    }
    $("#status").html(lyrics[lyrics_count*2+1]);
    //$("#time").html(Math.round(current_time));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment