From 6d1b893d263b33e12ff4dfdb21281ae1824e5852 Mon Sep 17 00:00:00 2001 From: Hwa Date: Tue, 14 Sep 2021 15:16:31 +0800 Subject: [PATCH] fix: trigger the script when document is ready --- css/popup.css | 2 +- js/script.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/popup.css b/css/popup.css index f0d2e9c..10e1887 100644 --- a/css/popup.css +++ b/css/popup.css @@ -1,7 +1,7 @@ body { margin: 0; padding: 0; - background-image: linear-gradient(315deg, #48c6ef 0%, #6f86d6 75%); + background-image: linear-gradient(315deg, #6f85d6ea 0%, #6f86d6 45%); } header { diff --git a/js/script.js b/js/script.js index fd0055a..3240cd3 100644 --- a/js/script.js +++ b/js/script.js @@ -19,7 +19,7 @@ $.ajaxSetup({ /** * 触发查询按钮click事件,获取全部成绩 */ -(function fetchScores() { +$(function fetchScores() { $('#searchForm .chosen-select').first().val(''); $('#searchForm .chosen-select').last().val(''); $('.chosen-single span').text('全部'); @@ -32,7 +32,7 @@ $.ajaxSetup({ $('select.ui-pg-selbox').val(150); $('#search_go').trigger('click'); -})(); +}); $(document).ajaxComplete(customDynamicUI);