How to Create Custom Header Template for Shell Scripts in Vim

In this article, we will show you a simple way to configure a custom header for all newly created bash scripts in Vim editor. This means that every time you open a new .sh...

Spread the love

‘,
enableHover: false,
enableTracking: true,
buttons: { twitter: {via: ‘tecmint’}},
click: function(api, options){
api.simulateClick();
api.openPopup(‘twitter’);
}
});
jQuery(‘#facebook’).sharrre({
share: {
facebook: true
},
template: ‘{total}’,
enableHover: false,
enableTracking: true,
click: function(api, options){
api.simulateClick();
api.openPopup(‘facebook’);
}
});
jQuery(‘#googleplus’).sharrre({
share: {
googlePlus: true
},
template: ‘{total}’,
enableHover: false,
enableTracking: true,
urlCurl: ‘https://www.tecmint.com/wp-content/themes/tecmint/js/sharrre.php’,
click: function(api, options){
api.simulateClick();
api.openPopup(‘googlePlus’);
}
});
jQuery(‘#linkedin’).sharrre({
share: {
linkedin: true
},
template: ‘{total}’,
enableHover: false,
enableTracking: true,
buttons: {
linkedin: {
description: ‘How to Create Custom Header Template for Shell Scripts in Vim’,media: ‘https://www.tecmint.com/wp-content/uploads/2018/02/Create-Custom-Header-in-Shell-Scripts.png’ }
},
click: function(api, options){
api.simulateClick();
api.openPopup(‘linkedin’);
}
});
// Scrollable sharrre bar, contributed by Erik Frye. Awesome!
var shareContainer = jQuery(“.sharrre-container”),
header = jQuery(‘#header’),
postEntry = jQuery(‘.entry’),
$window = jQuery(window),
distanceFromTop = 20,
startSharePosition = shareContainer.offset(),
contentBottom = postEntry.offset().top + postEntry.outerHeight(),
topOfTemplate = header.offset().top;
getTopSpacing();
shareScroll = function(){
if($window.width() > 719){ var scrollTop = $window.scrollTop() + topOfTemplate,
stopLocation = contentBottom – (shareContainer.outerHeight() + topSpacing);
if(scrollTop > stopLocation){
shareContainer.offset({top: contentBottom – shareContainer.outerHeight(),left: startSharePosition.left});
}
else if(scrollTop >= postEntry.offset().top-topSpacing){
shareContainer.offset({top: scrollTop + topSpacing, left: startSharePosition.left});
}else if(scrollTop 1024)
topSpacing = distanceFromTop + jQuery(‘.nav-wrap’).outerHeight();
else
topSpacing = distanceFromTop;
}
});
]]>

Facebook Comments

More Stuff

Deal: Learn Python Programming Pro Bundle (6-Courses) $29 – Save 8... Ready for a assured career upgrade? Python programming language is one of the most popular and widely used coding language in today’s world, and with ...
How to Setup Local HTTP Yum Repository on CentOS 7 A software repository (“repo” in short) is a central file storage location to keep and maintain software packages, from which users can retrieve packa...
How to Install Skype 8.13 on Debian, Ubuntu and Linux Mint by Ravi Saive | Published: January 23, 2018 | Last Updated: January 23, 2018 Skype is a most popular software application developed by Microsoft tha...
A House Republican Joins the Fight to Save Net Neutrality Democrats just gained a Republican ally in the battle to save net neutrality. Today, Representative Mike Coffman (R-Colorado) became the first House R...
Spread the love

Posted by News Monkey