/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/js/codeviewer.js

  • Committer: galaxyAbstractor
  • Date: 2013-04-10 15:49:32 UTC
  • mto: (19.1.5 lenasys)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: galaxyabstractor@gmail.com-20130410154932-4vizlzk0ar5gykvi
* Added an simple admin panel to the codeviewer-cmssy stuff
* Redesigned a bit like the mockups - still stuff to come
* Implemented the codeviewer + admin panel again using the Framework CodeIgniter instead 

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
                        }
43
43
                });
44
44
        }
45
 
}
46
 
 
47
 
open = false;
48
 
function dropdown(){
49
 
    if(!open){
50
 
        $('#dropdown').show();
51
 
        open = true;
52
 
    } else {
53
 
        $('#dropdown').hide();
54
 
        open = false;
55
 
    }
56
 
}
57
 
 
58
 
$(function () {
59
 
        $('section.group div.heading').bind('click', function (e) {
60
 
                var heading1 = $(this);
61
 
                if (heading1.hasClass('open')) {
62
 
                        heading1.removeClass('open').next().animate({
63
 
                                height: 0
64
 
                        }, 200, function () {
65
 
                                heading1.css({
66
 
                                        height: "auto",
67
 
                                        overflow: "hidden"
68
 
                                });
69
 
                        });
70
 
                        if (heading1.parent().parent().hasClass('content')) {
71
 
                                heading1.parent().parent().css({
72
 
                                        height: "auto",
73
 
                                        overflow: "show"
74
 
                                });
75
 
                        }
76
 
                } else {
77
 
                        var innerHeight = 0;
78
 
                        heading1.next().children().each(function () {
79
 
                                innerHeight += this.offsetHeight;
80
 
                        });
81
 
                        heading1.addClass('open').next().animate({
82
 
                                height: innerHeight
83
 
                        }, 200);
84
 
                        if (heading1.parent().parent().hasClass('content')) {
85
 
                                heading1.parent().parent().css({
86
 
                                        height: "auto",
87
 
                                        overflow: "show"
88
 
                                });
89
 
                        }
90
 
//heading1.parent().siblings().each(function(){
91
 
// $(this).find('div.heading1.open').removeClass('open').next().animate({height:0},200)
92
 
//});
93
 
}
94
 
});
95
 
});
 
 
b'\\ No newline at end of file'
 
45
}
 
 
b'\\ No newline at end of file'