Commit cdf2d06c by doszhang

dos

parent 2d86dd79
......@@ -167,6 +167,8 @@ let colorbarLeft;
let clickDecorate = false;
//记录用户是否同意实现flag建议
let agreeSuggestion = false;
//同意按钮闪烁timer
let agreeTimer;
//记录初始状态下fontsize
const fontSize = parseFloat($('html').css('fontSize'));
......@@ -175,6 +177,7 @@ const fontSize = parseFloat($('html').css('fontSize'));
let flagTemplate = $('.flag-page .flag-frame').find('.flag-block').clone();
$('.flag-frame').html('').addClass('clearfix');
//自定义flag的placeholder
$('input[name=customize-flag]').attr('placeholder', '也能在这里写你的flag哦');
//署名的placeholder
......@@ -293,7 +296,8 @@ function agreeSuggest() {
function checkAgree() {
if (!agreeSuggestion) {
$('.agree-wrap').addClass('animate');
setTimeout(function () {
clearTimeout(agreeTimer);
agreeTimer = setTimeout(function () {
$('.agree-wrap').removeClass('animate');
}, 3000);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment