1 |
85ad3d82
|
Assos Assos
|
|
2 |
|
|
(function ($) {
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
Drupal.behaviors.skyCollapsRegionToggle = {
|
8 |
|
|
attach: function (context, settings) {
|
9 |
|
|
$('.collapsible-toggle a, context').click(function() {
|
10 |
|
|
$('#section-collapsible').toggleClass('toggle-active').find('.region-collapsible').slideToggle('fast');
|
11 |
|
|
return false;
|
12 |
|
|
});
|
13 |
|
|
}
|
14 |
|
|
}
|
15 |
|
|
|
16 |
|
|
Drupal.behaviors.skyCollapsMenuToggle = {
|
17 |
|
|
attach: function (context, settings) {
|
18 |
|
|
$('.menu-toggle a, context').click(function() {
|
19 |
|
|
$('#menu-bar').toggleClass('toggle-active').find('nav').slideToggle('fast');
|
20 |
|
|
return false;
|
21 |
|
|
});
|
22 |
|
|
}
|
23 |
|
|
}
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
Drupal.behaviors.skyPosts = {
|
32 |
|
|
attach: function (context, settings) {
|
33 |
|
|
|
34 |
|
|
if (!jQuery.support.leadingWhitespace) {
|
35 |
|
|
$('.article-content p:first-child').addClass('first-child');
|
36 |
|
|
$('.article-content img, context').parent(':not(.field-item, .user-picture)').each(function(index) {
|
37 |
|
|
var stripe = (index/2) ? 'even' : 'odd';
|
38 |
|
|
$(this).wrap('<div class="content-image-' + stripe + '"></div>');
|
39 |
|
|
});
|
40 |
|
|
}
|
41 |
|
|
|
42 |
|
|
$("time span a").click( function() {
|
43 |
|
|
prompt('Link to this comment:', this.href);
|
44 |
|
|
return false;
|
45 |
|
|
});
|
46 |
|
|
}
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
})(jQuery); |