Commit 69395b14 authored by David Morley's avatar David Morley

load more sooner for infinite

parent ed31318a
......@@ -112,9 +112,9 @@ app.views.InfScroll = app.views.Base.extend({
var $window = $(window),
distFromBottom = $(document).height() - $window.height() - $window.scrollTop(),
lastElOffset = this.$el.children().last().offset(),
elementDistance = lastElOffset ? lastElOffset.top - $window.scrollTop() - 1500 : 1;
elementDistance = lastElOffset ? lastElOffset.top - $window.scrollTop() - 500 : 1;
if(elementDistance <= 0 || distFromBottom < 1500) {
if(elementDistance <= 0 || distFromBottom < 3400) {
this.trigger("loadMore");
}
}
......
......@@ -9,7 +9,7 @@
<input type="hidden" name="hosted_button_id" value="4JJKQLR8MZMEG">
<input type="hidden" name="on0" value="Options"><select name="os0">
<option value="Mocha">Mocha : $3.00USD - monthly</option>
<option value="Americano">Americano : $5.00USD - monthly</option>
<option selected value="Americano">Americano : $5.00USD - monthly</option>
<option value="Box o' Joe">Box o' Joe : $20.00USD - monthly</option>
<option value="Drip">Drip : $1.00USD - monthly</option>
<option value="Caramel Machiato">Caramel Machiato : $10.00USD - monthly</option>
......
:javascript
$(document).ready(function() {progress(107, $('#progressBar'));});
$(document).ready(function() {progress(48, $('#progressBar'));});
.content
Raised $1287 of $1200. Thank you all #newhere and #oldhere to help me with the cost of keeping diasp.org alive and AD free!
= link_to 'All Donation Options', "/supportyourpod"
Fundraiser for 2019 is on, raised $720 of $1500 so far. Thank you all #newhere and #oldhere to help me with the cost of keeping diasp.org alive and ad free for 2019! Paypal prefered but many other options.
= link_to 'Paypal', "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5ZNJB8TXSEGBW&source=url"
= link_to 'more...', "/supportyourpod"
#progressBar
%div
......@@ -2,4 +2,5 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= render partial: "shared/bar"
= render partial: "shared/stream_element", collection: posts, as: :post
......@@ -179,4 +179,5 @@
.stream-container#aspect-stream-container
- unless user_signed_in?
%h2= @stream.title
= render "shared/bar"
= render "aspects/aspect_stream", stream: @stream
#!/usr/bin/env ruby
# List of spam accounts
spam_accounts = %w(enekoblb@diasp.org)
spam_accounts = %w(flatsinchandigarh@diasp.org)
# Delete comments even if spammer isn't a local user or spam isn't on a
# local users account
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment