Skip to content

Instantly share code, notes, and snippets.

@stfalconaleks
Created October 20, 2017 14:44
Show Gist options
  • Save stfalconaleks/6fefe365df931fae83c8ccbcd9a3bbb0 to your computer and use it in GitHub Desktop.
Save stfalconaleks/6fefe365df931fae83c8ccbcd9a3bbb0 to your computer and use it in GitHub Desktop.
class func fontExplanation(questionTitle: String,
question: String,
wrongTitle: String?,
wrongAnswer: String?,
correctTitle: String,
correctAnswer: String,
explanationTitle: String,
explanation: String,
isCorrect: Bool) -> String {
return "<!doctype html> <html lang=\"en\"> <head> <meta charset=\"UTF-8\"> <meta
name=\"viewport\" content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximumscale=1.0, minimum-scale=1.0\"> <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"> <title>Document</title> <link rel=\"stylesheet\" href=\"styles.css\"> </head> <body> <p class=\"answer-text\">\(question)</p> <div class=\"label\">\(correctTitle)</div> <div class=\"answer answer_right\">\(correctAnswer)</div> <div class=\"label\">\(explanationTitle)</div> <p
class=\"answer-text\">\(explanation)</p> </div> </body> </html>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment