Options
The attributes below are called upon the initialization of the lightbox.
override - If set to true, calling alert(text) will fire ClassyLightbox with your text inside. Can be true/false.
background - Can be used to specify the background shade. Can be 'white', 'black', or 'none'.
centerOnResize - Used to specify wether or not the lightbox should stay centered on window resize. Can be true/false.
fade - Used to specify wether or not the lightbox's background should fade in or appear instantly. Can be true/false.
The attributes below are called per-lightbox.
text - Used to set the message displayed in the content pane.
width - Used to dictate ClassyLightbox's width. Set to adhere as a CSS String, e.g. "300px", "55%", etc.
title - Used to dictate ClassyLightbox's Title. Set to whatever you please.
leftButtons - Used to add buttons on the left side of the lightbox. Adhere to the following structure: leftButtons: ['Close']
rightButtons - Used to add buttons on the right side of the lightbox. Adhere to the following structure: rightButtons: ['Login', 'Register']
opened - Callback function for when the lightbox has fully opened. Perfect for loading data via ajax to the content pane (#lbContent)
onClick - Callback function for when the a button is clicked. If a button was titled "Enter", the parameter of this function will be "Enter". Used with switch/if else statements, one can add any functionality they want to each button.