var thecurrentlist = document.getElementById("sns20170311sa1558thecurrentlist")
var thecurrentlistarray = thecurrentlist.innerHTML.split(" ")
var thecurrentlisttype = thecurrentlistarray[0]
thecurrentlistarray.shift()
var thecurrentpattern = thecurrentlistarray.join(" ")
var thislist = document.getElementById("sns20170311sa1558" + thecurrentlisttype)
var thislistarray = thislist.innerHTML.split("<br />")
var thischart = document.getElementById("sns20170311sa1558this" + thecurrentlisttype)
var thischartnumber = parseInt(thischart.innerHTML)
for (var i = thischartnumber + 1; i < thislistarray.length; i = i + 1) {
var thischartrecord = thislistarray[i]
var thischartrecordarray = thischartrecord.split(" ")
thischartrecordarray.shift()
var thischartpattern = thischartrecordarray.join(" ")
if (thischartpattern === thecurrentpattern) {
thischart.innerHTML = i
i = thislistarray.length}}
getachart()}
function previous() {
var thecurrentlist = document.getElementById("sns20170311sa1558thecurrentlist")
var thecurrentlistarray = thecurrentlist.innerHTML.split(" ")
var thecurrentlisttype = thecurrentlistarray[0]
var thecurrentlist = document.getElementById("sns20170311sa1558thecurrentlist")
var thecurrentlistarray = thecurrentlist.innerHTML.split(" ")
var thecurrentlisttype = thecurrentlistarray[0]
thecurrentlistarray.shift()
var thecurrentpattern = thecurrentlistarray.join(" ")
var thislist = document.getElementById("sns20170311sa1558" + thecurrentlisttype)
var thislistarray = thislist.innerHTML.split("<br />")
var thischart = document.getElementById("sns20170311sa1558this" + thecurrentlisttype)
var thischartnumber = parseInt(thischart.innerHTML)
for (var i = thischartnumber - 1; i > -1; i = i - 1) {
var thischartrecord = thislistarray[i]
var thischartrecordarray = thischartrecord.split(" ")
thischartrecordarray.shift()
var thischartpattern = thischartrecordarray.join(" ")
if (thischartpattern === thecurrentpattern) {
thischart.innerHTML = i
i = thislistarray.length}}
getachart()}
No comments:
Post a Comment