-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathHowTo.html
More file actions
169 lines (159 loc) · 6.12 KB
/
HowTo.html
File metadata and controls
169 lines (159 loc) · 6.12 KB
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
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!--<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">-->
<title>How To Page</title>
<!-- Bootstrap core CSS -->
<link href="bootstrap3/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="bootstrap3/css/jumbotron.css" rel="stylesheet">
<link href="cts2/css/cts2.css" rel="stylesheet"/>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".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 class="navbar-brand" href="index.html">LexEVS CTS2</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active" ><a href="#">How To</a></li>
<li><a href="lexCTS2CS.html">Code Systems</a></li>
<li><a href="lexCTS2VS.html">Value Sets</a></li>
<li><a href="lexCTS2Map.html">Maps</a></li>
<li><a href="lexCTS2Paginate.html">Paginate</a></li>
</ul>
</div>
</div>
</div>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>How to Use These Examples</h1>
<p>Follow these steps to implement the examples.</p>
<!--<p><a class="btn btn-primary btn-lg" href="index.html" role="button">Learn more »</a></p>-->
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="well">
<h2>1. Create the HTML</h2>
<ul>
<li>
Start with a standard html page
<pre>
<code>
<!DOCTYPE html>
<html>
<head>
<!-- meta tags for bootstrap -->
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>MyJSPage</title>
</head>
<body>
</body>
</html>
</code>
</pre>
</li>
<li>
Add css elements to the head of the page
<pre>
<code>
<head>
<title>MyJsPage</title>
<link href="bootstrap3/css/bootstrap.css"
rel="stylesheet">
<link href="cts2/css/cts2.css" rel="stylesheet">
</head>
</code>
</pre>
</li>
<li>
Add the example html snippet to the page body
<pre>
<code>
<div class="btn-group">
<a class="btn btn-primary" href="#">
<i class="icon-user icon-white"></i>All Code Systems</a>
<a class="btn btn-primary dropdown-toggle"
data-toggle="dropdown" href="#">
<span class="caret">
</span>
</a>
<ul class="dropdown-menu" id="codesystems">
<li><a href="#"><b>Code Systems</b></a></li>
<li class="divider"></li>
</ul>
</div>
</code>
</pre>
</li>
<li>
Import the JavaScript files last to improve page loading performance. (Just before the closing body
tag.) Hint: If customizing the JavaScript resolve the REST URL in your browser to understand what object
names or paths to objects you will be defining.
<pre>
<code>
<script
src="https://code.jquery.com/jquery-1.10.2.min.js">
</script>
<script src="bootstrap3/js/bootstrap.min.js"></script>
<script src="cts2/js/codeSystemDropDown.js"></script>
</code>
</pre>
</li>
</ul>
</div>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-8">
<div class="well">
<h2>2. Get the Files</h2>
<ul>
<li>Clone the repository or download the zip file from the <a href="https://github.com/lexevs/lexevscts2">
LexEVS CTS2 examples</a> GitHub repository.
</li>
<li>
Move the needed file items to a new directory
</li>
</ul>
<p>
<img src="images/DirectoryStructure.png" alt="File Structure"> </img>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="well">
<h2>3. Test the Code on the Resulting Page</h2>
<img src="images/dropDown.png" alt="Drop Down List"/>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>