<title>Bootswatch: Components</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
- <link rel="stylesheet" href="../amelia/bootstrap.css" media="screen">
- <link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css">
+ <link rel="stylesheet" href="../amelia/bootstrap.css" media="screen" id="stylesheet">
<link rel="stylesheet" href="../assets/css/bootswatch.min.css">
+ <style>
+
+ #menu {
+ z-index: 1040;
+ position:fixed;
+ top:10px;
+ right:10px;
+ }
+
+ </style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
- <script src="../bower_components/bootstrap/assets/js/html5shiv.js"></script>
- <script src="../bower_components/bootstrap/assets/js/respond.min.js"></script>
+ <script src="../bower_components/html5shiv/dist/html5shiv.js"></script>
+ <script src="../bower_components/respond/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<li><a tabindex="-1" href="../slate/">Slate</a></li>
<li><a tabindex="-1" href="../spacelab/">Spacelab</a></li>
<li><a tabindex="-1" href="../united/">United</a></li>
+ <li><a tabindex="-1" href="../yeti/">Yeti</a></li>
</ul>
</li>
<li class="dropdown">
<div class="container">
<div class="page-header">
- <h1>Bootstrap</h1>
- <p class="lead">The original</p>
+ <h1 id="theme">Amelia</h1>
+ <p id="description" class="lead">Sweet and cheery</p>
</div>
<a class="btn btn-lg btn-danger" data-toggle="popover" title="" data-content="And here's some amazing content. It's very engaging. right?" data-original-title="A Title">Click to toggle popover</a>
</div>
</div>
-
-
-
-
- <footer>
- <ul class="list-unstyled">
- <li class="pull-right"><a href="#top">Back to top</a></li>
- <li><a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a></li>
- <li><a href="http://feeds.feedburner.com/bootswatch">RSS</a></li>
- <li><a href="https://twitter.com/thomashpark">Twitter</a></li>
- <li><a href="https://github.com/thomaspark/bootswatch/">GitHub</a></li>
- <li><a data-toggle="tooltip" title="Drag to your bookmarks bar" href="javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f%3De.jQuery)%7C%7Cg%3Ef.fn.jquery%7C%7Ch(f))%7Bc%3Da.createElement(%22script%22)%3Bc.type%3D%22text/javascript%22%3Bc.src%3D%22http://ajax.googleapis.com/ajax/libs/jquery/%22%2Bg%2B%22/jquery.min.js%22%3Bc.onload%3Dc.onreadystatechange%3Dfunction()%7Bif(!b%26%26(!(d%3Dthis.readyState)%7C%7Cd%3D%3D%22loaded%22%7C%7Cd%3D%3D%22complete%22))%7Bh((f%3De.jQuery).noConflict(1),b%3D1)%3Bf(c).remove()%7D%7D%3Ba.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,%221.3.2%22,function(%24,L)%7Bif(%24(%22.bootswatcher%22)%5B0%5D)%7B%24(%22.bootswatcher%22).remove()%7Delse%7Bvar%20%24e%3D%24(%27%3Cselect%20class%3D%22bootswatcher%22%3E%3Coption%3EAmelia%3C/option%3E%3Coption%3ECerulean%3C/option%3E%3Coption%3ECosmo%3C/option%3E%3Coption%3ECyborg%3C/option%3E%3Coption%3EJournal%3C/option%3E%3Coption%3EReadable%3C/option%3E%3Coption%3ESimplex%3C/option%3E%3Coption%3ESlate%3C/option%3E%3Coption%3ESpacelab%3C/option%3E%3Coption%3ESpruce%3C/option%3E%3Coption%3ESuperhero%3C/option%3E%3Coption%3EUnited%3C/option%3E%3C/select%3E%27)%3Bvar%20l%3D1%2BMath.floor(Math.random()*%24e.children().length)%3B%24e.css(%7B%22z-index%22:%2299999%22,position:%22fixed%22,top:%225px%22,right:%225px%22,opacity:%220.5%22%7D).hover(function()%7B%24(this).css(%22opacity%22,%221%22)%7D,function()%7B%24(this).css(%22opacity%22,%220.5%22)%7D).change(function()%7Bif(!%24(%22link.bootswatcher%22)%5B0%5D)%7B%24(%22head%22).append(%27%3Clink%20rel%3D%22stylesheet%22%20class%3D%22bootswatcher%22%3E%27)%7D%24(%22link.bootswatcher%22).attr(%22href%22,%22http://bootswatch.com/%22%2B%24(this).find(%22:selected%22).text().toLowerCase()%2B%22/bootstrap.min.css%22)%7D).find(%22option:nth-child(%22%2Bl%2B%22)%22).attr(%22selected%22,%22selected%22).end().trigger(%22change%22)%3B%24(%22body%22).append(%24e)%7D%3B%7D)%3B">Bookmarklet</a></li>
- <li><a href="http://news.bootswatch.com/post/22193315172/bootswatch-api">API</a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=F22JEM3Q78JC2">Donate</a></li>
- </ul>
- <p>Made by <a href="http://thomaspark.me">Thomas Park</a>. Contact him at <a href="mailto:hello@thomaspark.me">hello@thomaspark.me</a>.</p>
- <p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License v2.0</a>.</p>
- <p>Based on <a href="http://getbootstrap.com">Bootstrap</a>. Icons from <a href="http://fortawesome.github.io/Font-Awesome/">Font Awesome</a>. Web fonts from <a href="http://www.google.com/webfonts">Google</a>. Favicon by <a href="https://twitter.com/geraldhiller">Gerald Hiller</a>.</p>
- </footer>
</div>
- <script src="../bower_components/jquery/jquery.min.js"></script>
+ <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/0.7.2/mustache.min.js"></script>
<script src="../assets/js/bootswatch.js"></script>
<script>
$('[data-toggle=popover]').popover();
+ $.get("http://api.bootswatch.com/3/", function (data) {
+ var menuTemplate = "<div id='menu'><select>{{#.}}<option data-description='{{description}}'>{{name}}</option>{{/.}}</select></div>",
+ menuHTML = Mustache.render(menuTemplate, data.themes);
+
+ $('body').append(menuHTML);
+
+ $('#menu').change(function(){
+ var $theme = $('#menu :selected'),
+ theme = $theme.text(),
+ description = $theme.data('description'),
+ date = new Date(),
+ time = date.getTime()
+ url = '../' + theme.toLowerCase() + '/bootstrap.css?' + time;
+
+ $('#theme').text(theme);
+ $('#description').text(description);
+ $('#stylesheet').attr('href', url);
+ });
+ }, "json");
+
</script>
</body>
-</html>
\ No newline at end of file
+</html>