Meet the new standard, meet Razorly! The fast & flexible CMS framework. Optimized for mobile and touch devices.
RazorBox is powered by Razor.ly
Simple examples directly from HTML (no additional javascript required, except the Razorbox plugin).
Razorbox is stackable and can initiate content over and over again!
Just change the method to "ajax" and set the URL in the "data-content" attribute.
Razorbox is easy to implement. Just add the 2 files to your <head> section, apply the class "Razorbox" to your element and specify the data attributes:
<script src="/assets/js/vendor/razorbox/jquery.razorbox.js"></script> <link href="/assets/js/vendor/razorbox/jquery.razorbox.css" rel="stylesheet" /> <a href="#!" class="Razorbox" data-title="Place title here" data-content="/ajax/video.php" data-method="ajax" data-width="75%">Play video</a>
Want more options? Just add your custom events, callbacks or animations off the Razorbox on the element you want!
You can use Animate.css for all the animations
(see Animate.css)
$('#Manual').Razorbox({
sTitle : 'Set your title here',
sContent : 'Set content or content reference', // Just HTML, a inline element (#ElementID) or a full or local URL (depending on the method)
sMethod : 'notification', // Supports default (notification), dialog, inline, iframe, ajax
sWidth : '75%',
afterOpen : function() {
}
});
List of all the Razorbox options, events and callbacks.
Option
Default value
Description and optional values
sTitle data-title 'Custom title with styling' Can contain HTML code (default wrapper is <h2>) sContent data-content 'sHTML', '#YourContent' or '/ajax/video.php' Just HTML, a inline element (#ElementID) or a full or local URL (depending on the method) sMethod data-method default Type of Razorbox: notification (default), dialog, inline, iframe, ajax... sTarget data-target '#YourElementID' Updates the given element ID directly with the give data-content (sContent) sWidth data-width '75%' Width of Razorbox in pixels, percents or auto sHeight data-height 'auto' Pixels, percents or auto bAppMode data-appmode true True or false (handle razorboxes from bottom (as notification) on mobile devices) bShowBackground data-show-background true Show or hide the background layer bCloseBackground data-close-background false Close razorbox by clicking outside the box bCloseButton data-close-button true Add close button Animation
Default value
Description and optional values
sAnimationOpen data-animation-open 'fadeInUp' Animation of the content wrapper (on open) - See Animate.css for all options sAnimationClose data-animation-close 'fadeOutDown' Animation of the content wrapper (on close) - See Animate.css for all options sAnimationOpenTitle data-animation-open-title 'fadeInDown' Animation of the content title (on open) - See Animate.css for all options sAnimationCloseTitle data-animation-close-title 'fadeOutUp' Animation of the content title (on close) - See Animate.css for all options Events / callbacks
Example
beforeOpen function beforeOpen() { alert('Before opening razorbox (beforeOpen)'); }; afterOpen function afterOpen() { alert('After opening razorbox (afterOpen)'); }; beforeClose function beforeClose() { alert('Before closing razorbox (beforeClose)'); }; afterClose function afterClose() { alert('After closing razorbox (afterClose)'); }; beforeUpdate function beforeUpdate() { alert('Before update razorbox (beforeUpdate)'); }; afterUpdate function afterUpdate() { alert('After update razorbox (afterUpdate)'); };
Powered by TypeStack.io
Out of stacks :P
You can add as many stacks as you want. Create you're own inception ;)