jQuery pop-up script displaying various types of content in corner of browser

Overview

Corner Popup v1.30

Fully customizable pop-up box created to display all types of messages in corner of your browser.

Website: https://espritdesign.pl/corner-popup
Demo: https://espritdesign.pl/corner-popup/demo

More about Corner Popup

What is Corner Popup? It's a simple pop-up component that can be used on almost all modern websites. It simply displays small pop-up box in corner of browser. Corner Popup is fully configurable and you can change many parameters - position, window color, content inside etc. Corner Popup is easy to use and you don't need any programming skills. As a component Corner Popup needs only jQuery to work. It is fully responsive without using any framework.

How to use

Using Corner Popup is very simple. As the first step, add jQuery and Corner Popup files for the project (remember to add appropriate files to folders):

<link rel="stylesheet" href="css/corner-popup.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="js/corner-popup.min.js"></script>

In step 2 call script from your website code:

<script>
$.fn.cornerpopup({
});
</script>

In step 3 you can (but it's not necessary) set some options in previously added code:

<script>
$.fn.cornerpopup({
variant: 1,
slide: 1
});
</script>

All available options with description:

Option Default Description
active true Makes popup enabled or disabled. If it is set to 1 popup will show. If set to 0 it's disabled.
displayOnce false If this option is set to 1, the popup will be displayed only once (which is stored in browser memory).
variant 1 Using this option you can set a variant of the popup window. There are 10 variants which could be used for different purposes - for example variant 2 is an option used for cookies information - it even creates and saves cookie for you.
slide false If this option is set to 1 standard method of showing a popup (fade) will change to slide.
slideTop false This option could be used only if "slide" is set to 1. It makes slide always work from bottom to top.
delay 0 This option sets delay to popup. It will appear after the amount of time you set as parameter (in milliseconds).
timeOut 0 This option sets the timeout to popup, so it will appear and disappear after the amount of time you set as parameter. If you set for example 500 it will disappear after 500ms.
closeBtn true Sets close button visibility - if it is set to 0 close button will not show in any variant of the popup.
shadow true Sets popup shadow visibility - if it is set to 0 shadow won't be visible in any variant of the popup.
link1 You can change the link that is used in variant 1 of popup. Just type a new address as first parameter and target as second - e.g. link1: "https://espritdesign.pl, _blank".
link2 # You can change the link that is used in most of popup variants. Just type a new address as first parameter and target as second - e.g. link2: "https://espritdesign.pl, _blank".
popupImg You can change the image used in popup variant 1. Type your own link to image here.
cookieImg You can change the image used in popup variant 2 (cookies). Type your own link to image here.
messageImg You can change the image used in popup variant 3 (message). Type your own link to image here.
header In this option you can change header used in some of popup variants. You can use html tags here.
text1 In this 2 options you can change text used in popup variants - text1 is for cookie message. You can use html tags here.
button1, button2, button3 In this 3 options you can change label used in the buttons. "button2" is used in cookies popup.
content You can place in this option text (including html tags) which is displayed in variant nr.10 of popup - this variant is made to show your own content.
loadContent false This option loads data from another file (e.g. html file with prepared content). Just write the file address as parameter.
width 390px This option is used to change the popup width. Use here css units.
font This option is used to change the font used in popup elements. Use here css code - e.g. "'Open Sans', 'Halvetica', sans-serif".
colors #543189 This option changes color of primary elements - close button icon, headers, buttons.
bgColor #fff This option changes background color of popup.
borderColor #efefef This option changes border color of popup.
textColor #181818 This option changes text color in popup.
iconColor #543189 This option changes close button color.
btnColor #543189 This option changes color of buttons in popup.
btnTextColor #fff This option changes color of text in buttons.
corners 0px This option is used to change popup corner radius.
position right This option is used to change position of the popup. You can change position to left, center or right.
padding 0 This option is used to change padding inside of the popup. You can change it to any value.
escClose false Closes pop-up window after Escape key is pressed. This option works if it is set to 1.
topCorner false Makes the pop-up appear at the top of the browser window. Works if it is set to 1.
stickToBottom false Removes the pop-up margin and makes it stick to the edge of the browser. Works if it is set to 1.

Corner Popup provides public methods (e.g. usage):

$.fn.cornerpopup.popupClose();
Method Description
popupClose Closes pop-up window whenever you want.
popupHide Hides pop-up window (it can be restored at any time).
popupShow Shows hidden pop-up window.

You can add delay for each method. Just call the method like this: $.fn.cornerpopup.popupShow(100); - where 100 is the time in milliseconds.

Corner Popup events:

<script>
$.fn.cornerpopup({
variant: 1,
beforePopup: function() {
// Your code here
}
</script>
Event Description
beforePopup Your code will work before the popup window appears.
afterPopup Your code will work after closing the pop-up window.
onBtnClick Your code will work after pressing the popup button.

License

Corner Popup is licensed under the Creative Commons Attribution 4.0 International License: https://creativecommons.org/licenses/by/4.0

Author

Łukasz Brzostek

Have a question about usage? Found a bug?
Feel free to write a message to me: [email protected]

You might also like...

Displaying actual age in percentage with 9 signs after dot (floating number)

Displaying actual age in percentage with 9 signs after dot (floating number)

Actual Age Chrome Extension Displaying actual age in percentage with 9 signs after dot (floating number) Features Popup You can select your Birth date

Nov 2, 2022

JavaScript API based capstone project using TVmaze API for displaying and interacting with items from the data base.

JavaScript API based capstone project using TVmaze API for displaying and interacting with items from the data base.

Yuriy Chamkoriyski & Bonke Gcobo Javascript capstone project API-based webapp from Module 2 at Microverse Wireframe requirements The Home Page low fid

May 30, 2022

App for displaying geospatial data on queues on the Polish-Ukrainian border.

Live app embedded here. App helps coordinate volunteer work with refugees from Ukraine on Polish-Belarusian Border. Data comes from Grupa Granica – a

Mar 10, 2022

Element for displaying HTML based on THREE.js HTMLMesh

Element for displaying HTML based on THREE.js HTMLMesh

AFrame-HTML a-entity html="#my-interface" position="0 1.5 -0.5"/a-entity Display an interactive HTML element in the scene. html-pointer component

Jan 3, 2023

A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

cryptoWriter.js A lightweight javascript library which creates brilliant text animation by rendering strings of random characters before the actual te

Sep 13, 2022

An App for backing up and better displaying Onetab data Powered by Tauri.

An App for backing up and better displaying Onetab data Powered by Tauri.

Onetab Re 『Data is Priceless』 Onetab Re 是一款用于备份并原样展示Onetab数据的应用,基于 Tauri 跨平台构建,支持 Windows macOS Linux. 备份脚本使用方法 请先确认已经正确安装node.js 安装后打开软件的scripts目录, 为

Nov 12, 2022

Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options e.g custom text or HTML message, duration, custom class, toggle close button, position, custom close icon and backgorund color.

Pure Javascript Toaster Requires Nothing Demo Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options

Jun 21, 2022

Dynamic island style widget for displaying what you're recently played on Spotify.

Spotify Island Dynamic island style widget for displaying what you're recently played on Spotify. 🚀 Check the demo spotify-island.mov 1. Get Spotify

Nov 24, 2022

Awesome Books project : An online Book Library. Storing book information using local storage and displaying it as a list on HTML page

This is project is my based on building an online Book Library. Storing book information using local storage and displaying it as a list on html page

Nov 11, 2022
Comments
  • Remember close action

    Remember close action

    Hello

    The popup is being fired on each page load. Is there anyway for the pop to remember to close action ? something like a cookie ? I am using variant 10.

    Thanks

    opened by neerbappoo 2
  • Popup CTA links do not work on Safari

    Popup CTA links do not work on Safari

    Describe the bug The CTAs on the popup on Safari do not work after clicking the button. I tried using your examples as well with no luck: https://espritdesign.pl/corner-popup/demo/

    To Reproduce Steps to reproduce the behavior:

    1. https://espritdesign.pl/corner-popup/demo/ (your demo)
    2. Select Standard popup
    3. Click on More button
    4. A user doesn't get redirected to a new page

    Expected behavior It should redirect to the link specified in JS options 'link1|link2 etc'

    Screenshots If applicable, add screenshots to help explain your problem.

    Desktop (please complete the following information):

    • OS: Mac (both mobile and desktop)
    • Browser: Safari
    • Version: 14
    opened by katysovas 2
  • Additional Instructions

    Additional Instructions

    Thank you for this project!

    I'm not much of a dev and need some help:

    Using the following in the script: link1: https://example.com

    How can I make it open to a new tab?

    I know for the most part, editing the content is just basic css work but a few more examples would be super helpful.

    Also, using variant 10 for example: 'Your own html here' - Where do I put my html and how should it be formatted in the script?

    edit: I used variant 10 and the 'content:' tag and put my html into that.

    Thanks

    opened by mrmookie 1
Compile-time tests for types. Useful to make sure types don't regress into being overly-permissive as changes go in over time.

expect-type Compile-time tests for types. Useful to make sure types don't regress into being overly-permissive as changes go in over time. Similar to

Misha Kaletsky 82 Jan 8, 2023
The browser (chrome/firefox) extension that hides annoying login pop-ups in the Twitter web app

The browser (chrome/firefox) extension that hides annoying login pop-ups in the Twitter web app

MaySoMusician 36 Dec 6, 2022
👌A useful zero-dependencies, less than 434 Bytes (gzipped), pure JavaScript & CSS solution for drop an annoying pop-ups confirming the submission of form in your web apps.

Throw out pop-ups confirming the submission of form! A useful zero-dependencies, less than 434 Bytes (gzipped), pure JavaScript & CSS solution for dro

Vic Shóstak 35 Aug 24, 2022
A dependency-free JavaScript library for creating discreet pop-up notifications.

Polipop A dependency-free JavaScript library for creating discreet pop-up notifications. Demo See demo at minitek.github.io/polipop/. Documentation Se

Minitek 8 Aug 15, 2022
This project will be using various AI and Rule Engine algorithm to detect various attack against a company!

?? Introduction This project will be using various AI and Rule Engine algorithm to detect various attack against a website! ?? Mission After starting

Harish S.G 4 Apr 29, 2022
A small jQuery plugin for displaying Muslim Prayer Times

jquery-prayer-times A small jQuery plugin for displaying Muslim Prayer Times. Features! English/Arabic language support. Auto detect visitor location.

Muhammad Mabrouk 3 Oct 30, 2022
You can easily create the horizontal timeline with two types by using this jQuery plugin.

jQuery.Timeline V2 You are able to easily create two types of horizontal timeline with this jQuery plugin. Report bug · Request feature · Blog Table o

ka2 222 Dec 9, 2022
Script to fetch all NFT owners using moralis API. This script output is a data.txt file containing all owner addresses of a given NFT and their balances.

?? Moralis NFT Snapshot Moralis NFT API will only return 500 itens at a time when its is called. For that reason, a simple logic is needed to fetch al

Phill Menezes 6 Jun 23, 2022
Script to synchronize between a Notion database and Google Calendar both ways. Uses Google App Script.

Yet Another Two Way Notion-Google Calendar Sync Script A script to sync events between Google calendar and a Notion database. Features! Google App Scr

kat 41 Jan 7, 2023
📦 An aframe component for displaying live stock tickers.

aframe-stock-ticker An aframe component for displaying live stock tickers. Also works with cryptocurrency and forex. Usage crypto-chart To create a cr

Mitarai 7 Jun 26, 2022