-
Notifications
You must be signed in to change notification settings - Fork 1
/
fuelux-3-primary.html
157 lines (144 loc) · 5.58 KB
/
fuelux-3-primary.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="en" class="fuelux">
<head>
<meta charset="utf-8">
<title>Fuel UX 3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="fuelux-3/css/fuelux-3-primary-3.css" rel="stylesheet" type="text/css">
<link href="fuelux-2/css/fuelux-2-primary-3.css" rel="stylesheet" type="text/css">
<!-- allows for visual check of compiled LESS for debugging/testing purposes. Uncomment this, and comment out client-side LESS compilation code below to use this -->
<!--<link href="dist/css/fuelux.css" rel="stylesheet" type="text/css">-->
<!--<link href="dist/css/fuelux.min.css" rel="stylesheet" type="text/css">-->
<link href="index.css" rel="stylesheet" type="text/css">
<script src="bower_components/requirejs/require.js"></script>
<script type="text/javascript">
(function () {
requirejs.config({
config: {
moment: {
noGlobal: true
}
},
paths: {
jquery: 'bower_components/jquery/jquery',
underscore: 'bower_components/underscore/underscore',
bootstrap: 'bower_components/bootstrap/dist/js/bootstrap',
moment: 'bower_components/moment/moment',
fuelux: 'bower_components/fuelux/dist/js/fuelux',
fuelux2: 'bower_components/fuelux-2.6.4/dist/'
},
shim: {
'bootstrap': {
deps: ['jquery'],
exports: 'bootstrap'
},
'fuelux': {
deps: ['fuelux2/tree','bootstrap']
}
}
});
})();
require(['noConflict'], function($){ });
</script>
</head>
<body>
<header class="navbar navbar-default navbar-static-top" id="top" role="banner">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="./index.html" class="navbar-brand">FuelUX 2&3</a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse">
<ul class="nav navbar-nav">
<li>
<a href="./noConflict.html">No Conflict</a>
</li>
<li>
<a href="./constructor.html">Constructor Modification</a>
</li>
<li>
<a href="./iframe.html">Isolation</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="container">
<div class="col-md-9">
<h2 style="margin-top:10px;">No conflict option:</h2>
<p>When Fuel UX V2 controls are used <code>noConflict</code> method should be called before instantiation. This is the case only if Fuel UX V2 is loaded before Fuel UX V3. If Fuel UX V3 is loaded first no conflict must be used before Fuel UX V3 control is instantiated.</p>
<a href="./noConflict.js">View Code Here!</a>
<h4 style="margin-top:30px;">Fuel UX 3 Tree</h4>
<!-- FUELUX V3 TREE -->
<ul class="tree tree-folder-select" role="tree" id="myTree" style="width: 400px;height: 300px; margin: 20px;">
<li class="tree-branch hide" data-template="treebranch" role="treeitem" aria-expanded="false">
<div class="tree-branch-header">
<button class="glyphicon icon-caret glyphicon-play"><span class="sr-only">Open</span></button>
<button class="tree-branch-name">
<span class="glyphicon icon-folder glyphicon-folder-close"></span>
<span class="tree-label"></span>
</button>
</div>
<ul class="tree-branch-children" role="group"></ul>
<div class="tree-loader" role="alert">Loading...</div>
</li>
<li class="tree-item hide" data-template="treeitem" role="treeitem">
<button class="tree-item-name">
<span class="glyphicon icon-item fueluxicon-bullet"></span>
<span class="tree-label"></span>
</button>
</li>
</ul>
<h4>Fuel UX 2 Tree <span style="font-size:12px;">Styles not yet corrected</span></h4>
<!-- FUELUX V2 TREE -->
<div class="fuelux-2">
<div id="ex-tree" class="tree" style="width: 400px;height: 300px; margin: 20px;">
<div class="tree-folder" style="display:none;">
<div class="tree-folder-header">
<i class="icon-folder-close"></i>
<div class="tree-folder-name"></div>
</div>
<div class="tree-folder-content"></div>
<div class="tree-loader" style="display:none">
</div>
</div>
<div class="tree-item" style="display:none;">
<i class="tree-dot"></i>
<div class="tree-item-name"></div>
</div>
</div>
</div>
<h4>Fuel UX 3 Tree 2 <span style="font-size:12px;">Constructor manually swapped back to Fuel UX V3 code.</span></h4>
<!-- FUELUX V3 TREE -->
<ul class="tree tree-folder-select" role="tree" id="myTree2" style="width: 400px;height: 300px; margin: 20px;">
<li class="tree-branch hide" data-template="treebranch" role="treeitem" aria-expanded="false">
<div class="tree-branch-header">
<button class="glyphicon icon-caret glyphicon-play"><span class="sr-only">Open</span></button>
<button class="tree-branch-name">
<span class="glyphicon icon-folder glyphicon-folder-close"></span>
<span class="tree-label"></span>
</button>
</div>
<ul class="tree-branch-children" role="group"></ul>
<div class="tree-loader" role="alert">Loading...</div>
</li>
<li class="tree-item hide" data-template="treeitem" role="treeitem">
<button class="tree-item-name">
<span class="glyphicon icon-item fueluxicon-bullet"></span>
<span class="tree-label"></span>
</button>
</li>
</ul>
</div>
</div>
<footer>
<div class="container">
<p>Created as a POC for furthering adoption of the latest version of Fuel UX</p>
</div>
</footer>
</body>