Archive

Posts Tagged ‘html5’

MimeTypes for standard video files

<system.webServer>
 <validation validateIntegratedModeConfiguration="false"/> 
<modules runAllManagedModulesForAllRequests="true"/> 
<staticContent> 

<mimeMap fileExtension=".mp4" mimeType="video/mp4" /> 
<mimeMap fileExtension=".ogg" mimeType="audio/ogg" /> 
<mimeMap fileExtension=".oga" mimeType="audio/ogg" /> 
<mimeMap fileExtension=".ogv" mimeType="video/ogg" /> 
<mimeMap fileExtension=".webm" mimeType="video/webm" /> 

</staticContent>
 </system.webServer> 
Categories: Infrastructure Tags: ,

GeoLoaction in Javascript

I found this free service for GeoLocation in Javascript…

<script language='JavaScript' src='http://j.maxmind.com/app/geoip.js'></script>
<script language='JavaScript'>document.write(geoip_country_code());</script>
<script language='JavaScript'>
if(geoip_country_code()=="IT")
{
//Redirect ALL users from ITALY on google.com
location.replace("http://www.google.com");
}
</script>

the code is extremely easy to use, anyway I am looking forward for the proper GeoLocation API shipped with HTML5

Categories: DEV Tags: ,