User:Gryllida/js/goToTop-0.1.js

/* Author : Svetlana Tkachenko svetlana@members.fsf.org Licence: GPLv3+ Description: [beta] adds 'go to top' link at the right bottom of page Version: 0.1 Date: 2018-04-18 TODO: [ ]

technical details of customizing the toolbar snippets of code for common additions to the toolbar Derived work from Back_to_top
 * http://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar customization
 * http://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar customization/Library



var topStyle = 'width: 30px; height: 30px; opacity: 0.5; border-radius: 30px;'; topStyle = topStyle + 'background-color: #dddddd; position: fixed; bottom: 5px; right: 5px;'; topStyle = topStyle + 'margin:10px; align: center; padding:15px;font-size:15pt;'; topStyle = topStyle + 'cursor:pointer; color:black;'; topStyle = topStyle + 'background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Black_Arrow_Up.svg/24px-Black_Arrow_Up.svg.png");'; topStyle = topStyle + 'background-repeat: no-repeat;'; topStyle = topStyle + 'background-position: center;'; $('body').append($('', {href: '#top', style: topStyle}));