Customizations for NKUT
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 301 KiB |
Before Width: | Height: | Size: 319 KiB After Width: | Height: | Size: 348 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 15 KiB |
|
@ -179,6 +179,7 @@ div[data-role="page"] {
|
||||||
}
|
}
|
||||||
.content .orbit-cycle-slideshow {
|
.content .orbit-cycle-slideshow {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.content .orbit-cycle-slideshow img {
|
.content .orbit-cycle-slideshow img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -325,13 +326,22 @@ div[id^="dialog"] .content {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
@media(min-width:320px){
|
@media(min-width:320px){
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 130px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media(min-width: 480px){
|
@media(min-width: 480px){
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 170px;
|
||||||
|
}
|
||||||
.content .newitem {
|
.content .newitem {
|
||||||
width: 440px;
|
width: 440px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:600px) {
|
@media(min-width:600px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 420px;
|
width: 420px;
|
||||||
}
|
}
|
||||||
|
@ -340,6 +350,9 @@ div[id^="dialog"] .content {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:768px) {
|
@media(min-width:768px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 250px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
}
|
}
|
||||||
|
@ -351,6 +364,9 @@ div[id^="dialog"] .content {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:800px) {
|
@media(min-width:800px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 330px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
}
|
}
|
||||||
|
@ -359,6 +375,9 @@ div[id^="dialog"] .content {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:961px) {
|
@media(min-width:961px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 380px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ class PagesController < ApplicationController
|
||||||
include ApplicationHelper
|
include ApplicationHelper
|
||||||
before_filter :get_item, :only => [:index_from_link, :show_from_link]
|
before_filter :get_item, :only => [:index_from_link, :show_from_link]
|
||||||
before_filter :check_frontend_open, :only => [:index,:show]
|
before_filter :check_frontend_open, :only => [:index,:show]
|
||||||
|
before_filter :get_last_update_date, :only => [:index,:show]
|
||||||
# caches_page :index
|
# caches_page :index
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
@ -216,4 +217,8 @@ class PagesController < ApplicationController
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def get_last_update_date
|
||||||
|
@last_update_date = t(:total_visitors)+' : '+ Impression.count.to_s+' | '+t(:update_at)+' : '+Bulletin.order_by(:updated_at.desc).limit(1).first[:updated_at].to_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,5 +41,6 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<div id='last_update_date_wrap' style='display:none;'><div id='last_update_date'><%= @last_update_date %></div></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -3,9 +3,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>總機電話:<a href="tel:+886229393091">02-29393091</a></li>
|
<li>電話:<a href="tel:+886492563489">0492563489</a></li>
|
||||||
<li>傳真:02-29379611</li>
|
<li>傳真:0492568302</li>
|
||||||
<li>緊急重大事件通聯窗口:校內分機 66119、66110</li>
|
<li>地址:南投縣草屯鎮中正路568號</li>
|
||||||
<li>總值日室:<a href="tel:+88229387132">02-29387132</a></li>
|
|
||||||
<li>駐警衛室:<a href="tel:+88229387129">02-29387129</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
<div id='map_canvas'></div>
|
<div id='map_canvas'></div>
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
var $map_center = "24.987449, 121.576117"
|
var $map_center = "23.979724,120.696806"
|
||||||
var $map_zoom = 17
|
var $map_zoom = 17
|
||||||
</script>
|
</script>
|