以下示例控制器文件定义站点的定制收藏夹图标。当浏览器不从呈现的页面的文档对象模型动态加载收藏夹图标时,这很有用。
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="initial-scale=1"> <link rel="shortcut icon" href="/SampleSite/favicon.ico" /> <script type="text/javascript"> var SCS = { sitePrefix: '/SampleSite/' }; </script> <script src="/SampleSite/_sitesclouddelivery/renderer/controller.js"></script> </head> <body id="scsControllerBody"><noscript>This site requires JavaScript to be enabled.</noscript> <img id="scsWaitImage" style="display: none; margin-top: 5%; margin-left: auto; margin-right: auto;" src="data:image/png;base64,..." /> </body></html>