Saturday, February 18, 2017

current

<span id="thedatabase">
<span class="pattern">
<span class="record">http://elite.finviz.com/publish/021717/AACccdl17550583.png</span>
<span class="label">ascending caterpillar, in caterpillar, on shrub, from descending caterpillar, dangling from twig, at cliff bottom</span>
</span>
<span class="pattern">
<span class="record">http://elite.finviz.com/publish/021717/ABIOccdl18004545.png</span>
<span class="label">descending caterpillar, in diamond, dangling from shrub, out of shrub, at the bottom of a slope</span>
</span>
<span class="pattern">
<span class="record">http://elite.finviz.com/publish/021717/ACHNccdl18022872.png</span>
<span class="label">pearl, in dipping rising caterpillar, in caterpillar, at the bottom of a cliff</span>
</span>
<span class="pattern">
<span class="record">http://elite.finviz.com/publish/021717/ACURccdl18095668.png</span>
<span class="label">short descending caterpillar, on a pole, out of a descending caterpillar, at the bottom of a descending caterpillar</span>
</span>
</span>


function listthefirstpatterntypes() {
var thedatabase = document.querySelector("#thedatabase .pattern")
for (var i = 0; i < thedatabase.length; i = i + 1) {
var

not working

<span id="thedatabase">http://elite.finviz.com/publish/021717/AACccdl17550583.png*label*ascending caterpillar, in caterpillar, on shrub, from descending caterpillar, dangling from twig, at cliff bottom*pattern*http://elite.finviz.com/publish/021717/ABIOccdl18004545.png*label*descending caterpillar, in diamond, dangling from shrub, out of shrub, at the bottom of a slope*pattern*http://elite.finviz.com/publish/021717/ACHNccdl18022872.png*label*pearl, in dipping rising caterpillar, in caterpillar, at the bottom of a cliff*pattern*http://elite.finviz.com/publish/021717/ACURccdl18095668.png*label*short descending caterpillar, on a pole, out of a descending caterpillar, at the bottom of a descending caterpillar*pattern*http://elite.finviz.com/publish/021717/ADAPccdl18564952.png*label*mountain, in short descending caterpillar, in caterpillar, on tussock, at the bottom of a mountain, at the bottom of a caterpillar cliff, from a ledge*pattern*http://elite.finviz.com/publish/021717/ADATccdl19004344.png*label*two green soldiers pearl, in heel and toe cliff, out of flag, in caterpillar*pattern*http://elite.finviz.com/publish/021717/ADHDccdl19045575.png*label*mountain, in ascending caterpillar, dangling from a sprout, out of a long bracket, at the bottom of a cliff, out of a ledge, at the bottom of a cliff*pattern*http://elite.finviz.com/publish/021717/ADKccdl19085146.png*label*mountain, in caterpillar, at the bottom of a dome, in a descending caterpillar*pattern*http://elite.finviz.com/publish/021717/ADMPccdl19137252.png*label*figurehead, in a canyon bottom boat*pattern*http://elite.finviz.com/publish/021717/ADPTccdl19151252.png*label*pick, in descending caterpillar canyon bottom, at the bottom of a cliff, off of a slope*pattern*http://elite.finviz.com/publish/021717/ADVMccdl19219533.png*label*mountain, just under a super giant wedge</span>

function listthefirstpatterntypes() {
var thelabels = ""
var thedatabase = document.getElementById("thedatabase").split("*pattern*")
for (var i = 0; i < thedatabase.length; i = i + 1) {
var therecord = thedatabase[i].split("*label*")
var theurl = therecord[0]; var thelabel = therecord[1].split(",")
var firstlabel = thelabel[0]
if (isthelabelonthelist(firstlabel) === "no") {
if (thelabels != "") {thelabels = thelabels + ","}
thelabels = thelabels + firstlabel}} return thelabels}
if (i < thedatabase.length - 1) { thelabels

No comments:

Post a Comment