Import css_browser_selector.js in your head section
css_browser_selector.js
Internet Explorer - yellow
Internet Explorer 7 - orange
Gecko Engine on Windows (Firefox, Mozilla, Camino) - red
Gecko Engine on Linux (Firefox, Mozilla, Camino) - pink
Gecko Engine on Other OS (Firefox, Mozilla, Camino) - gray
Opera - green
Konqueror - blue
Safari - black
Chrome - cyan
Example
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
...
Monday, 8 July 2013
Friday, 14 June 2013
import java.io.File;
import javax.activation.MimetypesFileTypeMap;
public class TestMimeType {
public static void main(String[] args) {
String fileName = "C://bunny.mp4";
MimetypesFileTypeMap mimeTypesMap = new MimetypesFileTypeMap();
// only by file name
String mimeType = mimeTypesMap.getContentType(fileName);
// or by actual File instance
File file = new File(fileName);
mimeType = mimeTypesMap.getContentType(file);
System.out.println(mimeType);
}
}
...
Thursday, 6 June 2013
for (var i = 0, keys = Object.keys(a_hashmap), ii = keys.length; i < ii; i++)
{ console.log('key : ' + keys[i] + ' val : ' + a_hashmap[keys[i]])...
Thursday, 30 May 2013
<input type="checkbox" checked="true" onclick="return false"/&g...
Wednesday, 29 May 2013
Subscribe to:
Posts (Atom)