aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-16 16:14:01 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-16 16:14:56 +0100
commit6bde70d60a02e9e461bc8cb6dcb475778c435fec (patch)
tree95121b9236e905c98f2d050064b73198dec5621b /view/theme
parent5252211c921a429c3c8e93278c4dfb9637afc190 (diff)
downloadvolse-hubzilla-6bde70d60a02e9e461bc8cb6dcb475778c435fec.tar.gz
volse-hubzilla-6bde70d60a02e9e461bc8cb6dcb475778c435fec.tar.bz2
volse-hubzilla-6bde70d60a02e9e461bc8cb6dcb475778c435fec.zip
move the sticky-kit^Cquery plugin to /lib and see if we want this for the whole app
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/js/redbasic.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index c5f74db3f..c3c2c7e3f 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -16,6 +16,23 @@ $(document).ready(function() {
}
$('#css3-calc').remove(); // Remove the test element
+ if($(window).outerWidth() > 767) {
+ $('#left_aside_wrapper').stick_in_parent({
+ offset_top: $('nav').outerHeight(true)
+ });
+ }
+
+ $(window).resize(function() {
+ if($(window).outerWidth() > 767) {
+ $('#left_aside_wrapper').stick_in_parent({
+ offset_top: $('nav').outerHeight(true)
+ });
+ }
+ else {
+ $('#left_aside_wrapper').trigger("sticky_kit:detach");
+ }
+ });
+
$('#expand-aside').click(function() {
$('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left');
$('main').toggleClass('region_1-on');