Skip to content

Instantly share code, notes, and snippets.

@zxzl
zxzl / pick.js
Created July 23, 2018 10:09
12 pick
// http://gall.dcinside.com/mgallery/board/view/?id=pebble&no=2256406&page=1&search_pos=&s_type=search_all&s_keyword=%EC%95%84%EC%9D%B4%EB%8F%8C+%ED%94%BD%ED%95%98%EA%B8%B0
var idolList = ["강혜원","김나영","김도아",
"손은채","야부키 나코","이하은",
"치바 에리이","혼다 히토미","이와타테 사호",
"장원영","한초원","미야와키 사쿠라"]
$(".tranieeList .name a").each(function(i,idoldom){
if( idolList.includes( $(idoldom).text() ) )
$(idoldom).closest("li").find(".vote_select").click();
})
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Map vs Iteration</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>