What is the effect of this page?

http://htmlpreview.github.io/.://github.com/215566435/React-awesome-resume/blob/master/build/index.html

Link

Mar.18,2021

When the

website opens, the file htmlpreview.min.js will be loaded first.

inside the js file is a HTMLPreview large object.

var HTMLPreview = {
  loadHTML: function(data) {},
  send: function(file, callback) {},
  ...
};

loadHtml () calls send (), while send () calls yahoo's api, https://query.yahooapis.com/v1/public/yql?.. this yahoo's api request is to get the page content of the relevant website . After the content is returned asynchronously, such a paragraph is executed inside loadHtml, and the entire website is rewritten

.
document.open();
document.write(HTMLPreview.content);
document.close();
Menu