File tree Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change 1
- {% if site .wechat_qr %}
2
- <!-- WeChat Modal -->
1
+ <!-- WeChat Modal -->
3
2
4
- <script >
5
- var wechatModal = document .getElementById (' WeChatMod' );
6
- var wechatBtn = document .querySelectorAll (' [id="WeChatBtn"]' );
3
+ <script >
4
+ var wechatModal = document .getElementById (' WeChatMod' );
5
+ var wechatBtn = document .querySelectorAll (' [id="WeChatBtn"]' );
7
6
8
- for (var i = 0 ; i < wechatBtn .length ; i++ ) {
9
- wechatBtn[i].onclick = function () {
10
- wechatModal .style .display = ' block' ;
11
- };
12
- }
13
-
14
- window .onclick = function (event ) {
15
- if (event .target == wechatModal) {
16
- wechatModal .style .display = ' none' ;
17
- }
7
+ for (var i = 0 ; i < wechatBtn .length ; i++ ) {
8
+ wechatBtn[i].onclick = function () {
9
+ wechatModal .style .display = ' block' ;
18
10
};
19
- </script >
20
- {% endif %}
11
+ }
12
+
13
+ window .onclick = function (event ) {
14
+ if (event .target == wechatModal) {
15
+ wechatModal .style .display = ' none' ;
16
+ }
17
+ };
18
+ </script >
You can’t perform that action at this time.
0 commit comments