--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/demo-bootstrap.html Sun May 05 20:12:26 2013 +0900
+ <title>Lensy with Bootstrap Styles</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet">
+ <link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
+ <script src="jquery.lensy.js"></script>
+ <style id="page-niceties">
+ background-color: #fff;
+ border: 1px solid #ddd;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ background-color: #f5f5f5;
+ border: 1px solid #ddd;
+ -webkit-border-radius: 4px 0 4px 0;
+ -moz-border-radius: 4px 0 4px 0;
+ border-radius: 4px 0 4px 0;
+ font-family: monospace;
+ padding: 39px 8px 8px 8px;
+ background-color: #f7f7f9;
+ border: 1px solid #e1e1e8;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ content: 'Live clickable <select>';
+ <div class="container">
+ <div class="page-header">
+ <h2>Lensy with Bootstrap Styles</h2>
+ <select multiple name="colors">
+ <option>#0e90d2</option>
+ <option>#4bb1cf</option>
+ <option selected>#5eb95e</option>
+ <option selected>#faa732</option>
+ <option>#dd514c</option>
+ modalClass: 'lensy-modal modal',
+ containerClass: 'inline',
+ widgetClass: 'lensy-widget inline well well-small',
+ closeButtonClass: 'btn',
+ itemActiveClass: 'thumbnail',
+ itemFn: function(value) {
+ var colorbox = $('<div>').css({width: '64px', height: '64px', background: value});
+ $('select').appendTo('#live-select').show();
+ $('pre#css').text($('#lensy-css').text().trim().replace(/^ {6}/gm, '').replace(/}/g, '}\n'));
+ $('pre#js').text($('#lensy-js').text().trim().replace(/^ {12}/gm, ''));
+ <div id="live-select" class="example"></div>
+ <pre id="css" class="prettyprint lang-css"></pre>
+ <pre id="js" class="prettyprint lang-js"></pre>
+ <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/demo-foundation4.html Sun May 05 20:12:26 2013 +0900
+<!--[if IE 8]><html class="no-js lt-ie9" lang="en"><![endif]-->
+<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Lensy with Foundation 4 Styles</title>
+ <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/foundation/4.1.2/css/normalize.min.css">
+ <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/foundation/4.1.2/css/foundation.min.css">
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
+ <script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/4.1.2/js/vendor/custom.modernizr.min.js"></script>
+ <script src="jquery.lensy.js"></script>
+ <style id="page-niceties">
+ font-family: monospace;
+ background-color: #eee;
+ border: 1px solid #cccccc;
+ content: 'Live clickable <select>';
+ background-color: white;
+ border: 1px solid #cccccc;
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
+ .lensy-widget .lensy-item {
+ <body class="antialiased">
+ <div class="small-12 columns">
+ <h2>Lensy with Foundation 4 Styles</h2>
+ <select multiple name="colors" style="width: 200px;">
+ <option selected>#0e90d2</option>
+ <option selected>#4bb1cf</option>
+ <option>#5eb95e</option>
+ <option>#faa732</option>
+ <option>#dd514c</option>
+ modalClass: 'lensy-modal reveal-modal open',
+ containerClass: 'inline-list',
+ widgetClass: 'lensy-widget inline-list',
+ closeButtonClass: 'button',
+ itemFn: function(value) {
+ var colorbox = $('<div>').css({width: '64px', height: '64px', background: value});
+ $('select').appendTo('#live-select').show();
+ $('pre#css').text($('#lensy-css').text().trim().replace(/^ {6}/gm, '').replace(/}/g, '}\n'));
+ $('pre#js').text($('#lensy-js').text().trim().replace(/^ {12}/gm, ''));
+ <div id="live-select"></div>
+ <pre id="css" class="prettyprint lang-css"></pre>
+ <pre id="js" class="prettyprint lang-js"></pre>
+ <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/demo.html Sun May 05 20:12:26 2013 +0900
+ <title>Lensy Demo</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.min.css" rel="stylesheet">
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
+ <script src="jquery.lensy.js"></script>
+ <style id="page-niceties">
+ background-color: #fff;
+ border: 1px solid #ddd;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ background-color: #f5f5f5;
+ border: 1px solid #ddd;
+ -webkit-border-radius: 4px 0 4px 0;
+ -moz-border-radius: 4px 0 4px 0;
+ border-radius: 4px 0 4px 0;
+ font-family: monospace;
+ padding: 29px 8px 8px 8px;
+ background-color: #f7f7f9;
+ border: 1px solid #e1e1e8;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ content: 'Live clickable <select>';
+ background: rgba(0, 0, 0, 0.75);
+ border: 1px solid transparent;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border: 1px solid #cccccc;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+ .lensy-widget .lensy-item {
+ .lensy-widget .lensy-item span {
+ border: 1px solid transparent;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ .lensy-container:before,
+ .lensy-container:after {
+ .lensy-container:after {
+ box-shadow: 0px 0px 6px 1px white;
+ <div class="container">
+ <div class="page-header">
+ <select multiple name="colors">
+ <option selected>#0e90d2</option>
+ <option>#4bb1cf</option>
+ <option>#5eb95e</option>
+ <option>#faa732</option>
+ <option selected>#dd514c</option>
+ itemFn: function(value) {
+ var colorbox = $('<div>').css({width: '64px', height: '64px', background: value});
+ widgetItemFn: function(value) {
+ // If you don't define this function,
+ // itemFn will be used for widget items.
+ .css({background: value})
+ $('select').appendTo('#live-select').show();
+ $('pre#css').text($('#lensy-css').text().trim().replace(/^ {6}/gm, '').replace(/}/g, '}\n'));
+ $('pre#js').text($('#lensy-js').text().trim().replace(/^ {12}/gm, ''));
+ <div id="live-select" class="example"></div>
+ <pre id="css" class="prettyprint lang-css"></pre>
+ <pre id="js" class="prettyprint lang-js"></pre>
+ <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>