-
Notifications
You must be signed in to change notification settings - Fork 3
/
buttons.html
85 lines (75 loc) · 2.61 KB
/
buttons.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>jQuery LCARS Framework</title>
<link rel="stylesheet/less" href="demo.less" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="http://lesscss.googlecode.com/files/less-1.0.18.min.js"></script>
<script type="text/javascript" src="src/jquery.lcars.js"></script>
<script type="text/javascript">
$(function(){
$.lcars({
screen: 'full',
colors: {
color1: 'blue',
color2: 'purple'
},
content: {
padding: '0 1em',
ele: '#content'
},
sidePanel: '#side-panel',
css: 'src/'
});
// *********************************
$('.login').lcarsButton({
color: 'pink'
});
});
</script>
<noscript><h1><font color="red">Javascript is required to view this page!</font></h1></noscript>
</head>
<body>
<ul id="side-panel">
<li><a href="index.html">Index</a></li>
<li><a href="css.html">CSS</a></li>
<li><a href="debug.html">Debugger</a></li>
<li><a href="mobile.html">Mobile</a></li>
</ul>
<div id="content">
<h2>Button System</h2>
<p>Along with the LCARS website system is a very intuitive LCARS button creation system. With this system you can make an array of different buttons.</p>
<p>The button system is built right into the LCARS jquery plugin. All you need to do is use it. Here is a simple mark-up of how you do that.</p>
<div class="mono">
<pre>
$('#button').lcarsButton({
rounded: 'both', <span>// accepts both, left, right, none</span>
extended: false, <span>// this is true or false</span>
color: 'orange',
subTitle: { <span>// The sub title for your button</span>
direction: 'none', <span>// left or right</span>
text: '' <span>// the text for the sub title</span>
},
blank: 'none', <span>// blank button? left / right / none</span>
debug: false
});
</pre>
</div>
<img src="graphics/buttons.jpg" alt="Buttons" />
<p>
As you can see in this graphic the button system is very simple to understand. If I wanted to create a pink button that simpley said "login" I would do the following.
<div class="mono">
$('.login').lcarsButton({
color: 'pink'
});
<br />
<span class="login">Login</span>
</div>
</p>
↓ This would be my result
<span class="login">Login</span>
If you need this explained on a deeper level please feel free to PM me on <a href="http://www.trekbss.com" target="_blank">trekbss.com</a> username Garrett00
</div>
</body>
</html>