audio start, pause

<audio src="mp3/180307112410.mp3" controls></audio>

<input type="button" value="start" onClick="start()">
<input type="button" value="pause" onClick="pause()">
<script>
var v = document.getElementsByTagName("audio")[0];
 
function start(){
    v.play();
}
function pause(){
    v.pause();
}
</script>

toGMTString()
インターネットグリニッジ標準時 (GMT) 協定に基づき、与えられた日付を表す

<script>
var today = new Date();
var str = today.toGMTString();

document.write(str);
</script>

Wed, 07 Mar 2018 11:23:29 GMT

fontをboldにする

<p id="list1">Catcher In The Light</p>
<!-- <p id="list2">About You</p>
<p id="list3">GAME</p> -->
<input type="button" value="ボタン" onclick="changeFontWeight('list1');">

<script>
function changeFontWeight(idname){
	var obj = document.getElementById(idname);
	if(obj.style.fontWeight == "bold"){
		obj.style.fontWeight = "normal";
	} else {
		obj.style.fontWeight = "bold";
	}
}
</script>