From cf3acd4f158fd8269a7ec45359a8c84d0bf1872c Mon Sep 17 00:00:00 2001 From: rulingcom Date: Sun, 21 Aug 2022 17:54:49 +0800 Subject: [PATCH] Updated.(2022/08/21) --- assets/javascripts/app.js | 15 +++++++++++++-- assets/stylesheets/template/layout/content.scss | 8 ++++---- assets/stylesheets/template/template.scss | 2 +- home/index.html.erb | 2 +- .../event_news_mod/_event_news_widget0.5.html.erb | 2 +- .../_event_news_widget0.5_new.html.erb | 2 +- 6 files changed, 21 insertions(+), 10 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index d420016..65e6923 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -1,6 +1,16 @@ ;(function($, win, undefined) { // ECMAScript 5 嚴格模式 'use strict'; + $.fn.extend({ + replaceTagName: function(new_tagname){ + if(!this.length) + return {}; + var outerHTML = this.prop('outerHTML'); + var new_tagname = new_tagname.toLowerCase(); + var new_html = '<' + new_tagname + outerHTML.slice(3, -3) + new_tagname + '>'; + this.replaceWith(new_html); + } + }); function initdata1 () { if ($('.header-banner').html().trim() == "") { $('.downIcon').css('display','none') @@ -822,6 +832,7 @@ function transdate(){ } }) var title_wrapper = $("
") + $('h4.page-module-title').replaceTagName('h3'); title_wrapper.append($('.view_count.pull-right,.page-module-title,#main-content .index-title,.i-member-status-title:eq(0),#main-content > * > [class*="-title"]')); $('.row.pagerow').prepend(title_wrapper); try { @@ -854,10 +865,10 @@ function transdate(){ }else{ theTop = 5; } - console.log(theTop); + // console.log(theTop); $("html, body").animate({ scrollTop: theTop }, {duration: 400,easing: "swing",complete: function(){ - console.log('finish'); + // console.log('finish'); if(!stop){ move_to_target(true); } diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 177fdde..0d6e597 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -1,4 +1,4 @@ -@charset "utf-8"; +@charset "utf-8"; @import "../initial"; body{ @@ -454,9 +454,9 @@ body{ float: left; } @media (min-width: 480px){ - display: flex; - flex-wrap: wrap; - flex-direction: row-reverse; + //display: flex; + //flex-wrap: wrap; + //flex-direction: row-reverse; li{ width: 25%; } diff --git a/assets/stylesheets/template/template.scss b/assets/stylesheets/template/template.scss index 8ac1ea2..38cc511 100644 --- a/assets/stylesheets/template/template.scss +++ b/assets/stylesheets/template/template.scss @@ -209,7 +209,7 @@ ul.tab_nav { word-break: keep-all; } h3.page-module-title { - text-align: left; + //text-align: left; } .title-wraper{ width: 100%; diff --git a/home/index.html.erb b/home/index.html.erb index 2792709..44b2864 100644 --- a/home/index.html.erb +++ b/home/index.html.erb @@ -8,7 +8,7 @@ <%= render_orbit_bar %> <%= render_header %> -
移動至目標位置
+
移動到第一個區塊
/accesskey" title="Content">::: diff --git a/modules/event_news_mod/_event_news_widget0.5.html.erb b/modules/event_news_mod/_event_news_widget0.5.html.erb index 96867ca..49ad32c 100644 --- a/modules/event_news_mod/_event_news_widget0.5.html.erb +++ b/modules/event_news_mod/_event_news_widget0.5.html.erb @@ -2,7 +2,7 @@

{{widget-title}}

-
    +
    • {{img_description}} diff --git a/modules/event_news_mod/_event_news_widget0.5_new.html.erb b/modules/event_news_mod/_event_news_widget0.5_new.html.erb index eba7fe3..35b0202 100644 --- a/modules/event_news_mod/_event_news_widget0.5_new.html.erb +++ b/modules/event_news_mod/_event_news_widget0.5_new.html.erb @@ -2,7 +2,7 @@

      {{widget-title}}

      -
        +
        • {{img_description}}