Statistics
| Branch: | Tag: | Revision:

root / cloudcms / static / cloudcms / js / common.js @ c6fdba44

History | View | Annotate | Download (915 Bytes)

1
$(document).ready(function() {
2

    
3
        
4
    $('.show-extra').click(function(e) {
5
        e.preventDefault();
6
        $(this).parents('.bg-wrap').find('.extra').show('slow');
7
    });
8
    $('.hide-extra').click(function(e) {
9
        e.preventDefault();
10
        $(this).parents('.bg-wrap').find('.extra').hide('slow');
11
    });
12
    
13
    $('.box-more p').click(function(e) {
14
        $(this).siblings('.clearfix').toggle('slow');
15
        $(this).parents('.box-more').toggleClass('border');
16
    });
17
        
18
    
19
        $('select').dropkick();
20
        $('.top-msg a.close').click(function(e) {
21
        e.preventDefault();
22
        $(this).parents('.top-msg').slideUp('5000', function() {
23
             $('.top-msg').removeClass('active')
24
        });
25
    });
26
    
27
    if ( $('#os') ) {
28
       var os = BrowserDetect.OS;
29
       if ( os!=="an unknown OS" ) {
30
           $('#os').html('version '+os);
31
        }
32
    }
33
});