Function writing the HTML code to include the page star rating. Note that this requires to adapt the javascript function so that the comment goes to the appropriate Google form.

add_rating(
  sourcename,
  filename,
  message =
    "Please let us know below how clear and understandable this page was for you:  "
)

Arguments

sourcename

Character. Name of the publication (blogpost, textbook, or presentation)

filename

Character. Code and language of the document.

message

Character. Comment entered by the reader.

Value

Write the HTML code for the star rating in the page

Author

Nicolas Mangin