-
-

+
+
-
\ No newline at end of file
+ // MutationObserver 持續監聽,防止外部 JS 重複加上 style
+ var targetUl = document.querySelector('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list');
+ if(targetUl){
+ var observer = new MutationObserver(function(mutations){
+ mutations.forEach(function(mutation){
+ if(mutation.type === 'attributes' && mutation.attributeName === 'style'){
+ clearNavTabsFilterStyle_{{subpart-id}}();
+ }
+ });
+ });
+ observer.observe(targetUl, { attributes: true, subtree: true, attributeFilter: ['style'] });
+ }
+ return;
+ }
+ if($(window).width()>1024){
+ reorganize_{{subpart-id}}(4);
+ num=3;
+ }else if($(window).width()>576){
+ reorganize_{{subpart-id}}(2);
+ num=2;
+ }else{
+ reorganize_{{subpart-id}}(1);
+ num=1;
+ }
+ })
+
diff --git a/modules/announcement/_annc_widget5.html.erb b/modules/announcement/_annc_widget5.html.erb
index c0da6bc..8ecca3e 100644
--- a/modules/announcement/_annc_widget5.html.erb
+++ b/modules/announcement/_annc_widget5.html.erb
@@ -23,6 +23,8 @@
{{title}}
{{subtitle}}
+
{{orbithashtags}}
+ {{widget_tags}}