Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
调整二维码位置,先关闭已打开弹窗再弹出新的弹窗。
  • Loading branch information
likky authored May 4, 2017
1 parent 9708a7c commit 71284af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ $(document).ready(function() {
str = base64encode($(this).attr('data-params'));
}
str = $(this).attr('data-type') + '://' + str;
layer.closeAll();
layer.open({
type: 1,
title: $(this).attr('data-title'),
Expand All @@ -100,7 +101,7 @@ $(document).ready(function() {
closeBtn: 1,
shift: 2,
shadeClose: true,
content: '<img style="position: relative; left: 600px; width: 100%; height: 100%;" src="http://pan.baidu.com/share/qrcode?w=300&h=300&url=' + str + '"/><div style="position: relative; overflow: auto; text-align: center; margin-bottom: 10px; font-size: 12px;">请使用 Shadowsocks 客户端进行扫描</div>'
content: '<img style="position: relative; left: 600px; width: 100%; height: 100%;" src="http://pan.baidu.com/share/qrcode?w=300&h=300&url=' + str + '"/><div style="position: relative; left: 600px; overflow: auto; text-align: center; margin-bottom: 50px; font-size: 12px;">请使用 Shadowsocks 客户端进行扫描</div>'
});
});
});
Expand Down

0 comments on commit 71284af

Please sign in to comment.