UNPKG

jquery.skeleton.loader

Version:

Lo scheletrone is a a jQuery plugin to make screen skeleton loader....magically!

172 lines (154 loc) 5.25 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Lo scheletrone - A query plugin to make screen skeleton loader!</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Le styles --> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <link href="css/jquery.skeleton.css" rel="stylesheet"> <style type="text/css"> body { padding-top: 20px; padding-bottom: 60px; } /* Custom container */ .container { margin: 0 auto; max-width: 1000px; } .container > hr { margin: 60px 0; } /* Main marketing message and sign up button */ .jumbotron { margin: 40px 0; text-align: center; } .jumbotron h1 { font-size: 36px; line-height: 1; padding: 0.25em 0; background-image: -webkit-linear-gradient(top, #0079ff, #005dff); color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); } .jumbotron .lead { font-size: 24px; line-height: 1.25; } .jumbotron .btn { font-size: 21px; padding: 14px 24px; } /* Supporting marketing content */ .marketing { margin: 60px 0; } .marketing p + h4 { margin-top: 28px; } /* Customize the navbar links to be fill the entire space of the .navbar */ .navbar .navbar-inner { padding: 0; } .navbar .nav { margin: 0; display: table; width: 100%; } .navbar .nav li { display: table-cell; width: 1%; float: none; } .navbar .nav li a { font-weight: bold; text-align: center; border-left: 1px solid rgba(255,255,255,.75); border-right: 1px solid rgba(0,0,0,.1); } .navbar .nav li:first-child a { border-left: 0; border-radius: 3px 0 0 3px; } .navbar .nav li:last-child a { border-right: 0; border-radius: 0 3px 3px 0; } </style> <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <![endif]--> <!-- Fav and touch icons --> </head> <body> <div class="container"> <!-- Jumbotron --> <div class="jumbotron"> <h1>Skeleton Plugin</h1> </div> <hr> <!-- Example row of columns --> <div class="row-fluid" id="skeletone"> <div class="span4" > <h2>Titolo 1</h2> <p>Donec id elit non mi porta gravidaat eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> </div> <div class="span4"> <h2>Titolo 2</h2> <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> </div> <div class="span4"> <h2>Titolo 3</h2> <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.</p> </div> </div> <br> <br> <br> <h1>Photographers</h1> <div class="row-fluid" id="skeletone2"></div> <h1>Photographer (with selector option)</h1> <div class="row-fluid" id="skeletone3"></div> <hr> </div> <!-- /container --> <script src="../src/jquery.min.js"></script> <script src="../src/jquery.scheletrone.js"></script> <script> $(function() { var instance = $('#skeletone').scheletrone({ url : "index2.html", debug : { latency: 4000 }, incache: false, onComplete: function() { console.info('plugin is loaded') console.info('wait 3 secs for the data'); } }); var instance = $('#skeletone2').scheletrone({ url : "index3.html", debug : { latency: 3000 }, incache: true, onComplete: function() { console.info('plugin is loaded') console.info('wait 3 secs for the data'); } }); var instance = $('#skeletone3').scheletrone({ url : "index3.html", incache: true, selector: '#containerSingle' }); }); </script> </body> </html>