Anton Shestakov <av6@dwimlabs.net>, Wed, 22 Jun 2016 16:30:06 +0800
demo: update static files, use HTTPS with SRI
demo-bootstrap2.html
Permissions: -rw-r--r--
<title>Lensy with Bootstrap 2 Styles
</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" integrity="sha384-MY3lqAyZWEjvYefTFTBYUN85pnmwAxdSjsX+8IqCP1N5VBzOIX6GNo1rUt9gz74C" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap-responsive.min.css" integrity="sha384-F6SkVapMeW8omBv9cyqV+15oQ6VSZ+g9B3dXePPOKKVGEdFOfLo50I4anpVkG3kQ" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css" integrity="sha384-AkqcRujKtNDdBHrbDApQnhQjawj/rwmEPiHw7WWmBdH8nQjKsfJG96G8MK30WU80" crossorigin="anonymous"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha384-rY/jv8mMhqDabXSo+UCggqKtdmBfd3qC2/KvyTDNQ6PcUJXaxK1tMepoQda4g5vB" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js" integrity="sha384-ihFowtLatdMq7geOs1tSO3Y5yXQVT0B2jUG5RR6SnQYKluMoJ61w03yIT1ezGFXn" crossorigin="anonymous"></script> <script src="jquery.lensy.js"></script> <style id="page-niceties"> -webkit-border-radius: 4px; background-color: #f5f5f5; -webkit-border-radius: 4px 0 4px 0; -moz-border-radius: 4px 0 4px 0; border-radius: 4px 0 4px 0; padding: 39px 8px 8px 8px; background-color: #f7f7f9; border: 1px solid #e1e1e8; -webkit-border-radius: 4px; content: 'Live clickable <select>'; <div class="page-header"> <h2>Lensy with Bootstrap 2 Styles
</h2> <select multiple name="colors"> <option selected>#5eb95e
</option> <option selected>#faa732
</option> $.extend($.fn.lensy.defaults, { modalClass: 'lensy-modal modal', containerClass: 'inline', widgetClass: 'lensy-widget inline well well-small', itemActiveClass: 'thumbnail' itemFn: function(value, text) { var colorbox = $('<div>').css({width: '64px', height: '64px', background: text}); $('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>