Changeset 2709

Show
Ignore:
Timestamp:
05/10/08 09:46:35
Author:
miyagawa
Message:

some JSONP stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • yapcasia2008/actdocs/templates/user/main

    r2708 r2709  
    88 {{to Act-enabled conferences.}} 
    99 [% END %] 
    10 </p> 
    11  
    12 <p> 
    13  <t><en>Your user ID is <strong style="font-size:1.5em">[% global.request.user.user_id %]</strong></en><ja>あなたのユーザID は <strong style="font-size:1.5em">[% global.request.user.user_id %]</strong> です。</ja></t> 
    1410</p> 
    1511 
     
    6258    [% END %] 
    6359[% END %] 
     60 
     61<div id="party-yes" style="visibility:hidden"> 
     62<t> 
     63<en>You're <strong>selected</strong> to attend to the <a href="http://conferences.yapcasia.org/ya2008/event/320">‎Conference Dinner‎</a>. Congratulations!</en> 
     64<ja><a href="http://conferences.yapcasia.org/ya2008/event/320">‎カンファレンスディナー‎</a> に参加できます。</ja> 
     65</t> 
     66</div> 
     67 
     68<div id="party-no" style="visibility:hidden"> 
     69<t> 
     70<en>We're sorry. You are <strong>not selected</strong> to attend to the <a href="http://conferences.yapcasia.org/ya2008/event/320">‎Conference Dinner‎</a>. You're currently No.<span id="waiting-count"></span> on the waiting list. See <a href="/ya2008/news/145">the news article</a> for details. 
     71</en> 
     72<ja>申し訳ありません。<a href="http://conferences.yapcasia.org/ya2008/event/320">‎カンファレンスディナー‎</a>には参加できません。現在順番待ちリストの <span id="waiting-count"></span> 番目となっています。詳細については <a href="/ya2008/news/145">ニュース記事</a> を参照してください。</ja> 
     73</t> 
     74</div> 
     75 
     76<script> 
     77function showPartyStatus(res) { 
     78  if (res == 0) { 
     79    document.getElementById('party-yes').style.visibility = "visible"; 
     80  } else if(res) { 
     81    document.getElementById('party-no').style.visibility = "visible"; 
     82    document.getElementById('waiting-count').innerHTML = res; 
     83  } 
     84} 
     85 
     86var el = document.createElement("script"); 
     87el.type = "text/javascript"; 
     88el.src = "http://blog.bulknews.net/yapc/party.cgi?id=[% global.request.user.user_id %]"; 
     89document.body.appendChild(el); 
     90</script> 
    6491 
    6592<p><b>{{You can:}}</b></p>