library(learnr)
question( "Which planet do we live on?", answer("Mars", correct = FALSE), answer("Earth", correct = TRUE), answer("Saturn", correct = FALSE), allow_retry = TRUE )
learnrhash::encoder_logic()
Note the following may not show in RStudio's viewer, try opening it in your browser to see the full iframe.
learnrhash::encoder_ui( ui_before = shiny::div( "If you have completed this tutorial and are happy with all of your", "solutions, please click the button below to generate your hash and", "submit it using the following form:", shiny::tags$br() ), ui_after = learnrhash::iframe_ui( src = "https://docs.google.com/forms/d/e/1FAIpQLSdzre-kmqNje64ZCK7VsXHWKSVdGNOjSUwU1IZaCWs_vL_yuQ/viewform?embedded=true", width="640px", height= "800px", frameborder="0", marginheight="0", marginwidth="0" ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.