Updated.(2022/08/21)

This commit is contained in:
rulingcom 2022-08-21 17:54:49 +08:00
parent 07f8450132
commit cf3acd4f15
6 changed files with 21 additions and 10 deletions

View File

@ -1,6 +1,16 @@
;(function($, win, undefined) { ;(function($, win, undefined) {
// ECMAScript 5 嚴格模式 // ECMAScript 5 嚴格模式
'use strict'; '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 () { function initdata1 () {
if ($('.header-banner').html().trim() == "") { if ($('.header-banner').html().trim() == "") {
$('.downIcon').css('display','none') $('.downIcon').css('display','none')
@ -822,6 +832,7 @@ function transdate(){
} }
}) })
var title_wrapper = $("<div class=\"title-wraper col-sm-12\"></div>") var title_wrapper = $("<div class=\"title-wraper col-sm-12\"></div>")
$('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"]')); 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); $('.row.pagerow').prepend(title_wrapper);
try { try {
@ -854,10 +865,10 @@ function transdate(){
}else{ }else{
theTop = 5; theTop = 5;
} }
console.log(theTop); // console.log(theTop);
$("html, body").animate({ $("html, body").animate({
scrollTop: theTop }, {duration: 400,easing: "swing",complete: function(){ scrollTop: theTop }, {duration: 400,easing: "swing",complete: function(){
console.log('finish'); // console.log('finish');
if(!stop){ if(!stop){
move_to_target(true); move_to_target(true);
} }

View File

@ -1,4 +1,4 @@
@charset "utf-8"; @charset "utf-8";
@import "../initial"; @import "../initial";
body{ body{
@ -454,9 +454,9 @@ body{
float: left; float: left;
} }
@media (min-width: 480px){ @media (min-width: 480px){
display: flex; //display: flex;
flex-wrap: wrap; //flex-wrap: wrap;
flex-direction: row-reverse; //flex-direction: row-reverse;
li{ li{
width: 25%; width: 25%;
} }

View File

@ -209,7 +209,7 @@ ul.tab_nav {
word-break: keep-all; word-break: keep-all;
} }
h3.page-module-title { h3.page-module-title {
text-align: left; //text-align: left;
} }
.title-wraper{ .title-wraper{
width: 100%; width: 100%;

View File

@ -8,7 +8,7 @@
<%= render_orbit_bar %> <%= render_orbit_bar %>
<!-- <div class="background" data-pp="100"></div> --> <!-- <div class="background" data-pp="100"></div> -->
<%= render_header %> <%= render_header %>
<div class="downIcon" ><a href="#onesection" title="目標"><span><img style="display: none;" src="/assets/down.svg" title="移動至目標位置" alt="移動至目標位置"></span></a></div> <div class="downIcon" ><a href="#onesection" title="移動到第一個區塊"><span><img style="display: none;" src="/assets/down.svg" title="移動到第一個區塊" alt="移動到第一個區塊"></span></a></div>
<div class="bigcontent"> <div class="bigcontent">
<div class="layout-content topcontent"> <div class="layout-content topcontent">
<a id="accesskey_content" accesskey="C" href="/<%= "#{locale.to_s}" %>/accesskey" title="Content">:::</a> <a id="accesskey_content" accesskey="C" href="/<%= "#{locale.to_s}" %>/accesskey" title="Content">:::</a>

View File

@ -2,7 +2,7 @@
<h3 class="w-event_news__widget-title"> <h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news"> <ul class="w-event_news__list" data-level="0" data-list="event_news" data-reverse="true">
<li class="w-event_news__item"> <li class="w-event_news__item">
<div class="w-event_news__img-wrap bullseye"> <div class="w-event_news__img-wrap bullseye">
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}"> <img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">

View File

@ -2,7 +2,7 @@
<h3 class="w-event_news__widget-title"> <h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-event_news__list" data-level="0" data-list="event_news"> <ul class="w-event_news__list" data-level="0" data-list="event_news" data-reverse="true">
<li class="w-event_news__item"> <li class="w-event_news__item">
<div class="w-event_news__img-wrap bullseye"> <div class="w-event_news__img-wrap bullseye">
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}"> <img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">