@@ -12,41 +12,42 @@ Use the following form to create your own ``nbgitpuller`` links.
1212
1313.. raw :: html
1414
15- <div class =" container full-width " >
15+ <div class =" container" >
1616 <form id =" linkgenerator" class =" form needs-validation" >
1717
1818 <div class =" form-group" >
1919
2020 <ul class =" nav nav-tabs justify-content-end" role =" tablist" >
21- <li class =" nav-item" >
22- <a class =" nav-link active" id =" tab-auth-default" data-toggle =" tab" role =" tab" href = " # auth-default" aria-controls = " auth-default " onclick =" changeTab(this)" >
21+ <li class =" nav-item" role = " presentation " >
22+ <button class =" nav-link active" id =" tab-auth-default" data-bs- toggle =" tab" data-bs-target = " #auth-default " type = " button " role =" tab" aria-controls = " auth-default" aria-selected = " true " onclick =" changeTab(this)" >
2323 <small >JupyterHub</small >
24- </a >
24+ </button >
2525 </li >
26- <li class =" nav-item" >
27- <a class =" nav-link" id =" tab-auth-canvas" data-toggle =" tab" role =" tab" href =" #auth-canvas" aria-controls =" auth-canvas" onclick =" changeTab(this)" >
26+ <li class =" nav-item" role =" presentation" >
27+ <button class =" nav-link" id =" tab-auth-canvas" data-bs-target =" #auth-canvas" data-bs-toggle =" tab" type =" button" role =" tab" aria-controls =" auth-canvas"
28+ aria-selected =" false" onclick =" changeTab(this)" >
2829 <small >Launch from Canvas</small >
29- </a >
30+ </button >
3031 </li >
31- <li class =" nav-item" >
32- <a class =" nav-link" id =" tab-auth-binder" data-toggle =" tab" role =" tab" href =" #auth-binder" aria-controls =" auth-binder" onclick =" changeTab(this)" >
32+ <li class =" nav-item" role =" presentation" >
33+ <button class =" nav-link" id =" tab-auth-binder" data-bs-toggle =" tab" data-bs-target =" #auth-binder" type =" button" role =" tab" aria-controls =" auth-binder"
34+ aria-selected =" false" onclick =" changeTab(this)" >
3335 <small >Binder</small >
34- </a >
36+ </button >
3537 </li >
3638 </ul >
3739
3840 <div class =" tab-content" >
39- <div class =" tab-pane fade show active" id =" auth-default" role =" tabpanel" aria-labelledby =" tab-auth-default" >
41+ <div class =" tab-pane fade show active" id =" auth-default" role =" tabpanel" aria-labelledby =" tab-auth-default" tabindex = " 0 " >
4042 <input type =" text" readonly class =" form-control form-control" id =" default-link" name =" auth-default-link" placeholder =" Generated link appears here..." >
4143 </div >
42- <div class =" tab-pane fade" id =" auth-canvas" role =" tabpanel" aria-labelledby =" tab-auth-canvas" >
44+ <div class =" tab-pane fade" id =" auth-canvas" role =" tabpanel" aria-labelledby =" tab-auth-canvas" tabindex = " 0 " >
4345 <input type =" text" readonly class =" form-control form-control" id =" canvas-link" name =" auth-canvas-link" placeholder =" Generated canvas 'external app' link appears here..." >
4446 </div >
45- <div class =" tab-pane fade" id =" auth-binder" role =" tabpanel" aria-labelledby =" tab-auth-binder" >
47+ <div class =" tab-pane fade" id =" auth-binder" role =" tabpanel" aria-labelledby =" tab-auth-binder" tabindex = " 0 " >
4648 <input type =" text" readonly class =" form-control form-control" id =" binder-link" name =" auth-binder-link" placeholder =" Generated Binder link appears here..." >
4749 </div >
4850 </div >
49- </ul >
5051 </div >
5152
5253 <div class =" form-group row" >
@@ -175,6 +176,11 @@ Use the following form to create your own ``nbgitpuller`` links.
175176 </div >
176177 <br /><br /><br />
177178
179+ <script type =" text/javascript" >
180+ // load link javascript on page load
181+ window .addEventListener (" load" , linkMain);
182+ </script >
183+
178184
179185**Pre-populating some fields in the link generator **
180186
@@ -183,19 +189,19 @@ users to create their own links. To do so, use the following URL
183189parameters **when accessing this page **:
184190
185191* ``hub `` is the URL of a JupyterHub
186- * ``repo `` is the URL of a github repository to which you're linking
192+ * ``repo `` is the URL of a GitHub repository to which you're linking
187193* ``branch `` is the branch you wish to pull from the Repository
188194
189195For example, the following URL will pre-populate the form with the
190196UC Berkeley DataHub as the JupyterHub::
191197
192- https://jupyterhub.github .io/nbgitpuller/ link?hub=https://datahub.berkeley.edu
198+ https://nbgitpuller.readthedocs .io/link.html ?hub=https://datahub.berkeley.edu
193199
194200
195201**Activating a tab when someone lands on this page **
196202
197203You can also activate one of the tabs in the form above by default when a user lands
198- on this page. To do so, use the ``tab= `` REST parameter. Here are the possible values:
204+ on this page. To do so, use the ``tab= `` query parameter. Here are the possible values:
199205
200206* ``?tab=binder `` - activates the Binder tab
201- * ``?tab=canvas `` - activates the Canvas tab.
207+ * ``?tab=canvas `` - activates the Canvas tab
0 commit comments