Sharerbox - Free, minimalist and lightweight JavaScript-based social-media sharer for websites

Overview

Sharerbox

Free minimalist and lightweight JavaScript-based social-media sharer for websites.

Version: 0.8.1

Description

SharerBox is a free, minimalistic and lightweight JavaScript-Based social-media sharebar feature developed to provide fast and easy out-of-the-box social-media sharing integration for small websites by eliminating the need for loading heavy or bulky third-party social APIs, which usually have a negative impact on loading speeds and unauthorizedly recolect private user information.

Integrating SharerBox directly on your website for social-media sharing instead of external APIs should significantly reduce loading speeds for visitors connected from slow networks, which will result on improved SEO indexation and enhanced user experience and device portability, specially for visitors connected from old computers or low-end devices. Plus, since there is no need for integrating obscure third-party code there is also no unauthorized recolection of private user information derived from using SharerBox.

SharerBox is currently a personal project, but it's integration process is intended to be easy for unexperienced users as well as very easy to customize for developers.

Support:

Integration:

  1. Download SharerBox's JavaScript File and store it on your server.

  2. Load the script asynchronously within your webpage's HTML <head> tag using the async attribute.

    Example:

    <script type="application/javascript" src="path/to/sharerbox.js" async></script>
  3. Copy this code snippet anywhere inside or after your HTML page's <body> tag.

    Example:

<script>
	window.onload = function(){
		sharerboxIcons( /* list your preferred social-networks here, else options are set to default */ );
		sharerSetup( /* Behavior options go here, else options are set to default */ );
	};
</script>
  1. Save Changes and reload your site.
  • All done, sharerbox will now be enabled on your site.

Options:

Icons

  • Social-Networks: 'site1, site2, site3' A list of social-network names separated by spaces of commas.

Setting Icons

You can specify which social-network icons will be displayed by going to the sharerboxIcons() function inside the code snippet pasted within your <body> tag and typing a string list of supported social-network items separated by spaces or commas, the full list must be wrapped around quotation marks.

Example:

sharerboxIcons('site1, site2, site3, site...');

OR:

sharerboxIcons('site1 site2 site3 site...');

Additionally, you can customize the size of the buttons by adding an additional numeric parameter representing a given number of pixels (accepted size ranges: 25-100 pixels):

sharerboxIcons('site1, site2, site3, site...', 45);

(if this function is leaved blank sharerbox will display it's default buttons).

Behavior Settings

  • Behavior: 'pop-up' (default) or 'new tab'; Sets how the sharer menus will be deployed.
  • Position: 'left' or 'right' (default); Sets the position of the sharebar in the screen.
  • Color: 'color name' (Black by default).; Selects a color for the toggle button.
  • Visibility: 'visible', 'yes' or true; Enables the icon bar default visibility (hidden by default).
  • Description: 'quoted text'; Creates a predefined message or website description for social-networks.

Setting Behavior

To customize Sharerbox overall behavior enter these options into the sharerSetup() function located inside the code snippet pasted on your page's <body> tag, each argument must be written as a quoted word ('word'), each quoted word separated from each other by commas.

Example:

sharerSetup('tab', 'right', 'black', 'visible', 'Custom description');

(if these options are leaved blank SharerBox will run with it's default behavior).

Example

Full Example:

<script>
	window.onload = function(){

		// Buttons list: 'site1, site2, site3'
		// Buttons size: number
		sharerboxIcons('facebook, twitter, whatsapp, reddit', 45);

		// Setup arguments: Behavior, Position, Color, Visibility, Description
		sharerSetup('pop-up', 'left', 'black', true, 'custom message or description goes here (optional)');
	};
</script>

Author

Juan Astudillo

Fiverr | LinkedIn | Email

You might also like...

A health-focused app for users to be able to track workouts and nutritional data with a social media component to inspire friendly competition among the users.

A health-focused app for users to be able to track workouts and nutritional data with a social media component to inspire friendly competition among the users.

Aug 26, 2022

Chrome extension for replacing addictive and annoying features of various social media sites with inspirational quotes.

Chrome extension for replacing addictive and annoying features of various social media sites with inspirational quotes.

Saner Social Media Chrome extension for replacing addictive and annoying features of various social media sites with inspirational quotes. Saner Socia

Oct 4, 2022

Social media platform that hosts community-driven challenges where everyone can play and compete

Social media platform that hosts community-driven challenges where everyone can play and compete

Komo A social media platform that hosts community-driven challenges where everyone can play and compete. How To Install Komo TBA Preview Home Screen A

Jun 13, 2022

Lenster is a decentralized, and permissionless social media app built with Lens Protocol 🌿

Lenster Decentralized, and permissionless social media app 🌿 lenster.xyz » Discord • Issues 🌿 About Lenster Lenster is a decentralized, and permissi

Jan 7, 2023

A social-media mock app for the ones who love to read - and maybe show it off

🐋 🐳 Cachalote 🐳 🐋 Share what you are reading and find people who also likes it - or not! What does it do? This app focuses on three main questions

May 22, 2022

A new social media site for Pokemon lovers, where you can connect with other Pokemon lovers and share messages.

A new social media site for Pokemon lovers, where you can connect with other Pokemon lovers and share messages.

PokeBook Description A new social media site for Pokemon lovers, where you can connect with other Pokemon lovers and share messages. Tools and Languag

Jun 18, 2022

Decentralized Social Media. Built using Next.js. Web3 integration with Moralis, Metamask and Ethers.js. Also uses Lens Protofcol to get the profile data.

DecentraGram Decentralized Social Media. Built using Next.js. Web3 integration with Moralis, Metamask and Ethers.js. Also uses Lens Protofcol to get t

Dec 20, 2022

A collection of social media strategies for remix-auth

Remix Auth Socials A collection of Remix Auth strategies for Oauth2 Social logins. 👷 If you are interested in creating one of the planned strategies,

Jan 5, 2023

Updog is an open-source social media webapp intended to allow everyday people to share their thoughts in a welcoming community.

SE701-Updog Updog is an open-source social media webapp intended to allow everyday people to share their thoughts in a welcoming community. This proje

Apr 18, 2022
Releases(v0.10.0)
Owner
Juan Astudillo
Web Developer & Rookie Game Dev
Juan Astudillo
A social media platform aimed to capture the essence of all popular, existing social media platforms

Social Fuel Reimagining Social Media, step by step ?? About A social media platform aimed to capture the essence of all popular, existing social media

HariHaran 6 Feb 12, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
An open source, self-hosted, and entirely free solution to social media management.

An open source, self-hosted, and entirely free solution to social media management. Status ?? In Development ?? Shoutify is currently early in the dev

TechSquidTV 202 Dec 22, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A web component that allows you to run high level programming languages on your websites (static websites included!)

Code-Runner-Web-Component A web component that allows you to run high level programming languages on your website via the public Piston API Show your

Marketing Pipeline 28 Dec 16, 2022
JavaScript framework for creating beautiful, fast and lightweight websites based on flutter way of coding ☜(゚ヮ゚☜)

Welcome to Flutjs project ?? Flutjs is a javascript framework for creating beautiful, fast and lightweight websites. As the name suggests, Flutejs is

Filipe Lukebana 25 Nov 9, 2022
A set of connectors to describe, parse and process the data sources provided by websites and social networks

HUDI-PACKAGE-CONNECTORS What is this repository for? A set of connectors to describe, parse and process the data sources provided by websites and soci

HUDI 8 Aug 5, 2022
A full-stack social media application where users can post and share their coding projects, adding friends, and joining the discussion in threaded comments on project posts.

CodeFlow Description CodeFlow is a social media application where users can post and share their coding projects with others. By logging in or signing

Chris Nohilly 4 Dec 8, 2022
Lets you add a character to Hacker News links to add social media and OpenGraph previews for sharing on things like Slack or Twitter.

news.ycombinator1.com Lets you add a character to Hacker News links to add social media and OpenGraph previews for sharing on things like Slack or Dis

Ian Langworth ☠ 38 Sep 18, 2022