aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-03 14:49:34 -0800
committerredmatrix <git@macgirvin.com>2016-03-03 14:49:34 -0800
commitdd4a66353af9150f418e4b0976c890923b57b04b (patch)
tree73528e3609b5b1006c259772422820d99c799483 /view/theme
parent2cf54c465d25918d582efcf2bce0e3086d270e72 (diff)
parentd3491c9165855ac7c2f1e0243a6c796ab36f9109 (diff)
downloadvolse-hubzilla-dd4a66353af9150f418e4b0976c890923b57b04b.tar.gz
volse-hubzilla-dd4a66353af9150f418e4b0976c890923b57b04b.tar.bz2
volse-hubzilla-dd4a66353af9150f418e4b0976c890923b57b04b.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge1.3
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/js/redbasic.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index d3f9c5f70..a4e13b8eb 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -3,16 +3,6 @@
*/
$(document).ready(function() {
- //Simple cover-photo implementation
- if($('#cover-photo').length && $(window).width() > 767) {
- $('.navbar-fixed-top').css('position', 'relative');
- $('aside, section').css('padding-top', 0 + 'px');
- $('main').css('opacity', 0);
- }
- else {
- $('#cover-photo').remove();
- }
-
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
if( $('#css3-calc').width() == 10) {
@@ -62,17 +52,3 @@ $(document).ready(function() {
}
setInterval(function () {checkNotify();}, 10 * 1000);
});
-
-//Simple cover-photo implementation
-$(window).scroll(function () {
- if($('#cover-photo').length && $(window).width() > 767 && $(window).scrollTop() >= $('#cover-photo').height()) {
- $('aside, section').css('padding-top', 71 + 'px');
- $(window).scrollTop($(window).scrollTop() - $('#cover-photo').height())
- $('.navbar-fixed-top').css('position', 'fixed');
- $('#cover-photo').remove();
- }
-
- if($('#cover-photo').length) {
- $('main').css('opacity', ($(window).scrollTop()/$('#cover-photo').height()).toFixed(1));
- }
-});