cookie notice

This commit is contained in:
Pine Wu 2018-02-20 11:35:06 -08:00
parent 8eb271af5a
commit 2e6cedecd3
4 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,19 @@
<div id='mscc-cookie-container'>
<div id='msccBanner' dir='ltr' data-site-name='uhf-vscode' data-mscc-version='0.3.4' data-nver='aspnet-2.0.5' data-sver='0.1.2' class='cc-banner' role='alert'>
<div class='cc-container'>
<svg class='cc-icon cc-v-center' x='0px' y='0px' viewBox='0 0 44 44' height='30px' fill='none' stroke='currentColor'>
<circle cx='22' cy='22' r='20' stroke-width='2'></circle>
<line x1='22' x2='22' y1='18' y2='33' stroke-width='3'></line>
<line x1='22' x2='22' y1='12' y2='15' stroke-width='3'></line>
</svg>
<span class='cc-v-center cc-text'>This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.</span>
<a
href='https://go.microsoft.com/fwlink/?linkid=845480'
aria-label='Learn more about Microsofts Cookie Policy'
id='msccLearnMore'
data-mscc-ic="false"
class='cc-link cc-v-center cc-float-right'
>Learn more</a>
</div>
</div>
</div>

View file

@ -6,6 +6,8 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<link rel="stylesheet" href="//uhf.microsoft.com/mscc/statics/mscc-0.4.0.min.css">
<!-- link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous" -->
<link rel="stylesheet" href="{{ "/css/bootswatch/cosmo/bootstrap.min.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/css/fontawesome-all.min.css" | prepend: site.baseurl }}">
@ -14,5 +16,4 @@
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
</head>

View file

@ -1,6 +1,8 @@
<script>
var baseurl = '{{ site.baseurl }}'
</script>
<script src="https://uhf.microsoft.com/mscc/statics/mscc-0.4.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>

View file

@ -5,6 +5,7 @@
<body>
{% include cookie_notice.html %}
{% include topnav.html %}
<div class="page-content">