Finish removing the AJAX indexing support.
This commit is contained in:
parent
e6d214c955
commit
4130054ef3
2 changed files with 0 additions and 56 deletions
|
@ -10,7 +10,6 @@
|
||||||
<meta id="descriptionTag" name="description" content="Quay is the best place to build, store, and distribute your containers. Public repositories are always free."></meta>
|
<meta id="descriptionTag" name="description" content="Quay is the best place to build, store, and distribute your containers. Public repositories are always free."></meta>
|
||||||
<meta name="google-site-verification" content="GalDznToijTsHYmLjJvE4QaB9uk_IP16aaGDz5D75T4" />
|
<meta name="google-site-verification" content="GalDznToijTsHYmLjJvE4QaB9uk_IP16aaGDz5D75T4" />
|
||||||
<meta name="google-site-verification" content="oio7ioMILUo9QDflvyFz8pWig1ac2eLq5IGyQuzFMh8" />
|
<meta name="google-site-verification" content="oio7ioMILUo9QDflvyFz8pWig1ac2eLq5IGyQuzFMh8" />
|
||||||
<meta name="fragment" content="!" />
|
|
||||||
|
|
||||||
{% if aci_conversion %}
|
{% if aci_conversion %}
|
||||||
<meta name="ac-discovery" content="{{ hostname }} {{ preferred_scheme }}://{{ hostname }}/c1/aci/{name}/{version}/{ext}/{os}/{arch}/">
|
<meta name="ac-discovery" content="{{ hostname }} {{ preferred_scheme }}://{{ hostname }}/c1/aci/{name}/{version}/{ext}/{os}/{arch}/">
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
var system = require('system');
|
|
||||||
var url = system.args[1] || '';
|
|
||||||
var count = 0;
|
|
||||||
|
|
||||||
if(url.length > 0) {
|
|
||||||
var page = require('webpage').create();
|
|
||||||
page.open(url, function (status) {
|
|
||||||
try {
|
|
||||||
if (status == 'success') {
|
|
||||||
var delay;
|
|
||||||
var checker = (function() {
|
|
||||||
count++;
|
|
||||||
|
|
||||||
if (count > 100) {
|
|
||||||
console.log('Not Found');
|
|
||||||
phantom.exit();
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
var html = page.evaluate(function () {
|
|
||||||
var found = document.getElementsByTagName('html')[0].outerHTML || '';
|
|
||||||
if (window.__isLoading && !window.__isLoading()) {
|
|
||||||
return found;
|
|
||||||
}
|
|
||||||
if (found.indexOf('404 Not Found') > 0) {
|
|
||||||
return found;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
});
|
|
||||||
|
|
||||||
if (html) {
|
|
||||||
if (html.indexOf('404 Not Found') > 0) {
|
|
||||||
console.log('Not Found');
|
|
||||||
phantom.exit();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
clearTimeout(delay);
|
|
||||||
console.log(html);
|
|
||||||
phantom.exit();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
delay = setInterval(checker, 100);
|
|
||||||
} else {
|
|
||||||
console.log('Not Found');
|
|
||||||
phantom.exit();
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.log('Not Found');
|
|
||||||
phantom.exit();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
phantom.exit();
|
|
||||||
}
|
|
Reference in a new issue