This commit is contained in:
Ahmed Sabbour 2019-01-07 13:55:48 -08:00
Родитель 779e20450a
Коммит 61f4961a47
4 изменённых файлов: 21 добавлений и 1 удалений

Просмотреть файл

@ -4,6 +4,8 @@
<meta name="author" content="{{ site.author }}"> <meta name="author" content="{{ site.author }}">
<link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/main.css">
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:500,600' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:500,600' rel='stylesheet' type='text/css'>
<link href='https://c.s-microsoft.com/mscc/statics/mscc-0.4.1.min.css' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/github-markdown.css"> <link rel="stylesheet" href="css/github-markdown.css">

Просмотреть файл

@ -6,6 +6,16 @@
</head> </head>
<body> <body>
<style> html{display:none;} </style>
<script>
if(self == top) {
document.documentElement.style.display = 'block';
} else {
top.location = self.location;
}
</script>
<div class="container" id="consent-container"></div>
<div class="container"> <div class="container">
<div class="overview"> <div class="overview">
<span class="toggle">close</span> <span class="toggle">close</span>
@ -25,6 +35,7 @@
<script scr="js/jquery.scrollTo.js"></script> <script scr="js/jquery.scrollTo.js"></script>
<script src="js/jquery.nav.js"></script> <script src="js/jquery.nav.js"></script>
<script src="js/scripts.js"></script> <script src="js/scripts.js"></script>
<script src="https://c.s-microsoft.com/mscc/statics/mscc-0.4.1.min.js"></script>
</body> </body>

Просмотреть файл

@ -12,7 +12,7 @@
// Overview // Overview
.overview { .overview {
position: fixed; position: fixed;
top: 0px; //top: 0px;
left: 0px; left: 0px;
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;

Просмотреть файл

@ -11,4 +11,11 @@ $(document).ready(function(){
$(this).toggleClass('active'); $(this).toggleClass('active');
$(this).next().toggle(); $(this).next().toggle();
}); });
$.get("https://uhf.microsoft.com/en-US/shell/api/mscc?sitename=aksworkshop.io&domain=aksworkshop.io&country=euregion", function(data, status){
if(data.IsConsentRequired) {
$("#consent-container").html(data.Markup);
$("#msccBanner").show();
}
});
}); });