Customizations for NKUT

This commit is contained in:
saurabhbhatia 2013-11-20 18:15:57 +08:00
parent 35ce0fda6e
commit c93dceafde
10 changed files with 29 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 KiB

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 KiB

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -179,6 +179,7 @@ div[data-role="page"] {
}
.content .orbit-cycle-slideshow {
height: 300px;
overflow: hidden;
}
.content .orbit-cycle-slideshow img {
width: 100%;
@ -325,13 +326,22 @@ div[id^="dialog"] .content {
margin-bottom: 5px;
}
@media(min-width:320px){
.content .orbit-cycle-slideshow {
height: 130px;
}
}
@media(min-width: 480px){
.content .orbit-cycle-slideshow {
height: 170px;
}
.content .newitem {
width: 440px;
}
}
@media(min-width:600px) {
.content .orbit-cycle-slideshow {
height: 200px;
}
.main-menu ul {
width: 420px;
}
@ -340,6 +350,9 @@ div[id^="dialog"] .content {
}
}
@media(min-width:768px) {
.content .orbit-cycle-slideshow {
height: 250px;
}
.main-menu ul {
width: 480px;
}
@ -351,6 +364,9 @@ div[id^="dialog"] .content {
}
}
@media(min-width:800px) {
.content .orbit-cycle-slideshow {
height: 330px;
}
.main-menu ul {
width: 480px;
}
@ -359,6 +375,9 @@ div[id^="dialog"] .content {
}
}
@media(min-width:961px) {
.content .orbit-cycle-slideshow {
height: 380px;
}
.main-menu ul {
width: 480px;
}

View File

@ -2,6 +2,7 @@ class PagesController < ApplicationController
include ApplicationHelper
before_filter :get_item, :only => [:index_from_link, :show_from_link]
before_filter :check_frontend_open, :only => [:index,:show]
before_filter :get_last_update_date, :only => [:index,:show]
# caches_page :index
def index
@ -216,4 +217,8 @@ class PagesController < ApplicationController
return false
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

View File

@ -41,5 +41,6 @@
}
</style>
<% end %>
<div id='last_update_date_wrap' style='display:none;'><div id='last_update_date'><%= @last_update_date %></div></div>
</body>
</html>

View File

@ -3,9 +3,7 @@
<% end %>
<ul>
<li>總機電話:<a href="tel:+886229393091">02-29393091</a></li>
<li>傳真02-29379611</li>
<li>緊急重大事件通聯窗口:校內分機 66119、66110</li>
<li>總值日室:<a href="tel:+88229387132">02-29387132</a></li>
<li>駐警衛室:<a href="tel:+88229387129">02-29387129</a></li>
<li>電話:<a href="tel:+886492563489">0492563489</a></li>
<li>傳真0492568302</li>
<li>地址南投縣草屯鎮中正路568號</li>
</ul>

View File

@ -5,6 +5,6 @@
<div id='map_canvas'></div>
<script type='text/javascript'>
var $map_center = "24.987449, 121.576117"
var $map_center = "23.979724,120.696806"
var $map_zoom = 17
</script>