Subversion Repositories SmartDukaan

Rev

Rev 19931 | Rev 20006 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19931 Rev 20004
Line 2... Line 2...
2
<script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js"></script>
2
<script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js"></script>
3
<script type="text/javascript" src="<?php echo $base_url;?>js/deals.js?v=<?php echo $staticversion;?>"></script>
3
<script type="text/javascript" src="<?php echo $base_url;?>js/deals.js?v=<?php echo $staticversion;?>"></script>
4
<script type="text/javascript">
4
<script type="text/javascript">
5
function loaded () {
5
function loaded () {
6
	myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
6
	myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
-
 
7
	myScroll3 = new IScroll('#wrapper3', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
7
	myScroll1 = new IScroll('#wrapper1', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
8
	myScroll1 = new IScroll('#wrapper1', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
8
}</script>
9
}</script>
9
 
10
 
10
 
11
 
11
<script>
12
<script>
12
$(document).ready(function(){
13
$(document).ready(function(){
13
 
14
 
14
	var scrollerwidth = 0;
15
	var scrollerwidth = 0;
15
	var scroller1width = 0;
16
	var scroller1width = 0;
-
 
17
	var scroller3width = 0;
16
	$('#scroller li').each(function() {
18
	$('#scroller li').each(function() {
17
	    var $this = $(this);
19
	    var $this = $(this);
18
	    scrollerwidth =scrollerwidth + $this.outerWidth() + 4;
20
	    scrollerwidth =scrollerwidth + $this.outerWidth() + 4;
19
	});
21
	});
20
	var scrollerwidth = ""+(scrollerwidth + 2)+"px";
22
	var scrollerwidth = ""+(scrollerwidth + 2)+"px";
Line 22... Line 24...
22
	    var $this = $(this);
24
	    var $this = $(this);
23
	    scroller1width =scroller1width + $this.outerWidth() + 10;
25
	    scroller1width =scroller1width + $this.outerWidth() + 10;
24
	});
26
	});
25
	var scroller1width = ""+(scroller1width + 2)+"px";
27
	var scroller1width = ""+(scroller1width + 2)+"px";
26
	
28
	
-
 
29
	$('#scroller3 li').each(function() {
-
 
30
	    var $this = $(this);
-
 
31
	    scroller3width =scroller3width + $this.outerWidth() + 10;
-
 
32
	});
-
 
33
	var scroller3width = ""+(scroller3width + 2)+"px";
-
 
34
	
27
    $('#scroller').css("width",scrollerwidth);
35
    $('#scroller').css("width",scrollerwidth);
28
    $('#scroller1').css("width",scroller1width);
36
    $('#scroller1').css("width",scroller1width);
-
 
37
    $('#scroller3').css("width",scroller3width);
29
	
38
	
30
});
39
});
31
</script>
40
</script>
32
<style>
41
<style>
33
.activate{
42
.activate{
Line 48... Line 57...
48
#wrapper1{
57
#wrapper1{
49
	height:30px;
58
	height:30px;
50
	width: 100%;
59
	width: 100%;
51
}
60
}
52
 
61
 
-
 
62
#wrapper3{
-
 
63
	z-index: 1;
-
 
64
	left: 0;
-
 
65
	overflow: hidden;
-
 
66
	height:25px;
-
 
67
	width: 100%;
-
 
68
}
-
 
69
 
53
#scroller, #scroller1 {
70
#scroller, #scroller1,  #scroller3{
54
	z-index: 1;
71
	z-index: 1;
55
	-webkit-tap-highlight-color: rgba(0,0,0,0);
72
	-webkit-tap-highlight-color: rgba(0,0,0,0);
56
	-webkit-transform: translateZ(0);
73
	-webkit-transform: translateZ(0);
57
	-moz-transform: translateZ(0);
74
	-moz-transform: translateZ(0);
58
	-ms-transform: translateZ(0);
75
	-ms-transform: translateZ(0);
Line 68... Line 85...
68
	-ms-text-size-adjust: none;
85
	-ms-text-size-adjust: none;
69
	-o-text-size-adjust: none;
86
	-o-text-size-adjust: none;
70
	text-size-adjust: none;
87
	text-size-adjust: none;
71
}
88
}
72
 
89
 
73
#scroller ul,#scroller1 ul {
90
#scroller ul,#scroller1 ul ,#scroller3 ul{
74
	list-style: none;
91
	list-style: none;
75
	padding: 0;
92
	padding: 0;
76
	margin: 0;
93
	margin: 0;
77
	width: 100%;	
94
	width: 100%;	
78
	text-align: center;
95
	text-align: center;
79
}
96
}
80
 
97
 
81
#scroller li, #scroller1 li {
98
#scroller li, #scroller1 li,#scroller3 li {
82
	display: block;
99
	display: block;
83
	float: left;
100
	float: left;
84
  	margin:2px;
101
  	margin:2px;
85
	color:white;
102
	color:white;
86
	border-right: 1px solid #ccc;
103
	border-right: 1px solid #ccc;
87
	background-color: #F2DEDE;
104
/* 	background-color: #F2DEDE; */
88
	font-size: 12px;
105
	font-size: 12px;
89
}
106
}
90
#scroller li{
107
#scroller li{
91
	font-weight:bold;
108
	font-weight:bold;
92
	padding: 7px;
109
	padding: 7px;