Changeset 20656


Ignore:
Timestamp:
2011/03/15 22:51:53 (10 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20110315115854-q35ywgm2xkdhufev
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/Smarty/templates/sphone/frontparts/bloc/news.tpl 19798@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fdata%2FSmarty%2Ftemplates%2Fsphone%2Ffrontparts%2Fbloc%2Fnews.tpl
html/user_data/packages/sphone/css/top.css 19839@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fhtml%2Fuser_data%2Fpackages%2Fsphone%2Fcss%2Ftop.css
html/user_data/packages/sphone/js/category.js 19839@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fhtml%2Fuser_data%2Fpackages%2Fsphone%2Fjs%2Fcategory.js
html/user_data/packages/sphone/js/news.js 19839@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fhtml%2Fuser_data%2Fpackages%2Fsphone%2Fjs%2Fnews.js
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110315135150-uimkasj4fsipbmnz
bzr:revno:
3376
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/Smarty/templates/sphone/frontparts/bloc/news.tpl ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
html/user_data/packages/sphone/css/top.css ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
html/user_data/packages/sphone/js/category.js ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
html/user_data/packages/sphone/js/news.js ohkouchi@loop-az.jp-20110315135121-a6ull38qzi6drqhq
bzr:timestamp:
2011-03-15 22:51:50.190999985 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-03-15T13:51:50.191000Z
Message:

#1128 (スマートフォンで、新着情報にリンクがある場合リンクが押せない)

  • jQuery を使用するよう修正
Location:
branches/version-2_5-dev
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/sphone/frontparts/bloc/news.tpl

    r20462 r20656  
    2828 
    2929<!--{section name=data loop=$arrNews max=3}--> 
    30 <div class="anews"> 
    31 <span><!--{$arrNews[data].news_date_disp|date_format:"%m.%d"}--></span>&nbsp; 
    32 <!--{if $arrNews[data].news_url}--><a href="<!--{$arrNews[data].news_url|h}-->"><!--{/if}--> 
    33 <!--{$arrNews[data].news_title|h}--> 
    34 <!--{if $arrNews[data].news_url}--></a><!--{/if}--> 
    35 </div> 
     30    <div class="anews"> 
     31        <span><!--{$arrNews[data].news_date_disp|date_format:"%m.%d"}--></span>&nbsp; 
     32        <!--{if $arrNews[data].news_url}--><a href="<!--{$arrNews[data].news_url|h}-->"><!--{/if}--><!--{$arrNews[data].news_title|h}--><!--{if $arrNews[data].news_url}--></a><!--{/if}--> 
     33    </div> 
    3634<!--{/section}--> 
    3735 
     
    3937</div> 
    4038 
    41 <script type="text/javascript" language="JavaScript"> 
    42 //<![CDATA[ 
    43 initNews(); //カテゴリーリストの初期化 
    44 //]]> 
    45 </script> 
    4639<!--{/if}--> 
    4740 
  • branches/version-2_5-dev/html/user_data/packages/sphone/css/top.css

    r20614 r20656  
    22 
    33/* ヘッダー 
    4 ----------------------------------------------- */ 
     4   ----------------------------------------------- */ 
    55#topbox { 
    6 position: relative; 
    7 width: 106.8%; 
    8 margin-left: -3.4%; 
    9 background-color: #333333; 
     6    position: relative; 
     7    width: 106.8%; 
     8    margin-left: -3.4%; 
     9    background-color: #333333; 
    1010} 
    1111 
    1212/* ヘッダーロゴ 
    13 ------------------------------------------------ */ 
     13   ------------------------------------------------ */ 
    1414#header { 
    1515    background-color: #ffffff; 
     
    1818} 
    1919#header h1 { 
    20 margin: 0; 
     20    margin: 0; 
    2121} 
    2222#header h1 a { 
     
    3333 
    3434/* 検索バー 
    35 ----------------------------------------------- */ 
     35   ----------------------------------------------- */ 
    3636#searchbar { 
    37 border-top: 1px solid #5c5c5c; 
    38 border-bottom: 1px solid #000000; 
    39 background-color: #333333; 
    40 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#333333), to(#5C5C5C), color-stop(0.6,#2E2E2E)); 
    41 width: 100%; 
     37    border-top: 1px solid #5c5c5c; 
     38    border-bottom: 1px solid #000000; 
     39    background-color: #333333; 
     40    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#333333), to(#5C5C5C), color-stop(0.6,#2E2E2E)); 
     41    width: 100%; 
    4242} 
    4343 
    4444/* メンバーメニュー 
    45 ----------------------------------------------- */ 
     45   ----------------------------------------------- */ 
    4646#block-login { 
    4747    display: block; 
    48 font-size: 100%; 
     48    font-size: 100%; 
    4949    margin: 10px auto; 
    5050    width: 301px; 
     
    5252 
    5353/* ニュース 
    54 ----------------------------------------------- */ 
     54   ----------------------------------------------- */ 
    5555#block-news{ 
    56 position: relative; 
    57 width: 106.8%; 
    58 margin-left: -3.4%; 
    59 //padding: 10px 0px; 
    60 height: 1.8em; 
    61 background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(#7A7A7A), to(#CCCCCC), color-stop(.07,#FFFFFF),color-stop(.9,#FFFFFF)); 
    62 overflow: hidden; 
     56    position: relative; 
     57    width: 106.8%; 
     58    margin-left: -3.4%; 
     59    height: 1.8em; 
     60    background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(#7A7A7A), to(#CCCCCC), color-stop(.07,#FFFFFF),color-stop(.9,#FFFFFF)); 
    6361} 
    6462.anews{ 
    65 color: #666666; 
    66 font: /*bold*/ 90% Helvetica; 
    67 /*text-shadow: 1px 1px 2px rgba(0,0,0,0.3);*/ 
    68 margin: 0.3em 10px; 
    69 /*opacity: 0; 
    70 -webkit-transition: all 1.0s ease-in-out;*/ 
    71 position: absolute; 
     63    color: #666666; 
     64    font: 90% Helvetica; 
     65    margin: 0.3em 10px; 
    7266} 
    73 .anews.view{ 
    74 opacity: 1.0; 
    75 left: 0; 
    76 width: 100%; 
    77 overflow: hidden; 
    78 white-space: nowrap;  
    79 text-overflow: ellipsis; 
    80 } 
    81 .anews.right{ 
    82 opacity: 0; 
    83 left: 2em; 
    84 } 
  • branches/version-2_5-dev/html/user_data/packages/sphone/js/category.js

    r20116 r20656  
    99        tgt.style.height = "auto"; 
    1010        tgt.style.paddingTop = "0.25em"; 
    11         tgt.style.lineHeight = "1em" 
     11        tgt.style.lineHeight = "1em"; 
    1212        tgt.style.opacity = 1.0; 
    1313    } 
  • branches/version-2_5-dev/html/user_data/packages/sphone/js/news.js

    r20116 r20656  
    1 var newsText = new Array(); 
    2 var newsCnt = 0; 
    3 /*------------------------------------------ 
    4 @Šî–{ŠÖ”(”z—ñ‚ÌŽŸ‚̃JƒEƒ“ƒg‚𓾂éj 
    5 ------------------------------------------*/ 
    6 function getNext(ary, cnt) { 
    7     if(++cnt >= ary.length) 
    8         return 0; 
    9     else 
    10         return cnt; 
    11 } 
    12 /*------------------------------------------ 
    13 @Šî–{ŠÖ”(”z—ñ‚ÌŽŸ‚̃JƒEƒ“ƒg‚𓾂éj 
    14 ------------------------------------------*/ 
    15 function nextNews(){ 
    16     newsText[newsCnt].className = "anews"; 
    17     newsCnt = getNext(newsText, newsCnt); 
    18     newsText[getNext(newsText, newsCnt)].className = "anews right"; 
    19     newsText[newsCnt].className = "anews view"; 
    20 } 
     1$(function() { 
     2      $('.anews').each(function(i) { 
     3                           $(this).addClass('news-' + i).hide(); 
     4                       }); 
     5      $('.news-0').fadeIn('slow'); 
     6      var count = 1; 
     7      var interval = 5000; 
     8      var timer = setInterval(function() { 
     9                                  $('.anews').hide(); 
     10                                  $('.news-' + count).fadeIn('slow'); 
     11                                  count++; 
     12                                  if (count > $('.anews').size() -1) { 
     13                                      count = 0; 
     14                                  } 
     15                              }, interval); 
    2116 
    22 function initNews(){ 
    23     newsText = document.getElementsByClassName('anews'); 
    24     newsid = setInterval("nextNews()", 10000); 
    25     newsText[getNext(newsText, newsCnt)].className = "anews right"; 
    26     newsText[newsCnt].className = "anews view"; 
    27 } 
     17  }); 
Note: See TracChangeset for help on using the changeset viewer.