DIR : /home/kozerus/public_html/pn/ko_parseurl.html
/home/kozerus/public_html/pn
<html>
<title>ko_parsurl</title>
<head>
<hr>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Read json</title>
<!-- TWO STEPS TO INSTALL CURRENT DIRECTORY:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dan Worsham -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://www.javascriptsource.com -->
<!-- Begin
var myloc = window.location.href;
var locarray = myloc.split("/");
delete locarray[(locarray.length-1)];
var arraytext = locarray.join("/");
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
<form>
<input type=button value="Show Current Directory Listing (Or Index.html Page)" onClick="window.location=arraytext;">
</form>
</center>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br/>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 0.90 KB -->
</head>
<body>
<BODY>
<center>
<form>
<input type=button value="Show Current Directory Listing (Or Index.html Page)" onClick="window.location=arraytext;">
</form>
</center>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br/>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<script type="text/javascript">
unction getDirList() {
var possiblePathsList = something predetermined;
var directoryList = [];
possiblePathsList.forEach(function(path){
if (isPath(path)) { directoryList.push(path); }
});
return directoryList;
}
function isPath(path){
d3.text(path, "text/csv", function(data){
return (data !== null);
});
}
var _getAllFilesFromFolder = function(dir) {
var filesystem = require("fs");
var results = [];
filesystem.readdirSync(dir).forEach(function(file) ?
}
function readFile(filename){
var fso = new ActiveXObject("Scripting.FileSystemObject");
var ForReading = 1;
var f1 = fso.OpenTextFile(filename, ForReading);
var text = f1.ReadAll();
f1.close();
return text;
}
myJSONText = "text.txt";
var myObject = readFile(myJSONText);//eval('(' + myJSONText + ')');
document.write(myObject.name);
</script>
<script>
var output = "";
var url='ko_parseurl.html?q=a,b,c&x,y,z";
var pagenum = location.pathname.match(/\/page\/(.*)/)[1];
output .= pagenum;
output .= parseQueryString( url );
output .= "<hr>";
output .= parseURL(url);
output .= "<hr>";
document.write( $output );
</script>
<hr>
<script>
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
function parseURL(url) {
var parser = document.createElement('a'),
searchObject = {},
queries, split, i;
// Let the browser do the work
parser.href = url;
// Convert query string to object
queries = parser.search.replace(/^\?/, '').split('&');
for( i = 0; i < queries.length; i++ ) {
split = queries[i].split('=');
searchObject[split[0]] = split[1];
}
return {
protocol: parser.protocol,
host: parser.host,
hostname: parser.hostname,
port: parser.port,
pathname: parser.pathname,
search: parser.search,
searchObject: searchObject,
hash: parser.hash
};
}
var parseQueryString = function( queryString ) {
var params = {}, queries, temp, i, l;
// Split into key/value pairs
queries = queryString.split("&");
// Convert the array of strings into an object
for ( i = 0, l = queries.length; i < l; i++ ) {
temp = queries[i].split('=');
params[temp[0]] = temp[1];
}
return params;
};
</script>
<footer>
<div style="float:left">
<a href="/privacy.php">Privacy Policy</a>
</div>
<div style="float:right">
Copyright (C) 2017 Zenju:
<script>
document.write(
'<'+'a'+' '+'h'+'r'+'e'+'f'+'='+"'"+'m'+'a'+'i'+'l'+'t'+'o'+'&'+'#'+'5'+'8'+';'+'&'+'#'+'1'+'2'+'2'+
';'+'&'+'#'+'1'+'0'+'1'+';'+'&'+'#'+'1'+'1'+'0'+';'+'&'+'#'+'1'+'0'+'6'+';'+'&'+'#'+'3'+'7'+';'+'7'+
'5'+'&'+'#'+'6'+'4'+';'+'f'+'r'+'&'+'#'+'1'+'0'+'1'+';'+'%'+'6'+'&'+'#'+'5'+'3'+';'+'f'+'i'+'l'+'e'+
's'+'y'+'n'+'%'+'6'+'3'+'&'+'#'+'4'+'6'+';'+'o'+'&'+'#'+'3'+'7'+';'+'7'+'2'+'g'+"'"+'>'+'z'+'e'+'n'+
'j'+'u'+'&'+'#'+'6'+'4'+';'+'&'+'#'+'1'+'0'+'2'+';'+'r'+'e'+'&'+'#'+'1'+'0'+'1'+';'+'f'+'i'+'&'+'#'+
'1'+'0'+'8'+';'+'e'+'s'+'y'+'&'+'#'+'1'+'1'+'0'+';'+'c'+'&'+'#'+'4'+'6'+';'+'o'+'r'+'&'+'#'+'1'+'0'+
'3'+';'+'<'+'/'+'a'+'>');
</script>
</div>
<br>
</footer>
</body>
</html>
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer