Created
December 18, 2013 10:05
-
-
Save devyfriend/8019953 to your computer and use it in GitHub Desktop.
dont forget to replace url :)
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
| var IS_ADMIN = ''; | |
| document.base_url = 'http://bloodbook.digiatlb.com/'; | |
| document.site_url = 'http://bloodbook.digiatlb.com/'; | |
| document.scripts_url = 'http://bloodbook.digiatlb.com/scripts/'; | |
| document.styles_url = 'http://bloodbook.digiatlb.com/styles/'; | |
| document.uploads_url = 'http://bloodbook.digiatlb.com/uploads/'; | |
| document.FB_APP_ID = '185057928349987'; | |
| document.FB_PAGE_NAME = 'palangmerah'; | |
| document.FB_PAGE_ID = '214889140098'; | |
| document.IS_MOBILE = ''; | |
| //--------------------------------------- REDIRECT to FB PAGE | |
| //console.log(IS_ADMIN); | |
| function NotInFacebookFrame() { | |
| return top === self; | |
| } | |
| function ReferrerIsFacebookApp() { | |
| if(document.referrer) { | |
| return document.referrer.indexOf("apps.facebook.com") != -1; | |
| } | |
| return false; | |
| } | |
| if ((NotInFacebookFrame() || ReferrerIsFacebookApp()) && IS_ADMIN !='bloodbook-admin/') { | |
| top.location.replace("https://www.facebook.com/"+document.FB_PAGE_NAME+"/app_"+document.FB_APP_ID); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment