Skip to content

Instantly share code, notes, and snippets.

@enterpredator
Created July 20, 2018 10:55
Show Gist options
  • Save enterpredator/f3c9525408498366d02b24b46a129998 to your computer and use it in GitHub Desktop.
Save enterpredator/f3c9525408498366d02b24b46a129998 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://270927.selcdn.ru/inwine-static/widget/1.1/inwine.widget.lib.js"></script>
<script>
$(document).ready(function() {
$('#inwine_widget').inwineQuiz(onQuizComplete, onFormSubmit)
});
function onQuizComplete(quizResult) {
console.log(JSON.stringify(quizResult));
}
function onFormSubmit(formValidatedData) {
console.log(JSON.stringify(formValidatedData));
}
</script>
</head>
<body style="background-color: #eaeaea;">
<div id="inwine_widget"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment