banner width變為100%

This commit is contained in:
wayne 2023-05-25 15:07:55 +08:00
parent fb18a7e6f1
commit d8436eacbd
9 changed files with 32 additions and 44 deletions

View File

@ -88,7 +88,7 @@
<td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="2" <?php if ($this->_var['portal']['block'] & 2): ?>checked<?php endif; ?>></td> <td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="2" <?php if ($this->_var['portal']['block'] & 2): ?>checked<?php endif; ?>></td>
<td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="4" <?php if ($this->_var['portal']['block'] & 4): ?>checked<?php endif; ?>></td> <td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="4" <?php if ($this->_var['portal']['block'] & 4): ?>checked<?php endif; ?>></td>
<td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="8" <?php if ($this->_var['portal']['block'] & 8): ?>checked<?php endif; ?>></td> <td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="8" <?php if ($this->_var['portal']['block'] & 8): ?>checked<?php endif; ?>></td>
<td><input name="expire[<?php echo $this->_var['portal']['id']; ?>]" type="text" id="expire_<?php echo $this->_var['portal']['id']; ?>" size="15" value='<?php echo $this->_var['portal']['dstamp']; ?>' readonly="readonly" /><input name="selbtn<?php echo $this->_var['portal']['id']; ?>" type="button" id="selbtn<?php echo $this->_var['portal']['id']; ?>" onclick="return showCalendar('expire_<?php echo $this->_var['portal']['id']; ?>', '%Y-%m-%d', false, false, 'selbtn<?php echo $this->_var['portal']['id']; ?>');" value="<?php echo $this->_var['lang']['btn_select']; ?>" class="button"/></td> <td><input name="expire[<?php echo $this->_var['portal']['id']; ?>]" type="text" id="expire_<?php echo $this->_var['portal']['id']; ?>" size="15" value='<?php echo $this->_var['portal']['dstamp']; ?>' /></td>
</tr> </tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table> </table>

View File

@ -18,7 +18,7 @@
</th> </th>
<th><a href="javascript:listTable.sort('cname'); ">名稱</a><?php echo $this->_var['sort_cname']; ?></th> <th><a href="javascript:listTable.sort('cname'); ">名稱</a><?php echo $this->_var['sort_cname']; ?></th>
<th><a href="javascript:listTable.sort('is_on_sale'); ">是否上架</a><?php echo $this->_var['sort_is_on_sale']; ?></th> <th><a href="javascript:listTable.sort('is_on_sale'); ">是否上架</a><?php echo $this->_var['sort_is_on_sale']; ?></th>
<!-- <th><a href="javascript:listTable.sort('sort_order'); "><?php echo $this->_var['lang']['sort_order']; ?></a><?php echo $this->_var['sort_sort_order']; ?></th>--> <th><a href="javascript:listTable.sort('sort_order'); "><?php echo $this->_var['lang']['sort_order']; ?></a><?php echo $this->_var['sort_sort_order']; ?></th>
<th><?php echo $this->_var['lang']['handler']; ?></th> <th><?php echo $this->_var['lang']['handler']; ?></th>
<tr> <tr>
<?php $_from = $this->_var['room_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'room');if (count($_from)): <?php $_from = $this->_var['room_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'room');if (count($_from)):
@ -28,7 +28,7 @@
<td>&nbsp;<?php echo $this->_var['room']['id']; ?></td> <td>&nbsp;<?php echo $this->_var['room']['id']; ?></td>
<td class="first-cell"><?php echo htmlspecialchars($this->_var['room']['name']); ?></td> <td class="first-cell"><?php echo htmlspecialchars($this->_var['room']['name']); ?></td>
<td align="center"><img src="images/<?php if ($this->_var['room']['enable']): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_enable', <?php echo $this->_var['room']['id']; ?>)" /></td> <td align="center"><img src="images/<?php if ($this->_var['room']['enable']): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_enable', <?php echo $this->_var['room']['id']; ?>)" /></td>
<!-- <td align="center"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['room']['id']; ?>)"><?php echo $this->_var['room']['sort_order']; ?></span></td>--> <td align="center"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['room']['id']; ?>)"><?php echo $this->_var['room']['sort_order']; ?></span></td>
<td align="center"> <td align="center">
<a href="room.php?act=edit&id=<?php echo $this->_var['room']['id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" width="21" height="21" border="0" /></a> <a href="room.php?act=edit&id=<?php echo $this->_var['room']['id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" width="21" height="21" border="0" /></a>
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['room']['id']; ?>, '確認刪除')" title="刪除"><img src="images/icon_trash.gif" width="21" height="21" border="0" /></a> <a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['room']['id']; ?>, '確認刪除')" title="刪除"><img src="images/icon_trash.gif" width="21" height="21" border="0" /></a>

View File

@ -45,8 +45,12 @@
<a href="mailto:<?php echo $this->_var['web']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['web']['email']; ?>"><i class="fa fa-envelope"></i></a> <a href="mailto:<?php echo $this->_var['web']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['web']['email']; ?>"><i class="fa fa-envelope"></i></a>
<a href="tel:<?php echo $this->_var['web']['tel']; ?>"><i class="fa fa-phone"></i></a> <a href="tel:<?php echo $this->_var['web']['tel']; ?>"><i class="fa fa-phone"></i></a>
<?php if ($this->_var['web']['facebook']): ?>
<a class="fb" href="javascript: void(window.open('<?php echo $this->_var['web']['facebook']; ?>');"><i class="fa fa-facebook"></i></a> <a class="fb" href="javascript: void(window.open('<?php echo $this->_var['web']['facebook']; ?>');"><i class="fa fa-facebook"></i></a>
<?php endif; ?>
<?php if ($this->_var['web']['line']): ?>
<a class="fb" href="javascript: void(window.open('<?php echo $this->_var['web']['line']; ?>');"><i class="fa fa-comment"></i></a>
<?php endif; ?>
</div> </div>

View File

@ -38,7 +38,7 @@
</nav> </nav>
<div class="social"> <div class="social">
<?php if ($this->_var['web']['line']): ?> <?php if ($this->_var['web']['line']): ?>
<a class="fb" href="<?php echo $this->_var['web']['line']; ?>" target="_blank"><i class="fa fa-comment"></i></a> <a class="fb" href="<?php echo $this->_var['web']['line']; ?>" target="_blank"><i class="fa fa-comment"></i></a>
<?php endif; ?> <?php endif; ?>
<a href="#" class="contactLink" data-mail="<?php echo $this->_var['web']['email']; ?>"><i class="fa fa-envelope"></i></a> <a href="#" class="contactLink" data-mail="<?php echo $this->_var['web']['email']; ?>"><i class="fa fa-envelope"></i></a>
<a href="tel:<?php echo $this->_var['web']['tel']; ?>"><i class="fa fa-phone"></i></a> <a href="tel:<?php echo $this->_var['web']['tel']; ?>"><i class="fa fa-phone"></i></a>

View File

@ -18,11 +18,11 @@
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/layout.css"> <link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/layout.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/home.css"> <link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/home.css?v=6">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/fac.css"> <link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/fac.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/video.css"> <link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/video.css?v=9">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/jquery.mb.YTPlayer.min.css"> <link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/jquery.mb.YTPlayer.min.css">
@ -31,7 +31,6 @@
<script src="<?php echo $this->_var['tpl']; ?>js/jquery.mb.YTPlayer.js"></script> <script src="<?php echo $this->_var['tpl']; ?>js/jquery.mb.YTPlayer.js"></script>
<script src="<?php echo $this->_var['tpl']; ?>js/player.js"></script> <script src="<?php echo $this->_var['tpl']; ?>js/player.js"></script>
</head> </head>
<body> <body>
@ -61,27 +60,16 @@
<div class="bannerTopLogo"></div> <div class="bannerTopLogo"></div>
<ul id="banner"> <ul id="banner">
<li> <li>
<img src="<?php echo $this->_var['site']['index_banner']; ?>" alt="banner"> <img src="<?php echo $this->_var['site']['index_banner']; ?>" alt="banner">
<div class="bannerContent"> <div class="bannerContent">
<div class="titleBox"> <div class="titleBox">
<div class="topTitle"><?php echo $this->_var['site']['ename']; ?></div> <div class="topTitle"><?php echo $this->_var['site']['ename']; ?></div>
<div class="bottomTitle"><?php echo $this->_var['site']['cname']; ?></div> <div class="bottomTitle"><?php echo $this->_var['site']['cname']; ?></div>
</div> </div>
<span style="font-size:0.5rem;"><span style="color:#ffffff;">
<span style="font-size:15px;"><span style="color:#ffffff;">
<?php echo $this->_var['site']['slogon']; ?> <?php echo $this->_var['site']['slogon']; ?>
</span></span> </span></span>
<br /> <br />
<div class="pc"> <div class="pc">
@ -98,10 +86,8 @@
</div> </div>
<div class="playerBox" style="background:url('<?php echo $this->_var['site']['index_banner']; ?>'); background-size:cover;"> <div class="playerBox pc" style="background:url('<?php echo $this->_var['site']['index_banner']; ?>'); background-size:cover;">
<div id="bgndVideo" class="player pc" data-property="{videoURL:'<?php echo $this->_var['site']['index_ytb']; ?>',containment:'.playerBox',autoPlay:true, mute:true, startAt:0, opacity:1}">My video</div>
<div id="bgndVideo" class="player" data-property="{videoURL:'<?php echo $this->_var['site']['index_ytb']; ?>',containment:'.playerBox',autoPlay:true, mute:true, startAt:0, opacity:1}">My video</div>
</div> </div>
</li> </li>
@ -148,6 +134,9 @@
<div class="social"> <div class="social">
<?php if ($this->_var['site']['line']): ?>
<a class="fb" href="<?php echo $this->_var['site']['line']; ?>" target="_blank"><i class="fa fa-comment"></i></a>
<?php endif; ?>
<a href="mailto:<?php echo $this->_var['site']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['site']['email']; ?>"><i class="fa fa-envelope"></i></a> <a href="mailto:<?php echo $this->_var['site']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['site']['email']; ?>"><i class="fa fa-envelope"></i></a>
<a href="tel:<?php echo $this->_var['site']['tel']; ?>"><i class="fa fa-phone"></i></a> <a href="tel:<?php echo $this->_var['site']['tel']; ?>"><i class="fa fa-phone"></i></a>

View File

@ -358,7 +358,7 @@
} }
.bannerArea .wrap .bannerBox img { .bannerArea .wrap .bannerBox img {
height: 100vh; height: auto;
-o-object-fit: cover; -o-object-fit: cover;
object-fit: cover; object-fit: cover;
} }
@ -424,8 +424,7 @@
.bannerArea .wrap .bannerContent .titleBox { .bannerArea .wrap .bannerContent .titleBox {
position: relative; position: relative;
height: 100px; margin-bottom: 1rem;
margin-bottom: 50px;
color: #FFF; color: #FFF;
} }
@ -455,10 +454,9 @@
} }
.bannerArea .wrap .bannerContent .titleBox .bottomTitle { .bannerArea .wrap .bannerContent .titleBox .bottomTitle {
font-size: 48px; font-size: 2rem;
font-weight: 400; font-weight: 400;
letter-spacing: 5.28px; letter-spacing: 5.28px;
line-height: 70px;
} }
.bannerArea .wrap .bannerContent .titleBox .bottomTitle span { .bannerArea .wrap .bannerContent .titleBox .bottomTitle span {
@ -1470,7 +1468,8 @@
background-position: center -30vh; background-position: center -30vh;
} }
.bannerArea .wrap .bannerBox img { .bannerArea .wrap .bannerBox img {
height: 70vh; width: 100%;
height: auto;
} }
.newsArea .wrap { .newsArea .wrap {
padding: 85px 15% 0; padding: 85px 15% 0;
@ -1749,7 +1748,7 @@
} }
.bannerArea .wrap .bannerContent .titleBox .bottomTitle { .bannerArea .wrap .bannerContent .titleBox .bottomTitle {
word-break: keep-all; word-break: keep-all;
font-size: 24px; font-size: 1rem;
} }
.bannerArea .wrap .bannerContent .titleBox .bottomTitle span { .bannerArea .wrap .bannerContent .titleBox .bottomTitle span {
font-size: 36px; font-size: 36px;

View File

@ -25,6 +25,7 @@ a {
transition: all 0.4s ease; transition: all 0.4s ease;
} }
.pc{display: block;} .pc{display: block;}
.mo{display: none;} .mo{display: none;}

View File

@ -8,8 +8,6 @@
position:relative; position:relative;
z-index:99;} z-index:99;}
.bannerArea ul li{
min-height:80vh;}
.playerBox{ .playerBox{
width:100%; width:100%;
@ -88,8 +86,6 @@ background: #000;
z-index:5;} z-index:5;}
@media (max-width:480px){ @media (max-width:480px){
.bannerArea ul li{
min-height:320px;}
.bannerArea ul li .Txt .btn{ .bannerArea ul li .Txt .btn{
margin-top:20px;} margin-top:20px;}

View File

@ -18,11 +18,11 @@
<link rel="stylesheet" type="text/css" href="{$tpl}css/layout.css"> <link rel="stylesheet" type="text/css" href="{$tpl}css/layout.css">
<link rel="stylesheet" type="text/css" href="{$tpl}css/home.css"> <link rel="stylesheet" type="text/css" href="{$tpl}css/home.css?v=6">
<link rel="stylesheet" type="text/css" href="{$tpl}css/fac.css"> <link rel="stylesheet" type="text/css" href="{$tpl}css/fac.css">
<link rel="stylesheet" type="text/css" href="{$tpl}css/video.css"> <link rel="stylesheet" type="text/css" href="{$tpl}css/video.css?v=9">
<link rel="stylesheet" type="text/css" href="{$tpl}css/jquery.mb.YTPlayer.min.css"> <link rel="stylesheet" type="text/css" href="{$tpl}css/jquery.mb.YTPlayer.min.css">
@ -31,7 +31,6 @@
<script src="{$tpl}js/jquery.mb.YTPlayer.js"></script> <script src="{$tpl}js/jquery.mb.YTPlayer.js"></script>
<script src="{$tpl}js/player.js"></script> <script src="{$tpl}js/player.js"></script>
</head> </head>
<body> <body>
@ -68,7 +67,7 @@
<div class="topTitle">{$site.ename}</div> <div class="topTitle">{$site.ename}</div>
<div class="bottomTitle">{$site.cname}</div> <div class="bottomTitle">{$site.cname}</div>
</div> </div>
<span style="font-size:15px;"><span style="color:#ffffff;"> <span style="font-size:0.5rem;"><span style="color:#ffffff;">
{$site.slogon} {$site.slogon}
</span></span> </span></span>
<br /> <br />
@ -87,8 +86,8 @@
</div> </div>
<div class="playerBox" style="background:url('{$site.index_banner}'); background-size:cover;"> <div class="playerBox pc" style="background:url('{$site.index_banner}'); background-size:cover;">
<div id="bgndVideo" class="player" data-property="{videoURL:'{$site.index_ytb}',containment:'.playerBox',autoPlay:true, mute:true, startAt:0, opacity:1}">My video</div> <div id="bgndVideo" class="player pc" data-property="{videoURL:'{$site.index_ytb}',containment:'.playerBox',autoPlay:true, mute:true, startAt:0, opacity:1}">My video</div>
</div> </div>
</li> </li>