「Widget:Schedule」の版間の差分
ナビゲーションに移動
検索に移動
編集の要約なし |
編集の要約なし |
||
| 3行目: | 3行目: | ||
<script> | <script> | ||
$(function(){ | $(function(){ | ||
var geturl = "http://48ch.net/api/schedule/?group=<!--{$group | var geturl = "http://48ch.net/api/schedule/?group=<!--{$group}-->&callback=?"; | ||
$.getJSON(geturl, function(data) { | $.getJSON(geturl, function(data) { | ||
$.each(data, function(date, item) { | $.each(data, function(date, item) { | ||
$('#view_<!--{$group | $('#view_<!--{$group}-->').append('<li><span style="background:'+item.color+';" class="bgcolor">'+item.tag+'</span> <a href="'+item.url+'">'+item.title+'</a></li>'); | ||
}); | }); | ||
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
<ul style="list-style:none;" id="view_<!--{$group | <ul style="list-style:none;" id="view_<!--{$group}-->"></ul> | ||
<!--{/if}--> | <!--{/if}--> | ||
</includeonly> | </includeonly> | ||