Created
May 20, 2019 13:44
-
-
Save denisz/446c7f4c1431572e909daf74eef284fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script data-class="radarioButtonScript" src="https://radario.ru/scripts/widget/buy-button-widget.js"></script> | |
</head> | |
<body class="grid"> | |
<div class="grid tickets" id="tickets"> | |
а вот это ссылка | |
<a onclick="openBuyPopup()" href="#tickets">Купить билет</a> | |
</div> | |
<script> | |
function openBuyPopup() { | |
var opt = { id: 453795, forgetOriginalHash: true }; | |
radario.openBuyPopup(opt); | |
} | |
window.onload = function() { | |
if (location.hash === '#tickets') { | |
openBuyPopup(); | |
} | |
}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment