Synchronization of static files with Astakos
[snf-cloudcms] / cloudcms / static / cloudcms / js / common.js
index 3415564..a157aff 100644 (file)
@@ -23,7 +23,17 @@ function tableFixedCols(table, firstColWidth ){
        \r
 }\r
 \r
-\r
+function addClassHover(hoverEl, applicableEl){ \r
+       $(hoverEl).hover(\r
+      function () {\r
+        \r
+         $(applicableEl).addClass('red-border')\r
+      }, \r
+      function () {\r
+       $(applicableEl).removeClass('red-border');\r
+    \r
+    });\r
+}\r
 //equal heights\r
  \r
 (function($) {\r
@@ -74,6 +84,7 @@ if (navigator.userAgent.match(/iPhone/i)) {
 }\r
 //end of fix\r
 \r
\r
 $(document).ready(function() {\r
        \r
         \r
@@ -188,9 +199,9 @@ $(document).ready(function() {
         });\r
        });\r
        \r
-        
+        \r
+       \r
        $('table .more-info').click(function(e){\r
-
                e.preventDefault();\r
                $(this).toggleClass('open');\r
                if ($(this).hasClass('open')){\r
@@ -241,23 +252,8 @@ $(document).ready(function() {
     \r
     \r
     \r
-     $('.auth_methods').find('li>a').click(function(e){\r
-       e.preventDefault();\r
-       $(this).siblings('.wrap').toggle('slow');\r
-       $(this).toggleClass('up');\r
-     });\r
-     \r
-     $('.auth_methods a.red').click(function(e){\r
-       e.preventDefault();\r
-       $(this).siblings('.dialog').show();\r
-     })\r
-     \r
+   \r
       \r
-     $('.auth_methods .dialog .no').click( function(e){         \r
-       e.preventDefault();\r
-       console.log($(this));\r
-       $(this).parents('.dialog').hide();\r
-     })\r
     \r
     setTimeout(function() {\r
       if ($('input#id_username').val()){ \r
@@ -268,6 +264,71 @@ $(document).ready(function() {
       }\r
        }, 100);\r
        \r
+       \r
+       \r
+       \r
+       $('.landing-page .cms').hover(\r
+      function () {\r
+        el = $('.cloudbar ul.services li').first();\r
+        var offset = el.offset();\r
+        positionX = offset.left;\r
+        $('#hand').css('left',positionX);               \r
+         $('#hand').show();\r
+      }, \r
+      function () {\r
+       $('#hand').hide();\r
+    \r
+    });  \r
+    \r
+    $('.landing-page .pithos').hover(\r
+      function () {\r
+        el = $('.cloudbar ul.services li:nth-child(3)');\r
+        var offset = el.offset();\r
+        positionX = offset.left;\r
+        left = parseInt(positionX) +20;\r
+        $('#hand').css('left',left+'px');               \r
+         $('#hand').show();\r
+      }, \r
+      function () {\r
+       $('#hand').hide();\r
+    \r
+    });  \r
+    \r
+    $('.landing-page .cyclades').hover(\r
+      function () {\r
+        el = $('.cloudbar ul.services li:nth-child(2)').first();\r
+        var offset = el.offset();\r
+        positionX = offset.left;\r
+        left = parseInt(positionX) +20;\r
+        $('#hand').css('left',left+'px');               \r
+         $('#hand').show();\r
+      }, \r
+      function () {\r
+       $('#hand').hide();\r
+    \r
+    });  \r
+    \r
+    \r
+    $('.landing-page .dashboard').hover(\r
+      function () {\r
+        el = $('.cloudbar .profile');\r
+        var offset = el.offset();\r
+        positionX = offset.left +50;\r
+        $('#hand').css('left',positionX);               \r
+         $('#hand').show();\r
+      }, \r
+      function () {\r
+       $('#hand').hide();\r
+    \r
+    });  \r
+    \r
+    $('.pagination a.disabled').click(function(e){\r
+       e.preventDefault();\r
+    });\r
+         \r
+       // fix for recaptcha fields\r
+       $('#okeanos_recaptcha').parents('.form-row').find('.extra-img').hide();   \r
+     \r
         \r
            \r
 });\r
@@ -275,6 +336,6 @@ $(document).ready(function() {
 $(window).resize(function() {\r
     \r
    setContainerMinHeight('.container .wrapper');\r
-
-});
-
+    \r
+\r
+});
\ No newline at end of file