added a link to /api/util/getpageinfo_p.xml as API to crawl start info and to ViewFile.html

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8035 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 13 years ago
parent 3a15e58e28
commit ff32469272

@ -17,6 +17,9 @@
</style>
</head>
<body id="IndexCreate">
<div id="api"></div>
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<h2>Expert Crawl Start</h2>

@ -17,6 +17,9 @@
</style>
</head>
<body id="IndexCreate">
<div id="api"></div>
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<h2>Site Crawling</h2>

@ -7,6 +7,14 @@
<script type="text/javascript" src="/js/highslide/highslide.js"></script>
</head>
<body>
<div id="api">
<a href="http://localhost:8090/api/util/getpageinfo_p.xml?actions=title,robots&url=#[url]#" id="apilink">
<img src="/env/grafics/api.png" width="60" height="40" alt="API"/>
</a>
<span>See the page info about the url.</span>
</div>
#(display)#
#%env/templates/simpleheader.template%#
::

@ -76,4 +76,6 @@ function loadInfos() {
url=document.getElementById("crawlingURL").value;
if (url.indexOf("ftp") == 0 || url.indexOf("smb") == 0) document.getElementById("crawlingQ").disabled=true; else document.getElementById("crawlingQ").disabled=false;
sndReq('/api/util/getpageinfo_p.xml?actions=title,robots&url='+url);
document.getElementById("api").innerHTML = "<a href='http://localhost:8090/api/util/getpageinfo_p.xml?actions=title,robots&url=" + url + "' id='apilink'><img src='/env/grafics/api.png' width='60' height='40' alt='API'/></a><span>See the page info about the start url.</span>";
}

Loading…
Cancel
Save