|
@@ -1,39 +1,30 @@
|
|
|
-function hovercat() {
|
|
|
- var $work = $('.navbar > ul > li:nth-child(1)');
|
|
|
- var $workafter = $('.navbar > ul > li:nth-child(1)::after');
|
|
|
- var $cat = $('.navbar > ul.tags');
|
|
|
-
|
|
|
- $work.hover(
|
|
|
- function() {
|
|
|
- $( this ).addClass( "hover" );
|
|
|
- $(this).parents().find('.tags').addClass("visible");
|
|
|
- }, function() {
|
|
|
- $( this ).removeClass( "hover" );
|
|
|
- $(this).parents().find('.tags').removeClass("visible");
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- $cat.hover(
|
|
|
- function() {
|
|
|
- $( this ).addClass( "visible" );
|
|
|
- $(this).parents().find($work).addClass('hover');
|
|
|
- }, function() {
|
|
|
- $( this ).removeClass( "visible" );
|
|
|
- $(this).parents().find($work).removeClass('hover');
|
|
|
- }
|
|
|
- );
|
|
|
-}
|
|
|
-
|
|
|
-// function active() {
|
|
|
+// function hovercat() {
|
|
|
// var $work = $('.navbar > ul > li:nth-child(1)');
|
|
|
+// var $workafter = $('.navbar > ul > li:nth-child(1)::after');
|
|
|
+// var $cat = $('.navbar > ul.tags');
|
|
|
//
|
|
|
-// $work.click(function(event) {
|
|
|
-// $(this).parents().find('.tags').toggleClass("active");
|
|
|
-// });
|
|
|
+// $work.hover(
|
|
|
+// function() {
|
|
|
+// $( this ).addClass( "hover" );
|
|
|
+// $(this).parents().find('.tags').addClass("visible");
|
|
|
+// }, function() {
|
|
|
+// $( this ).removeClass( "hover" );
|
|
|
+// $(this).parents().find('.tags').removeClass("visible");
|
|
|
+// }
|
|
|
+// );
|
|
|
+//
|
|
|
+// $cat.hover(
|
|
|
+// function() {
|
|
|
+// $( this ).addClass( "visible" );
|
|
|
+// $(this).parents().find($work).addClass('hover');
|
|
|
+// }, function() {
|
|
|
+// $( this ).removeClass( "visible" );
|
|
|
+// $(this).parents().find($work).removeClass('hover');
|
|
|
+// }
|
|
|
+// );
|
|
|
// }
|
|
|
|
|
|
function catprojets() {
|
|
|
-
|
|
|
$(window).load(function () {
|
|
|
var $content = $('.content');
|
|
|
var $txt = $('#items .content .txt');
|
|
@@ -47,12 +38,29 @@ function catprojets() {
|
|
|
"height" : $Htxt + "px"
|
|
|
});
|
|
|
});
|
|
|
+}
|
|
|
+
|
|
|
+function removeAct(){
|
|
|
+ var $cat = $('.navbar > ul.tags');
|
|
|
+ var $work = $('.navbar > ul:first-child > li:first-child a');
|
|
|
+ var $start = $("body #start");
|
|
|
+
|
|
|
+ $work.click(function(event) {
|
|
|
+ event.preventDefault();
|
|
|
+ $(this).parents('.navbar').find('.tags').toggleClass('visible');
|
|
|
+ $(this).parents('.navbar').find(' ul > li:first-child').toggleClass('hover');
|
|
|
+ });
|
|
|
+
|
|
|
+ $start.click(function(event) {
|
|
|
+ $(this).parents('#top').find('.tags').removeClass('visible');
|
|
|
+ $(this).parents('#top').find(' ul > li:first-child').removeClass('hover');
|
|
|
+ });
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
jQuery(document).ready(function($) {
|
|
|
- // active();
|
|
|
- hovercat();
|
|
|
+ removeAct();
|
|
|
+ // hovercat();
|
|
|
catprojets();
|
|
|
-
|
|
|
});
|