forked from dwaltz/fuelux2-3-exploration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiframe.html
122 lines (109 loc) · 4 KB
/
iframe.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
<!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="http://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="bower_components/fuelux-2.6.4/dist/css/fuelux.css" rel="stylesheet" type="text/css">
-->
<link href="bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="bower_components/fuelux/dist/css/fuelux.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',
fuelux: 'bower_components/fuelux/dist/js/fuelux',
bootstrap2: 'bower_components/bootstrap-2.3-2/js/',
fuelux2: 'bower_components/fuelux-2.6.4/dist/',
moment: 'bower_components/moment/moment'
},
shim: {
'bootstrap': {
deps: ['jquery'],
exports: 'bootstrap'
},
'fuelux2/loader': {
deps: ['jquery']
}
}
});
})();
require(['iframe'], 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">
<h2 style="margin-top:10px;">Isolation:</h2>
<p>Fuel UX V2 controls can be iframed into a Fuel UX V3 context to isolate styles</p>
<a href="./iframe.js">View Code Here!</a></br>
<h4>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</h4>
<iframe src="./iframeTree.html" style="border: none;width: 500px;height: 400px;"></iframe>
</div>
<footer>
<div class="container">
<p>Created as a POC for furthering adoption of the latest version of fuelux</p>
</div>
</footer>
</body>