Skip to content

Commit

Permalink
redirect to official site
Browse files Browse the repository at this point in the history
  • Loading branch information
molee1905 authored May 6, 2023
1 parent 17aafdc commit acc35d1
Showing 1 changed file with 3 additions and 132 deletions.
135 changes: 3 additions & 132 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,142 +1,13 @@

<hr>

<div class="container">

<footer>
<ul class="list-inline">
{% if page.edit_link %}
<li><a href="{{ page.edit_link }}">Edit this page</a></li>
{% else %}
<li><a href="https://github.com/eslint/eslint.github.io/edit/master/{{ page.path }}">Edit this page</a></li>
{% endif %}
<li><a href="https://groups.google.com/group/eslint">Mailing List</a></li>
<li><a href="https://github.com/eslint/eslint">GitHub</a></li>
<li><a href="https://twitter.com/geteslint">Twitter</a></li>
<li><a href="https://gitter.im/eslint/eslint">Chat Room</a></li>
<li>Copyright JS Foundation and other contributors, <a href="https://js.foundation">https://js.foundation/</a></li>
<li>
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1272913220'%3E%3C/span%3E%3Cscript src='https://s19.cnzz.com/z_stat.php%3Fid%3D1272913220%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
</li>
</ul>
</footer>
</div><!-- /.container -->

<link href="/styles/vendor/font.css" rel="stylesheet">
<script src="/js/vendor/jquery-1.10.2.min.js" defer></script>
<script src="/js/vendor/bootstrap-native.min.js" defer></script>
<script src="/js/vendor/anchor.min.js"></script>
<!-- at the end of the BODY -->
<script type="text/javascript" src="/js/vendor/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '891b0e977d96c762a3821e0c00172ac9',
indexName: 'eslint',
inputSelector: '#eslint-search-input',
algoliaOptions: { 'facetFilters': [["tags:docs", "tags:blog"]] },
debug: false // Set debug to true if you want to inspect the dropdown
});
var htmlClassList = document.documentElement.classList;
htmlClassList.remove("no-js");
htmlClassList.add("js");
</script>
{% if page.homepage %}
<script src="{{ site.url }}/js/app/image-lazy-loader.js" defer></script>
{% endif %}
<script>
document.addEventListener('DOMContentLoaded', function() {
anchors.add('.doc h2, .doc h3, .doc h4, .blog h2, .blog h3, .blog h4');
{% if page.homepage %}
var hasClass = function(element, className) {
return document.querySelector(element).classList.contains(className);
};
var createNode = function (html) {
var range = document.createRange();
range.selectNode(document.getElementsByTagName('div').item(0));
return range.createContextualFragment(html);
};
function shuffleArray(array) {
for (var i = array.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = array[i];
array[i] = array[j];
array[j] = temp;
}
return array;
}

var logosNode = document.querySelector('.logos');

if (logosNode) {
var fragment = document.createDocumentFragment();
var logos = [{% for logo in site.data.logos %}{ url: '{{ logo.url }}', src: '{{ site.url }}{{ logo.src }}', name: '{{ logo.name }}' }{% unless forloop.last %},{% endunless %}{% endfor %}];
logos = shuffleArray(logos);
for (var i = 0, l = logos.length; i<l; i++) {
var logo = createNode('' +
'<div>' +
'<div class="slide col-sm-4">' +
'<a href="' + logos[i].url + '">' +
'<img class="lazyload" data-src="' + logos[i].src + '" src="" alt="' + logos[i].name + '">' +
'</a>' +
'</div>' +
'</div>');
fragment.appendChild(logo);
}

if (fragment) {
logosNode.appendChild(fragment);
}

var expenderNode = document.querySelector('.expender');
expenderNode && expenderNode.addEventListener('click', function() {
if (hasClass('.logos', 'expended')) {
logosNode.classList.remove('expended');
logosNode.style['max-height'] = '150px';
expenderNode.innerHTML = 'see more <span class="caret"/>';
} else {
logosNode.classList.add('expended');
logosNode.style['max-height'] = '5000px';
expenderNode.innerHTML = 'see less <span class="dropup"><span class="caret"></span></span>';
}
});
}

ImageObserver.createObserver();
{% endif %}
{% if include.multi == "true" %}
var langs = {mixed: '中英文',zh: '中文',en: '英文'};
var last = localStorage.getItem('lang') || 'zh';

if (last in langs) {
$('.lang-chooser').html(langs[last]);
$('.doc').removeClass(function(index,clz){
return clz.slice(3);
}).addClass('lang-' + last);
}

$('.navbar-left').show();

$('.lang-type').on('click', function() {
var $this = $(this),
type = $this.data('lang'),
lang = $this.html();

localStorage.setItem('lang', type);

$('.lang-chooser').html(lang);
$('.doc').removeClass(function(index,clz){
return clz.slice(3);
}).addClass('lang-' + type);
});
{% endif %}
});
{% if page.homepage %}
window.addEventListener("load", function() {
ImageObserver.observe();
{% if site.url %}
window.addEventListener("click", function() {
window.location.href = "{{ site.url}}";
}, false);
{% endif %}
</script>
{% if page.demopage %}
<script src="/js/vendor/require.min.js" data-main="/js/app/demo/requireConfig" defer></script>
{% endif %}
</body>
</html>

0 comments on commit acc35d1

Please sign in to comment.