Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>1year, hash: </title>
- <style>
- html, body {
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- }
- .iframe {
- width: 100%;
- height: 100%;
- }
- </style>
- </head>
- <body>
- <iframe src="https://yandexplus.ailove.ru?is_debug=1" frameborder="0" class="iframe" name="target"></iframe>
- <script >
- const payload = {"bonus_cake_shells":[{"service":"beru","content":"beru_2-1","type":"promocode","description":"1000 на покупку от 5000 на дача и сезонные товары"},{"service":"eda","content":"eda_1-1","type":"url","description":"40% на первый заказ для плюсовика"},{"service":"kinopoisk","content":"kinopoisk-1","type":"url","description":"Подборка 5 фильмов по 1 рублю"},{"service":"plus","content":"plus_4-1","type":"url","description":"год за 990 руб текущему не семейному"}],"segment":"active.russia.no_family","isAuthorized":true};
- const message = {
- type: 'PLUS.ACCOUNT_STATUS',
- payload
- };
- console.log(message);
- const onMessage = (...args) => {
- console.log(...args);
- window.frames.target.postMessage(message, 'https://yandexplus.ailove.ru');
- };
- window.addEventListener('message', onMessage, false);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement