Browse Source

grabbing handler

Kévin Tessier 5 years ago
parent
commit
64d1783c76

+ 1 - 1
logs/popularity/daily.json

@@ -1 +1 @@
-{"02-07-2018":140,"03-07-2018":176,"04-07-2018":10,"11-07-2018":166,"13-07-2018":188,"14-07-2018":111,"17-07-2018":197,"25-07-2018":26,"26-07-2018":290,"27-07-2018":21}
+{"02-07-2018":140,"03-07-2018":176,"04-07-2018":10,"11-07-2018":166,"13-07-2018":188,"14-07-2018":111,"17-07-2018":197,"25-07-2018":26,"26-07-2018":290,"27-07-2018":38}

+ 1 - 1
logs/popularity/monthly.json

@@ -1 +1 @@
-{"07-2018":1325}
+{"07-2018":1342}

+ 1 - 1
logs/popularity/totals.json

@@ -1 +1 @@
-{"\/":1325}
+{"\/":1342}

+ 1 - 1
logs/popularity/visitors.json

@@ -1 +1 @@
-{"79c47964f1cd8a7f86f7fb4e1c1ac6bdb2551b4b":1532673580,"4b84b15bff6ee5796152495a230e45e3d7e947d9":1530699635}
+{"79c47964f1cd8a7f86f7fb4e1c1ac6bdb2551b4b":1532675099,"4b84b15bff6ee5796152495a230e45e3d7e947d9":1530699635}

File diff suppressed because it is too large
+ 3 - 1
user/themes/r2c/css-compiled/template.css


File diff suppressed because it is too large
+ 0 - 0
user/themes/r2c/css-compiled/template.min.css


+ 10 - 0
user/themes/r2c/js/site.js

@@ -3,6 +3,15 @@ function wrap(){
   $('#start > div:nth-child(n+2)').wrapAll('<div class="bottom"></div> ')
 };
 
+function clickhand(){
+  $(".handler").on("mousedown", function (e) {
+      e.preventDefault();
+      $(this).addClass("mouseDown");
+  }).on("mouseup", function () {
+      $(this).removeClass("mouseDown");
+  });
+};
+
 function drag() {
 
   var $hand = $( ".handler" );
@@ -81,5 +90,6 @@ function drag() {
 
 $(document).ready(function() {
   wrap();
+  clickhand();
   drag();
 });

+ 4 - 0
user/themes/r2c/scss/template/_section.scss

@@ -17,6 +17,10 @@ body{
     left : calc((100%/3) - 25px);
     top: 50%;
     z-index: 999;
+    cursor: grab;
+  }
+  .mouseDown{
+    cursor: grabbing;
   }
   #start{
     width: 100%;

Some files were not shown because too many files changed in this diff