-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.js
60 lines (44 loc) · 2.31 KB
/
dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/********************************************************************************************/
$(document).ready(function(){
var BSver = ($().modal||$().tab).Constructor.VERSION,
$testBand = $("#testBand"),
$testBand_right = $("#testBand_right");
$testBand_right.html( '<br><span style="color:#fff;"> BSver= ' + BSver +'<br>jQuery= '+ jQuery.fn.jquery +'</span>' );
/* RESOLUTIONS
------------------------------------------------------------------------------------------------------------*/
$windowW = $(window).width();
$documentW = $(document).width();
$windowH = $(window).height();
$documentH = $(document).height();
$(window).on("orientationchange",function(){
$windowW = $(window).width();
$documentW = $(document).width();
$windowH = $(window).height();
$documentH = $(document).height();
});
$(window).on('resize', function(){
$windowW = $(window).width();
$documentW = $(document).width();
$windowH = $(window).height();
$documentH = $(document).height();
});
/* CSS helpers
------------------------------------------------------------------------------------------------------------*/
function upadateTestBand($testBand) {
$testBand.html(
'<span style="color:#fff;">'+
" W screen= "+ screen.width +" win= "+ $windowW +" doc= "+ $documentW +"<br>" +
" H screen= "+ screen.height +" win= "+ $windowH +" doc= "+ $documentH +"<br>" +
'</span>'
);
};
/********************************************************************************************/
upadateTestBand( $testBand );
$(window).on("orientationchange", function(){ upadateTestBand( $testBand ); });
$(window).on('resize', function(){ upadateTestBand( $testBand ); });
/********************************************************************************************/
});//$(document).ready(function(){
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/