Subversion Repositories SmartDukaan

Rev

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

Rev 11169 Rev 11251
Line 9... Line 9...
9
?>
9
?>
10
<div class="recommended-pd">
10
<div class="recommended-pd">
11
        <div class="head">
11
        <div class="head">
12
            <div>Featured products</div>
12
            <div>Featured products</div>
13
         </div>
13
         </div>
14
        <div class="rec-hldr">
14
        <div class="rec-hldr" id="swipe_0">
15
        <div class="rec-wrapper">
15
        <div class="rec-wrapper">
16
        <?php foreach ($home_featured_product as $product) {?>
16
        <?php foreach ($home_featured_product as $product) {?>
17
        <a class="rec-product" href="<?php echo $product['url']; ?>">
17
        <a class="rec-product" href="<?php echo $product['url']; ?>">
18
          <img src="<?php echo $product['image_url']; ?>" alt="recomended" onerror="imgDefault()"/>
18
          <img src="<?php echo $product['image_url']; ?>" alt="recomended" onerror="imgDefault()"/>
19
          <div class="pd-name"><?php echo $product['title']; ?></div>
19
          <div class="pd-name"><?php echo $product['title']; ?></div>
Line 110... Line 110...
110
 
110
 
111
              point = e.touches[0];
111
              point = e.touches[0];
112
 
112
 
113
              pointStartX = point.pageX;
113
              pointStartX = point.pageX;
114
 
114
 
115
              pointStartY = point.pageY; null;
115
              pointStartY = point.pageY; 
-
 
116
              null;
116
 
117
 
117
            },
118
            },
118
 
119
 
119
            onBeforeScrollMove : function(e) {
120
            onBeforeScrollMove : function(e) {
120
 
121
 
121
              console.log(e);
-
 
122
 
-
 
123
              point = e.touches[0];
122
              point = e.touches[0];
124
 
123
 
125
              //alert("onBeforeScrollMove");
124
              //alert("onBeforeScrollMove");
126
 
125
 
127
              deltaX = Math.abs(point.pageX - pointStartX);
126
              deltaX = Math.abs(point.pageX - pointStartX);