We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0d7b9 commit d2bc56dCopy full SHA for d2bc56d
index.html
@@ -109,9 +109,20 @@
109
}
110
</script>
111
<script type="text/javascript">
112
- $(document).ready(function() {
113
- doSearch();
114
- });
+ document.addEventListener("DOMContentLoaded", () => {
+ const script = document.createElement("script");
+ script.src = "js/activity.js";
115
+ script.onload = () => {
116
+ if (typeof Activity !== "undefined") {
117
+ const activityInstance = new Activity();
118
+ if (typeof activityInstance.doSearch === "function") {
119
+ activityInstance.doSearch();
120
+ }
121
122
+ };
123
+ document.body.appendChild(script);
124
+ });
125
126
127
</head>
128
0 commit comments