This file contains 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
/* Example of how to load Facebook SDK */ | |
loadAsync(document, 'script', '//connect.facebook.net/en_US/sdk.js', 'facebook-jssdk', successCallback); | |
function successCallback () { | |
console.log('Facebook\'s SDK successfully loaded.'); | |
} | |
/* Asynchronously load any script files */ | |
function loadAsync ( doc, elem, source, id, cb ) { | |
var ready = false, |
This file contains 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
<a | |
href="https://google.com" | |
onClick="return popThis(this.href, 500, 370)"> | |
Open Google | |
</a> |
This file contains 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
<IfModule mod_rewrite.c> | |
# remove trailing slash | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s] | |
RewriteRule ^(.+?)/$ /$1 [R=301,L] | |
# To externally redirect /dir/file.php to /dir/file | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+(.+?)\.php[\s?] [NC] | |
RewriteRule ^ /%1 [R=301,L,NE] |
NewerOlder