Skip to content

Commit

Permalink
auchan-ads
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriyBalakalchuk committed Jul 29, 2024
1 parent 8dc8a15 commit 50de442
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
Binary file added auchan-ads/img/favicon-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions auchan-ads/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="img/favicon-256.png" />
<title>Генератор макетів</title>
<style>
#loading.spinner {
left: 50%;
margin-left: -20px;
top: 50%;
margin-top: -20px;
position: absolute;
z-index: 19 !important;
animation: loading-bar-spinner 400ms linear infinite;
}

#loading.spinner .spinner-icon {
width: 40px;
height: 40px;
border: solid 4px transparent;
border-top-color: #0d6efd !important;
border-left-color: #0d6efd !important;
border-radius: 50%;
}

@keyframes loading-bar-spinner {
0% {
transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
<script>
window.addEventListener('load', (event) => {
const strApplicationURL = "https://script.google.com/macros/s/AKfycbyypMuET5sxn4M6odIbISDEDSqabrHYeEWTZdFeE6GYL00nptYRbXTVeuyNrbTPVmzz/exec";
const strCurUrl = new URL(window.location.href);
let strCode = (strCurUrl.searchParams.get("code")||'');
if(strCode!==''){strCode = '&code='+strCode}

let objIframe = document.createElement("iframe");
objIframe.id="iframeWindow";
objIframe.setAttribute("style","display: none; position: fixed; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border: none; margin: 0; padding: 0; overflow: hidden; z-index: 99999");
objIframe.src = strApplicationURL+"?strParent="+location.protocol + '//' + location.host + location.pathname + strCode;
objIframe.onload = ()=>{
document.getElementById('loading').remove();
document.getElementById('iframeWindow').style.display = 'block';
if(strCode!==''){setTimeout(() => {window.close();}, 5000);}
};
document.body.appendChild(objIframe);
});
</script>
</head>
<body>
<div id="loading" class="spinner"><div class="spinner-icon"></div></div>
</body>
</html>

0 comments on commit 50de442

Please sign in to comment.