Created
October 20, 2017 14:44
-
-
Save stfalconaleks/6fefe365df931fae83c8ccbcd9a3bbb0 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
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