Skip to content

Commit 5a3c2a8

Browse files
authored
Update index.html
1 parent 88dad44 commit 5a3c2a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@
1717

1818
</script>
1919

20-
<a href=# onclick="javascript:AddFavorite('测试','http://www.baidu.com')" rel=sidebar>加入收藏</a>
20+
<a href=# onclick="javascript:AddFavorite('阅读文章','javascript:(function(){var arts=$("div.word-item");var totalArtNum=arts.length;var needStudyNum=5;function random(lower,upper){return Math.floor(Math.random()*(upper-lower))+lower}function studyArt(){var index=random(0,totalArtNum-1);$(arts[index]).click()}for(var j=0;j<needStudyNum;j++){setTimeout(studyArt,(j)*3000)}})();
21+
')" rel=sidebar>加入文章收藏</a>
22+
<a href=# onclick="javascript:AddFavorite('学习视频','javascript:(function(){var arts=$("div.word-item");var totalArtNum=arts.length;var needStudyNum=5;function random(lower,upper){return Math.floor(Math.random()*(upper-lower))+lower}function studyArt(){var index=random(0,totalArtNum-1);$(arts[index]).click()}for(var j=0;j<needStudyNum;j++){setTimeout(studyArt,(j)*10000)}})();
23+
')" rel=sidebar>加入视频收藏</a>
24+

0 commit comments

Comments
 (0)