Ignore:
Timestamp:
2011/03/15 22:51:53 (16 years ago)
Author:
nanasess
bzr:base-revision:
[email protected]
bzr:committer:
Kentaro Ohkouchi <[email protected]>
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:

[email protected]
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
[email protected]
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 [email protected]
html/user_data/packages/sphone/css/top.css [email protected]
html/user_data/packages/sphone/js/category.js [email protected]
html/user_data/packages/sphone/js/news.js [email protected]
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/html/user_data/packages/sphone/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.