mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
V1.7 js solution (#2257)
* Add an admonition to the top of the archive Only works if you are online and the JSON file is available at https://docs.docker.com/js/archives.json * Fix JS errors, add Segment, hide old archive links
This commit is contained in:
committed by
GitHub
parent
7e9eb24f85
commit
6ba31d8f43
@@ -6,6 +6,7 @@
|
||||
<title> </title>
|
||||
<link rel="shortcut icon" href="/images/favicon.png" type="image/x-icon">
|
||||
<link rel="stylesheet" href="/dist/assets/css/app.css" />
|
||||
<link rel="stylesheet" href="/dist/assets/css/bootstrap-custom.css" />
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.6/animate.min.css">
|
||||
<link rel="stylesheet" href="/css/custom.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
||||
@@ -1328,7 +1329,7 @@
|
||||
<section data-accordion>
|
||||
|
||||
<article data-accordion>
|
||||
<button data-control> Get older docs</button>
|
||||
<button style="visibility: hidden" data-control> Get older docs</button>
|
||||
<div data-content>
|
||||
|
||||
|
||||
@@ -1411,10 +1412,10 @@ $$ make client</p>
|
||||
</div>
|
||||
</footer>
|
||||
<link rel="stylesheet" href="/highlight/styles/github.css">
|
||||
<script href="/highlight/highlight.pack.js"></script>
|
||||
<script src="/highlight/highlight.pack.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
|
||||
<script href="/dist/assets/js/all.js"></script>
|
||||
<script src="/dist/assets/js/all.js"></script>
|
||||
<script>
|
||||
$( 'nav li:has(ul)' ).doubleTapToGo();
|
||||
</script>
|
||||
@@ -1720,15 +1721,11 @@ $(document).ready(function() {
|
||||
</script>
|
||||
|
||||
|
||||
<noscript>
|
||||
<iframe src="//www.googletagmanager.com/ns.html?id=GTM-PSVHG8"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
||||
</noscript>
|
||||
<script>
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-PSVHG8');
|
||||
</script>
|
||||
<script src="/dist/assets/js/archive.js"></script>
|
||||
<script type="text/javascript">
|
||||
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";
|
||||
analytics.load("IWj9D0UpZHZdZUZX9jl98PcpBFWBnBMy");
|
||||
analytics.page();
|
||||
}}();
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user