• Stars
    star
    148
  • Rank 249,983 (Top 5 %)
  • Language
    CSS
  • Created over 9 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Marketing slider form for MailChimp and Campaign Monitor

#Subbscribe

Requirements

I tried to keep it as light as possible. The only thing you need to is jQuery and a MailChimp or CampaignMonitor form with the default name and email fields.

How to use

It's really easy to get started. First you need to include the required libraries at the bottom of your HTML page:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="subbscribe.min.js"></script>

And the CSS file at the head:

<link rel="stylesheet" href="subbscribe.css" />

Then, you can initialise the plugin using the documentโ€™s body as the container, passing your list and form url parameters.

$('body').subbscribe({
    list: "MailChimp",
    url : "//1bytebeta.us9.list-manage.com/subscribe/post?u=1c261e60d8259c0c636801494&amp;id=7fa99bf359"
});

The list and formโ€™s URL are required. The plugin will log an error if they are not provided.

Options

list - 'MailChimp' or 'CampaignMonitor'

delay - Dispatch the slide in after X number of seconds

url - Your MailChimp/CampaignMonitor form URL. You can get it from the form embed script under the action attribute.

title - The window title.

text - The text that will show up above the form when a user click to subscribe.

name - The name that will show up next to the thumbnail. This could be a link to a Twitter handle.

color - The color of the button.

thumbnail - A path to the thumbnail you wish to include. Make sure itโ€™s a square as the plugin will scale it down to 40x40px

emailonly - If set to true, the name field will not be included in the opt-in form.

cm_mail_field - If CampaignMonitor is used as client, a CM mail field should be provided.

Callbacks

onClose - Called when someone close the pop-up without subscribing.

onSubbscribe - Called when someone completed his subscription.

License

The MIT License

Copyright (c) 2012-2015 1Byte Beta [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

trex-runner

๐Ÿฆ– Chrome's Dinosaur Game in C++
C
132
star
2

formbuilder

๐Ÿ’พ Drop-in form builder written in JavaScript
JavaScript
84
star
3

sdl-wasm

๐Ÿ’พ C/SDL example using WebAssembly and HTML5 canvas
C
53
star
4

ultra64-demos

๐ŸŽฎ Original SGI Nintendo 64 demos
C
28
star
5

dave-wasm

๐Ÿ•น Dangerous Dave in C/SDL using WebAssembly
C
13
star
6

vue-color-picker-board

๐ŸŽจ A natural color picker component for Vue.js
Vue
11
star
7

express-client

โšก Promised-based HTTP client for modern C++ development
C++
8
star
8

vga-pong

๐Ÿ•น Pong in C/VGA (0x13) compiled with Borland C 3.1 (DOS)
C
7
star
9

texture-packer

๐Ÿ–ผ Spritesheet generator using rectangle bin packing algorithm
C++
5
star
10

chip8

๐Ÿ‘พ Chip-8 interpreter in modern C++
C++
4
star
11

dns-lookup

๐ŸŒ DNS hostname resolution CLI tool using BSD sockets
C++
3
star
12

echo-server

๐Ÿ“ข A simple TCP echo server with different methods for sync multiplexing
C
2
star
13

https-request

๐ŸŒ A command-line tool that makes HTTPS requests written in C++17
C++
2
star
14

opengl-cmake

๐Ÿฆ‘ OpenGL starter project for C++ using CMake and Conan
C++
2
star
15

cpp-project

๐Ÿ“ฆ Boilerplate for C++ projects configured for VSCode with Docker, Clang, CMake, GoogleTest, Travis CI, Doxygen
Dockerfile
1
star
16

cpp-rest-server

Simple HTTP REST API server using cpprestsdk
C++
1
star
17

assimp2h

๐ŸงŠ Convert 3D models into C++ vectors using Assimp
C++
1
star
18

webgl-starter

A project template for a vanilla WebGL application using Vite and Typescript
TypeScript
1
star