Updated.(2022/08/21)
This commit is contained in:
parent
07f8450132
commit
cf3acd4f15
|
@ -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 = $("<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"]'));
|
||||
$('.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);
|
||||
}
|
||||
|
|
|
@ -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%;
|
||||
}
|
||||
|
|
|
@ -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%;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<%= render_orbit_bar %>
|
||||
<!-- <div class="background" data-pp="100"></div> -->
|
||||
<%= 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="layout-content topcontent">
|
||||
<a id="accesskey_content" accesskey="C" href="/<%= "#{locale.to_s}" %>/accesskey" title="Content">:::</a>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<h3 class="w-event_news__widget-title">
|
||||
<span>{{widget-title}}</span>
|
||||
</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">
|
||||
<div class="w-event_news__img-wrap bullseye">
|
||||
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<h3 class="w-event_news__widget-title">
|
||||
<span>{{widget-title}}</span>
|
||||
</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">
|
||||
<div class="w-event_news__img-wrap bullseye">
|
||||
<img class="w-event_news__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||
|
|
Loading…
Reference in New Issue