<script src="jar:file:/C:/Users/kirawa/Documents/NetBeansProjects/shoping-fx/target/shoping-fx-1.0-SNAPSHOT.jar!/html/jquery-ui.js"></script>
BigDecimal one = new BigDecimal(99999999998l);
BigDecimal two = new BigDecimal(1);
one = one.add(two); // сложение
System.out.println(one.round(new MathContext(3,RoundingMode.HALF_UP)));
String path = Environment.getExternalStorageDirectory().toString()+File.separator+DIR_SD+File.separator+FILENAME_SD;
File file = null;
boolean b = false;
file = new File(path);
b = file.mkdirs();
try {
b = file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
if (b){
//не заходит в блок
}
private bool isTabletModeDetermined = false;
private bool isTabletMode = false;
//....
public static boolean isTablet(Context paramContext) {
if (!isTabletModeDetermined) {
if (paramContext.getResources().getConfiguration().smallestScreenWidthDp>= 600)
isTabletMode = true;
isTabletModeDetermined = true;
}
return isTabletMode;
}
html, body, #map {
margin: 0;
padding: 0;
height: 100%;
width: 100%
}
</style>
<body>
<div id="map"></div>
<script>
var maxZoom = 6;
var imageWidth = 7022;
var imageHeight = 4964;
var tile = {
w: imageWidth/maxZoom,
h: imageHeight/maxZoom
};
var map = L.map('map', {
maxZoom: 2,
minZoom: 0,
crs: L.CRS.Simple
}).setView([0, 0], 0);
map.setMaxBounds(new L.LatLngBounds([0,tile.w], [tile.h,0]));
var imageUrl = '12.jpg'
var imageBounds = [[tile.h,0], [0,tile.w]];
L.imageOverlay(imageUrl, imageBounds).addTo(map);
</script>
</body>
</html>