「Widget:Schedule」の版間の差分
編集テスト(HHVM導入) |
編集の要約なし |
||
| (同じ利用者による、間の2版が非表示) | |||
| 107行目: | 107行目: | ||
|コンテンツのURL||http://www.akb48.co.jp/modal/detail_schedule.php?sid=29853&ts=1444485601 | |コンテンツのURL||http://www.akb48.co.jp/modal/detail_schedule.php?sid=29853&ts=1444485601 | ||
|- | |- | ||
! items[]. | ! items[].category | ||
|コンテンツのタグ ||テレビ | |コンテンツのタグ ||テレビ | ||
|- | |- | ||
| 126行目: | 126行目: | ||
<!--{if (isset($group))}--> | <!--{if (isset($group))}--> | ||
<script> | <script> | ||
$.getJSON("http://48ch.net/api/schedule/?group=<!--{$ | $.getJSON("http://48ch.net/api/schedule/?group=<!--{$group|escape:'htmlall'}-->&callback=?", function(data) { | ||
$.each(data, function( | $.each(data.items, function(items,item) { | ||
$('#view_<!--{$group|escape:'htmlall'}-->').append('<li><span style="background:'+item.color+';" class="bgcolor">'+item. | $('#view_<!--{$group|escape:'htmlall'}-->').append('<li><span style="background:'+item.color+';" class="bgcolor">'+item.category+'</span> <a href="'+item.url+'">'+item.title+'</a></li>'); | ||
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
<ul style="list-style:none;" id="view_<!--{$group|escape:'htmlall'}-->"></ul> | <ul style="list-style:none;" id="view_<!--{$group|escape:'htmlall'}-->"></ul> | ||
<!--{/if}--> | <!--{/if}--> | ||
</includeonly> | </includeonly> | ||