30 lines
1.6 KiB
HTML
30 lines
1.6 KiB
HTML
|
<html>
|
||
|
<head>
|
||
|
<script type="text/javascript" src="/depPage/setup/head.js"></script>
|
||
|
<meta name="google-signin-client_id" content="758810519655-gh6tgimuegfmc3op76vupr4kqnqc7uds.apps.googleusercontent.com">
|
||
|
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
||
|
<script type="text/javascript" src="/login/signIn.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script type="text/javascript" src="/depPage/setup/header.js"></script>
|
||
|
<div class="desc">/ My Projects / Web Development / JSURL</div>
|
||
|
<div class="content">
|
||
|
<h2>Retrive Variables from URLs</h2>
|
||
|
<p>
|
||
|
This library for JavaScript will, upon being loaded, scan the URL for variables in the following format: <br/><br/>
|
||
|
|
||
|
http://www.example.com/index.html<b>?foo=bar</b>&<b>id=123</b>
|
||
|
<br/><br/>
|
||
|
And will define them in the same section of the document as they were called (eg, call the script in the head, the variables load there.
|
||
|
The Variables are each in their own respective script tags directly in the HTML code to allow for universal use.
|
||
|
</p>
|
||
|
<h4>To use, simply call the following file:</h4>
|
||
|
<p>
|
||
|
<a href="/lib/jsurl/getvars.js">http://lib.glmills.gq/jsurl/gervars.js</a>
|
||
|
</p>
|
||
|
<h4>Or to test the mechanic, visit:</h4>
|
||
|
<a href="/lib/jsurl/">http://lib.glmills.gq/jsurl/</a>
|
||
|
</div>
|
||
|
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
||
|
</body>
|
||
|
</html>
|