forked from mrlan/EnglishPal
				
			Enlarge text difficult level for one second (make it work using vanilla JavaScript)
							parent
							
								
									78d9a66e88
								
							
						
					
					
						commit
						43419ab4b6
					
				| 
						 | 
					@ -204,8 +204,9 @@
 | 
				
			||||||
        $('#source').html(today_article['source']);
 | 
					        $('#source').html(today_article['source']);
 | 
				
			||||||
        $('#question').html(today_article["question"]);
 | 
					        $('#question').html(today_article["question"]);
 | 
				
			||||||
        $('#answer').html(today_article["answer"]);
 | 
					        $('#answer').html(today_article["answer"]);
 | 
				
			||||||
        $('#text_level').classList.add('display-5'); // enlarge text difficult level for one second
 | 
					        document.querySelector('#text_level').classList.add('display-5'); // enlarge text difficult level for one second
 | 
				
			||||||
        setTimeOut(() => {$('#text_level').classList.remove('display-5');}, 1000);
 | 
					
 | 
				
			||||||
 | 
					        setTimeout(() => document.querySelector('#text_level').classList.remove('display-5'), 800);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
<!-- 检查是否存在上一篇或下一篇,不存在则对应按钮隐藏-->
 | 
					<!-- 检查是否存在上一篇或下一篇,不存在则对应按钮隐藏-->
 | 
				
			||||||
    function check_pre(visited_articles){
 | 
					    function check_pre(visited_articles){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue