「テストページ」の編集履歴(バックアップ)一覧はこちら
「テストページ」(2014/06/17 (火) 01:49:09) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
編集テストページ
&color(red){イベント終了まで:&spanid(deth){}}
#javascript(){{
<script language="JavaScript" type="text/javascript">
<!--
function CountdownTimer(elm,tl,mes){
this.initialize.apply(this,arguments);
}
CountdownTimer.prototype={
initialize:function(elm,tl,mes) {
this.elem = document.getElementById(elm);
this.tl = tl;
this.mes = mes;
},countDown:function(){
var timer='';
var today=new Date();
var day=Math.floor((this.tl-today)/(24*60*60*1000));
var hour=Math.floor(((this.tl-today)%(24*60*60*1000))/(60*60*1000));
var min=Math.floor(((this.tl-today)%(24*60*60*1000))/(60*1000))%60;
var sec=Math.floor(((this.tl-today)%(24*60*60*1000))/1000)%60%60;
var milli=Math.floor(((this.tl-today)%(24*60*60*1000))/10)%100;
var me=this;
var brave=Math.floor(((this.tl-today)%(24*60*60*1000))/(60*60/5*1000));
if( ( this.tl - today ) > 0 ){
if (day) timer += '<span class="day">'+day+'日</span>';
if (hour) timer += '<span class="hour">'+hour+'時間</span>';
timer += '<span class="min">'+this.addZero(min)+'分</span><span class="sec">'+this.addZero(sec)+'秒</span><span class="milli">'+this.addZero(milli)+'</span>'+'('+brave+')';
this.elem.innerHTML = timer;
tid = setTimeout( function(){me.countDown();},10 );
}else{
this.elem.innerHTML = this.mes;
return;
}
},addZero:function(num){ return ('0'+num).slice(-2); }
}
function CDT( tl, id, msg){
// var tl = new Date('2014/4/7 14:59:59');
var timer = new CountdownTimer( id, tl, msg);
timer.countDown();
}
window.onload=function(){
//追憶のデスクィーン島
var tl = new Date('2014/6/17 7:59:59');
var id = 'deth';
var msg = '終了しました';
CDT(tl,id,msg);
}
-->
</script>
}}
#include_js(http://cdn59.atwikiimg.com/cosmoslottle/pub/js/jquery-1.11.1.min.js)
#include_js(http://cdn59.atwikiimg.com/cosmoslottle/pub/js/jquery.csv2table-0.02-b-4.7.js)
&spanid(view0){}
#javascript(){{
<script language="JavaScript" type="text/javascript">
<!--
$(function(){ $("#test").css("color","red");} );
$(function(){ $('#view0').csv2table('http://www59.atwiki.jp/cosmoslottle/pub/csv/battle_ratio.csv',{select : [0,1,2,3,4,5,6,7,8,9]});} );
-->
</script>
<script type="text/javascript"><!--
amazon_ad_tag = "owlog-22"; amazon_ad_width = "120"; amazon_ad_height = "600"; amazon_ad_logo = "hide"; amazon_ad_categories = "adl";//--></script>
<script type="text/javascript" src="http://ir-jp.amazon-adsystem.com/s/ads.js"></script>
}}
編集テストページ
&color(red){イベント終了まで:&spanid(deth){}}
#javascript(){{
<script language="JavaScript" type="text/javascript">
<!--
function CountdownTimer(elm,tl,mes){
this.initialize.apply(this,arguments);
}
CountdownTimer.prototype={
initialize:function(elm,tl,mes) {
this.elem = document.getElementById(elm);
this.tl = tl;
this.mes = mes;
},countDown:function(){
var timer='';
var today=new Date();
var day=Math.floor((this.tl-today)/(24*60*60*1000));
var hour=Math.floor(((this.tl-today)%(24*60*60*1000))/(60*60*1000));
var min=Math.floor(((this.tl-today)%(24*60*60*1000))/(60*1000))%60;
var sec=Math.floor(((this.tl-today)%(24*60*60*1000))/1000)%60%60;
var milli=Math.floor(((this.tl-today)%(24*60*60*1000))/10)%100;
var me=this;
var brave=Math.floor(((this.tl-today)%(24*60*60*1000))/(60*5*1000));
if( ( this.tl - today ) > 0 ){
if (day) timer += '<span class="day">'+day+'日</span>';
if (hour) timer += '<span class="hour">'+hour+'時間</span>';
timer += '<span class="min">'+this.addZero(min)+'分</span><span class="sec">'+this.addZero(sec)+'秒</span><span class="milli">'+this.addZero(milli)+'</span>'+'('+brave+')';
this.elem.innerHTML = timer;
tid = setTimeout( function(){me.countDown();},10 );
}else{
this.elem.innerHTML = this.mes;
return;
}
},addZero:function(num){ return ('0'+num).slice(-2); }
}
function CDT( tl, id, msg){
// var tl = new Date('2014/4/7 14:59:59');
var timer = new CountdownTimer( id, tl, msg);
timer.countDown();
}
window.onload=function(){
//追憶のデスクィーン島
var tl = new Date('2014/6/17 7:59:59');
var id = 'deth';
var msg = '終了しました';
CDT(tl,id,msg);
}
-->
</script>
}}
#include_js(http://cdn59.atwikiimg.com/cosmoslottle/pub/js/jquery-1.11.1.min.js)
#include_js(http://cdn59.atwikiimg.com/cosmoslottle/pub/js/jquery.csv2table-0.02-b-4.7.js)
&spanid(view0){}
#javascript(){{
<script language="JavaScript" type="text/javascript">
<!--
$(function(){ $("#test").css("color","red");} );
$(function(){ $('#view0').csv2table('http://www59.atwiki.jp/cosmoslottle/pub/csv/battle_ratio.csv',{select : [0,1,2,3,4,5,6,7,8,9]});} );
-->
</script>
<script type="text/javascript"><!--
amazon_ad_tag = "owlog-22"; amazon_ad_width = "120"; amazon_ad_height = "600"; amazon_ad_logo = "hide"; amazon_ad_categories = "adl";//--></script>
<script type="text/javascript" src="http://ir-jp.amazon-adsystem.com/s/ads.js"></script>
}}