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 %> - +