To top button in Loadout request - Better Battlelog Forums #1953

Sitemap
Topicstarter
Could anyone make a button on the bar with the apply button that brings you to the top? I hate scrolling all the way back each time.
That stripe with apply button is scrolling with you, no? At least for me its like that.
Topicstarter
juress wrote:
That stripe with apply button is scrolling with you, no? At least for me its like that.


It is, but what I meant was that I don't like scrolling all the way back to the top after doing what I need to do. I'd like to have a "To Top" button on that stripe so that I don't need to scroll all the way back up.
var handler = function() {
if (window.location.href.match(/\/loadout\//) && !$('#to-top').is('button')) {
$('TOP').appendTo($('div.profile-stats-loadout-header-actions'));
$('#to-top').css({'margin':'0px 0px 0px 10px','float':'right'}).click(function(){ $('html, body').animate({ scrollTop: 0 }, 0); });
}
};
BBLog.bindDomChange(handler);
handler();


That should add a top button to the bar.
zodiac686 wrote:
Could anyone make a button on the bar with the apply button that brings you to the top? I hate scrolling all the way back each time.


You should be able to press "Home" on your keyboard to bring you to the top of the page... End will take you to the bottom
Topicstarter
encryptedband wrote:
var handler = function() {
if (window.location.href.match(/\/loadout\//) && !$('#to-top').is('button')) {
$('TOP').appendTo($('div.profile-stats-loadout-header-actions'));
$('#to-top').css({'margin':'0px 0px 0px 10px','float':'right'}).click(function(){ $('html, body').animate({ scrollTop: 0 }, 0); });
}
};
BBLog.bindDomChange(handler);
handler();


That should add a top button to the bar.


Cool! Um... Could someone make this into a url? Sorry, I don't know much about this.
Here you go, works perfect! :)

https://dl.dropbox.com/u/97057514/GoToTop.js
Topicstarter
Inception wrote:
Here you go, works perfect! :)

https://dl.dropbox.com/u/97057514/GoToTop.js


Thank you so much!! :D It does work perfect!
Can you please update this to work with v3.0? It's very useful.
*bump*
Post edited 3 x times, last by
I've learned jQuery a day ago because I am making my personal webpage and than I realised, that BBlog plugins are also written in jQuery, so I edited this plugin to work with 3.x and made it translatable.

http://getbblog.com/en/board/topic/80157/1/To-Top-in-Loadout
thaaanks man cool
Post edited 1 x times, last by
have a problem here i have installed the plugin
sdbf.png

but i cant see anything of the plugin there is no button
jklsdfnonosgi.png

and i have allowed my browser (NotScripts) that i can use it
nujsfhusdzhf8fh.png
a question? why are you censoring everything?
otherwise on other screens you're censoring only uninterssting stuff but the "important" one not.

sometimes i really dont understand people...
Post edited 1 x times, last by
twm-killerkeks wrote:
have a problem here i have installed the plugin
sdbf.png

but i cant see anything of the plugin there is no button
jklsdfnonosgi.png

and i have allowed my browser (NotScripts) that i can use it
nujsfhusdzhf8fh.png

It only works in Loadout screen. I can try to make plugin for all pages.
@twm-killerkeks

No configured options to choose, no box required. This plugin doesn't have options.
why don't include we this as a main BBLog feature?