summaryrefslogtreecommitdiff
path: root/js/bootswatch.js
blob: cdfe2325baa6cb0ffd69572351ffa7f9e0a5b549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var menu = '<ul class="nav"> \
              <li><a id="swatch-link" href="#swatches">Gallery</a></li> \
			  <li class="dropdown"> \
	         <a class="dropdown-toggle" data-toggle="dropdown" href="#">Preview <b class="caret"></b></a> \
	         <ul class="dropdown-menu"> \
	           <li><a href="/default">Default</a></li> \
	           <li class="divider"></li> \
	           <li><a href="/cerulean">Cerulean</a></li> \
	           <li><a href="/cyborg">Cyborg</a></li> \
	           <li><a href="/journal">Journal</a></li> \
	           <li><a href="/simplex">Simplex</a></li> \
	           <li><a href="/slate">Slate</a></li> \
	           <li><a href="/spacelab">Spacelab</a></li> \
	           <li><a href="/united">United</a></li> \
	         </ul> \
	       </li>';

if(document.title !== 'Bootswatch: Free themes for Twitter Bootstrap') {
	menu = menu + '<li class="divider-vertical"></li> \
					   <li class="dropdown"> \
				         <a class="dropdown-toggle" data-toggle="dropdown" href="#">Download <b class="caret"></b></a> \
				         <ul class="dropdown-menu"> \
				           <li><a target="_blank" href="bootstrap.min.css">bootstrap.min.css</a></li> \
				           <li><a target="_blank" href="bootstrap.css">bootstrap.css</a></li> \
				           <li class="divider"></li> \
				           <li><a target="_blank" href="variables.less">variables.less</a></li> \
				           <li><a target="_blank" href="bootswatch.less">bootswatch.less</a></li> \
				         </ul> \
				       </li>';
}

menu = menu + '			</ul> \
						<ul class="nav pull-right"> \
			  				<li><a rel="tooltip" target="_blank" href="http://wrapbootstrap.com" title="Marketplace for premium templates and themes">WrapBootstrap <i class="icon-share-alt icon-white"></i></a></li> \
			  			</ul>';

			$('.navbar .nav-collapse').first().append(menu);
			
			console.log($('a[rel=tooltip]'));
			$('a[rel=tooltip]').tooltip({
				'placement': 'bottom'
			});