Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
start [2015/03/12 14:16] cnguyen |
start [2015/03/12 14:54] cnguyen |
||
---|---|---|---|
Line 23: | Line 23: | ||
} | } | ||
</style> | </style> | ||
+ | |||
+ | <script language="Javascript" type="text/javascript" src="https://code.jquery.com/jquery-1.4.1.min.js"></script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | !function(a){a.fn.countDown=function(t){return config={},a.extend(config,t),diffSecs=this.setCountDown(config),config.onComplete&&a.data(a(this)[0],"callback",config.onComplete),config.omitWeeks&&a.data(a(this)[0],"omitWeeks",config.omitWeeks),a("#"+a(this).attr("id")+" .digit").html('<div class="top"></div><div class="bottom"></div>'),a(this).doCountDown(a(this).attr("id"),diffSecs,500),this},a.fn.stopCountDown=function(){clearTimeout(a.data(this[0],"timer"))},a.fn.startCountDown=function(){this.doCountDown(a(this).attr("id"),a.data(this[0],"diffSecs"),500)},a.fn.setCountDown=function(t){var e=new Date;t.targetDate?e=new Date(t.targetDate.month+"/"+t.targetDate.day+"/"+t.targetDate.year+" "+t.targetDate.hour+":"+t.targetDate.min+":"+t.targetDate.sec+(t.targetDate.utc?" UTC":"")):t.targetOffset&&(e.setFullYear(t.targetOffset.year+e.getFullYear()),e.setMonth(t.targetOffset.month+e.getMonth()),e.setDate(t.targetOffset.day+e.getDate()),e.setHours(t.targetOffset.hour+e.getHours()),e.setMinutes(t.targetOffset.min+e.getMinutes()),e.setSeconds(t.targetOffset.sec+e.getSeconds()));var s=new Date;return diffSecs=Math.floor((e.valueOf()-s.valueOf())/1e3),a.data(this[0],"diffSecs",diffSecs),diffSecs},a.fn.doCountDown=function(s,i,o){$this=a("#"+s),0>=i&&(i=0,a.data($this[0],"timer")&&clearTimeout(a.data($this[0],"timer"))),secs=i%60,mins=Math.floor(i/60)%60,hours=Math.floor(i/60/60)%24,1==a.data($this[0],"omitWeeks")?(days=Math.floor(i/60/60/24),weeks=Math.floor(i/60/60/24/7)):(days=Math.floor(i/60/60/24)%7,weeks=Math.floor(i/60/60/24/7)),$this.dashChangeTo(s,"seconds_dash",secs,o?o:800),$this.dashChangeTo(s,"minutes_dash",mins,o?o:1200),$this.dashChangeTo(s,"hours_dash",hours,o?o:1200),$this.dashChangeTo(s,"days_dash",days,o?o:1200),$this.dashChangeTo(s,"weeks_dash",weeks,o?o:1200),a.data($this[0],"diffSecs",i),i>0?(e=$this,t=setTimeout(function(){e.doCountDown(s,i-1)},1e3),a.data(e[0],"timer",t)):(cb=a.data($this[0],"callback"))&&a.data($this[0],"callback")()},a.fn.dashChangeTo=function(t,e,s,i){$this=a("#"+t);for(var o=$this.find("."+e+" .digit").length-1;o>=0;o--){var n=s%10;s=(s-n)/10,$this.digitChangeTo("#"+$this.attr("id")+" ."+e+" .digit:eq("+o+")",n,i)}},a.fn.digitChangeTo=function(t,e,s){s||(s=800),a(t+" div.top").html()!=e+""&&(a(t+" div.top").css({display:"none"}),a(t+" div.top").html(e?e:"0").slideDown(s),a(t+" div.bottom").animate({height:""},s,function(){a(t+" div.bottom").html(a(t+" div.top").html()),a(t+" div.bottom").css({display:"block",height:""}),a(t+" div.top").hide().slideUp(10)}))}}(jQuery); | ||
+ | </script> | ||
+ | <script type="text/javascript"> | ||
+ | function email_focus(){"your@email.com"==$(this).val()&&($(this).val(""),$(this).removeClass("faded"))}function email_blur(){""==$(this).val()&&($(this).val("your@email.com"),$(this).addClass("faded"))}function subscribe_submit(){return email=$("#email_field").val(),$.post("subscribe.php?json=1",$("#subscribe_form").serialize(),subscribe_result,"json"),$("#subscribe_button").attr("disabled","disabled"),$(".form_message").fadeOut("fast"),$("#loading").fadeIn("fast"),!1}function subscribe_result(e){$("#loading").hide(),e.error?display_message(e.error):display_message(e.info,"info"),$("#subscribe_button").removeAttr("disabled")}function display_message(e,s){s||(s="error"),"error"==s?($("#error_message").html(e).fadeIn("slow"),setTimeout("hide_error()",4e3)):($("#error_message").hide(),$("#info_message").html(e).fadeIn("slow"))}function hide_error(){$("#error_message").fadeOut("slow")} | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | jQuery(document).ready(function() { | ||
+ | $('#countdown_dashboard').countDown({ | ||
+ | targetDate: { | ||
+ | 'day': 07, | ||
+ | 'month': 04, | ||
+ | 'year': 2015, | ||
+ | 'hour': 11, | ||
+ | 'min': 59, | ||
+ | 'sec': 59 | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | $('div').remove('.left_sidebar'); | ||
+ | $('div').remove('.breadcrumbs'); | ||
+ | $('.page_right').css('border-left','0px').css('float','none'); | ||
+ | |||
+ | |||
+ | }); | ||
+ | </script> | ||
+ | |||
<div id="container" class="font-countdown"> | <div id="container" class="font-countdown"> | ||
<div pure-g> | <div pure-g> | ||
Line 67: | Line 98: | ||
</div> | </div> | ||
<br> | <br> | ||
- | <p>left to apply for EMSE 2015 - 2017 </p> | ||
- | <!-- Countdown dashboard end --> | ||
- | <br> | ||
- | <br> | ||
- | <a href="http://www.inf.unibz.it/emse-dokuwiki/emse/call" style="font-size:20px; color:#336699;">APPLY NOW</a> | ||
- | </div> | ||
- | <script language="Javascript" type="text/javascript" src="https://code.jquery.com/jquery-1.4.1.min.js"></script> | ||
- | <script type="text/javascript"> | ||
- | !function(a){a.fn.countDown=function(t){return config={},a.extend(config,t),diffSecs=this.setCountDown(config),config.onComplete&&a.data(a(this)[0],"callback",config.onComplete),config.omitWeeks&&a.data(a(this)[0],"omitWeeks",config.omitWeeks),a("#"+a(this).attr("id")+" .digit").html('<div class="top"></div><div class="bottom"></div>'),a(this).doCountDown(a(this).attr("id"),diffSecs,500),this},a.fn.stopCountDown=function(){clearTimeout(a.data(this[0],"timer"))},a.fn.startCountDown=function(){this.doCountDown(a(this).attr("id"),a.data(this[0],"diffSecs"),500)},a.fn.setCountDown=function(t){var e=new Date;t.targetDate?e=new Date(t.targetDate.month+"/"+t.targetDate.day+"/"+t.targetDate.year+" "+t.targetDate.hour+":"+t.targetDate.min+":"+t.targetDate.sec+(t.targetDate.utc?" UTC":"")):t.targetOffset&&(e.setFullYear(t.targetOffset.year+e.getFullYear()),e.setMonth(t.targetOffset.month+e.getMonth()),e.setDate(t.targetOffset.day+e.getDate()),e.setHours(t.targetOffset.hour+e.getHours()),e.setMinutes(t.targetOffset.min+e.getMinutes()),e.setSeconds(t.targetOffset.sec+e.getSeconds()));var s=new Date;return diffSecs=Math.floor((e.valueOf()-s.valueOf())/1e3),a.data(this[0],"diffSecs",diffSecs),diffSecs},a.fn.doCountDown=function(s,i,o){$this=a("#"+s),0>=i&&(i=0,a.data($this[0],"timer")&&clearTimeout(a.data($this[0],"timer"))),secs=i%60,mins=Math.floor(i/60)%60,hours=Math.floor(i/60/60)%24,1==a.data($this[0],"omitWeeks")?(days=Math.floor(i/60/60/24),weeks=Math.floor(i/60/60/24/7)):(days=Math.floor(i/60/60/24)%7,weeks=Math.floor(i/60/60/24/7)),$this.dashChangeTo(s,"seconds_dash",secs,o?o:800),$this.dashChangeTo(s,"minutes_dash",mins,o?o:1200),$this.dashChangeTo(s,"hours_dash",hours,o?o:1200),$this.dashChangeTo(s,"days_dash",days,o?o:1200),$this.dashChangeTo(s,"weeks_dash",weeks,o?o:1200),a.data($this[0],"diffSecs",i),i>0?(e=$this,t=setTimeout(function(){e.doCountDown(s,i-1)},1e3),a.data(e[0],"timer",t)):(cb=a.data($this[0],"callback"))&&a.data($this[0],"callback")()},a.fn.dashChangeTo=function(t,e,s,i){$this=a("#"+t);for(var o=$this.find("."+e+" .digit").length-1;o>=0;o--){var n=s%10;s=(s-n)/10,$this.digitChangeTo("#"+$this.attr("id")+" ."+e+" .digit:eq("+o+")",n,i)}},a.fn.digitChangeTo=function(t,e,s){s||(s=800),a(t+" div.top").html()!=e+""&&(a(t+" div.top").css({display:"none"}),a(t+" div.top").html(e?e:"0").slideDown(s),a(t+" div.bottom").animate({height:""},s,function(){a(t+" div.bottom").html(a(t+" div.top").html()),a(t+" div.bottom").css({display:"block",height:""}),a(t+" div.top").hide().slideUp(10)}))}}(jQuery); | ||
- | </script> | ||
- | <script type="text/javascript"> | ||
- | function email_focus(){"your@email.com"==$(this).val()&&($(this).val(""),$(this).removeClass("faded"))}function email_blur(){""==$(this).val()&&($(this).val("your@email.com"),$(this).addClass("faded"))}function subscribe_submit(){return email=$("#email_field").val(),$.post("subscribe.php?json=1",$("#subscribe_form").serialize(),subscribe_result,"json"),$("#subscribe_button").attr("disabled","disabled"),$(".form_message").fadeOut("fast"),$("#loading").fadeIn("fast"),!1}function subscribe_result(e){$("#loading").hide(),e.error?display_message(e.error):display_message(e.info,"info"),$("#subscribe_button").removeAttr("disabled")}function display_message(e,s){s||(s="error"),"error"==s?($("#error_message").html(e).fadeIn("slow"),setTimeout("hide_error()",4e3)):($("#error_message").hide(),$("#info_message").html(e).fadeIn("slow"))}function hide_error(){$("#error_message").fadeOut("slow")} | ||
- | </script> | ||
- | <script type="text/javascript"> | + | <p style="font-size:15px;">left to apply for EMSE 2015 - 2017 </p> |
- | jQuery(document).ready(function() { | + | <a href="http://www.inf.unibz.it/emse-dokuwiki/emse/call" style="font-size:20px; color:#336699;">APPLY NOW</a><br> |
- | $('#countdown_dashboard').countDown({ | + | <a href="http://www.inf.unibz.it/emse-dokuwiki/emse/home" style="font-size:20px; color:#336699;">Homepage</a> |
- | targetDate: { | + | |
- | 'day': 07, | + | |
- | 'month': 04, | + | |
- | 'year': 2015, | + | |
- | 'hour': 11, | + | |
- | 'min': 59, | + | |
- | 'sec': 59 | + | |
- | } | + | |
- | }); | + | |
- | $('div').remove('.left_sidebar'); | + | </div> |
- | $('div').remove('.breadcrumbs'); | + | <script type="text/javascript"> |
- | $('.page_right').css('border-left','0px').css('float','none') | + | var d = new Date(); |
- | }); | + | $('.try').text(d.getTimezoneOffset()) |
- | </script> | + | </script> |
- | + | ||
</body> | </body> |