With:
http://localhost/cp2-bc-node-arc-d3/node-arc-d3/node_modules/jquery-ui/demos/2-sm-other-demo.html
select:
var scripts = document.getElementsByTagName( "script" );
scripts
2:
<script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="effect" src="../ui/effect.js"></script>
3:
<script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="demos" src="../ui/demos.js"></script>
var script = scripts[ scripts.length - 1];
script
<script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="urijs/SecondLevelDomains" src="../ui/../../urijs/src//SecondLevelDomains.js">
var pathParts = window.location.pathname.split( "/" );
undefined
pathParts[ pathParts.length - 2 ]
"demos"
With:
http://localhost/cp2-bc-node-arc-d3/node-arc-d3/node_modules/jquery-ui/demos/dialog/1-sm-other-demo.html
var scripts = document.getElementsByTagName( "script" );
scripts
2:
"http://localhost/cp2-bc-node-arc-d3/node-arc-d3/node_modules/jquery-ui/ui/effect.js
<script
type="text/javascript" charset="utf-8" async="" data-requirecontext="_"
data-requiremodule="effect" src="../../ui/effect.js"></script>
3:
<script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="widgets/dialog" src="../../ui/widgets/dialog.js"></script>
var pathParts = window.location.pathname.split( "/" );
pathParts[ pathParts.length - 2 ]
"dialog"
+++++++++++++++++++
http://localhost/cp2-bc-node-arc-d3/node-arc-d3/node_modules/jquery-ui/demos/2-sm-other-demo.html
Fixed!
https://gist.github.com/bshambaugh/8419ecc245385735e9e6ea15178f3412
2-sm-other-demo.html
https://gist.github.com/bshambaugh/6f0fbf50041edd4017554d34d0bf8096
2-bootstrap.js
+++++++++++++++++++++
Or in the top-level directory: Node-Arc-D3:
http://localhost/cp-bc-node-arc-d3/node-arc-d3/1-sm-other-demo.html
1-sm-other-demo.html
https://gist.github.com/bshambaugh/a2163d8e9d1fa1ff84cc1e01339ad640
http://localhost/cp-bc-node-arc-d3/node-arc-d3/1-bootstrap.js
1-bootstrap.js
https://gist.github.com/bshambaugh/f526fe3d1267bd7c5e073c947dec0a0c
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment