Created
March 9, 2010 21:54
-
-
Save tal/327170 to your computer and use it in GitHub Desktop.
Can't get this fbml app to run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <fb:prompt-permission perms="email"> | |
| <div>Email you</div> | |
| </fb:prompt-permission> | |
| <div id="other-games"> | |
| Play other games | |
| </div> | |
| <div id="progress"> | |
| <fb:bookmark /> | |
| </div> | |
| <ul id="tabs"> | |
| <li> | |
| <a href="#" id="free-gifts-tab">Free Gifts</a> | |
| </li> | |
| <li> | |
| <a href="#" id="play-tab">Play</a> | |
| </li> | |
| <li> | |
| <a href="#" id="neighbors-tab">Neighbors</a> | |
| </li> | |
| <li> | |
| <a href="#" id="invite-tab">Invite Friends</a> | |
| </li> | |
| <li> | |
| <a href="#" id="buy-tab">Cash & Coins</a> | |
| </li> | |
| </ul> | |
| <div id="content"> | |
| <div id="free-gifts"> | |
| Free Gifts | |
| </div> | |
| <div id="play"> | |
| Play te game | |
| </div> | |
| <div id="neighbors"> | |
| Neightbors | |
| </div> | |
| <div id="invite"> | |
| Invite | |
| </div> | |
| <div id="buy"> | |
| Buy | |
| </div> | |
| </div> | |
| <%= catch_content %> | |
| <script> | |
| <!-- | |
| function Each(array,block){ | |
| for(var i in array){ | |
| block(array[i]); | |
| } | |
| }; | |
| Each(document.getElementById('tabs').getElementsByTagName("li"), function(li) { | |
| var as = li.getElementsByTagName('a'); | |
| Each(as,function(a) { | |
| a.addEventListener('click',function(e) { | |
| Each(as,function(a) { | |
| document.getElementById(a.getId().replace(/\-tab/,'')).setStyle('display','none'); | |
| a.removeClassName('current'); | |
| }); | |
| document.getElementById(span.getId().replace(/\-tab/,'')).setStyle('display','block'); | |
| a.addClassName('current'); | |
| }); | |
| });// each a | |
| });// each li | |
| console.log('test'); | |
| //--> | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="facebook" class=" no_js"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment