2015-09-02 15:08:58 -04:00
|
|
|
<!DOCTYPE html>
|
2015-09-04 11:26:18 -04:00
|
|
|
<!--[if lt IE 9 ]> <html class="ie8"> <![endif]-->
|
|
|
|
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
|
|
|
|
<!--[if (gt IE 9)|!(IE)]><!--> <html> <!--<![endif]-->
|
2015-09-02 15:08:58 -04:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
2016-09-09 09:14:19 -04:00
|
|
|
<meta name="viewport" content="width=<%= htmlWebpackPlugin.options.viewportWidth %>, initial-scale=1">
|
2015-09-02 15:08:58 -04:00
|
|
|
|
2016-03-08 15:49:00 -05:00
|
|
|
<!-- Prevent mobile Safari from making phone numbers -->
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
2016-06-23 15:34:47 -04:00
|
|
|
|
2018-12-17 14:55:27 -05:00
|
|
|
<% if (!htmlWebpackPlugin.options.dynamicMetaTags) { %>
|
|
|
|
<title>Scratch - <%= htmlWebpackPlugin.options.title %></title>
|
|
|
|
|
|
|
|
<!-- Search & Open Graph-->
|
|
|
|
<meta name="description" content="<%= htmlWebpackPlugin.options.description %>" />
|
|
|
|
<meta name="google-site-verification" content="m_3TAXDreGTFyoYnEmU9mcKB4Xtw5mw6yRkuJtXRKxM" />
|
2015-09-02 15:08:58 -04:00
|
|
|
|
2018-12-17 14:55:27 -05:00
|
|
|
<meta property="og:url" content="https://scratch.mit.edu/" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:title" content="Scratch - <%= htmlWebpackPlugin.options.title %>" />
|
|
|
|
<meta property="og:description" content="<%= htmlWebpackPlugin.options.description %>" />
|
|
|
|
<meta property="og:image" content="<%- htmlWebpackPlugin.options.og_image %>" />
|
|
|
|
<meta property="og:image:type" content="<%- htmlWebpackPlugin.options.og_image_type %>" />
|
|
|
|
<meta property="og:image:width" content="<%- htmlWebpackPlugin.options.og_image_width %>" />
|
|
|
|
<meta property="og:image:height" content="<%- htmlWebpackPlugin.options.og_image_height %>" />
|
|
|
|
<% } %>
|
2015-09-04 11:26:18 -04:00
|
|
|
|
|
|
|
<!-- Favicon & CSS normalize -->
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
2015-09-02 15:08:58 -04:00
|
|
|
<link rel="stylesheet" href="/css/lib/normalize.min.css" />
|
2021-08-12 16:00:58 -04:00
|
|
|
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.chunks.common.css[0] %>" />
|
|
|
|
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.chunks[htmlWebpackPlugin.options.route.name].css[0] %>" />
|
2015-09-04 11:26:18 -04:00
|
|
|
|
2016-05-17 20:17:16 -04:00
|
|
|
<!-- Polyfills -->
|
|
|
|
<script src="/js/polyfill.min.js"></script>
|
2015-09-04 11:26:18 -04:00
|
|
|
|
2015-10-20 10:51:33 -04:00
|
|
|
<!-- Analytics (GA) -->
|
|
|
|
<script>
|
2016-09-09 09:14:19 -04:00
|
|
|
/* eslint-disable */
|
2015-10-20 10:51:33 -04:00
|
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
|
2018-12-21 13:24:21 -05:00
|
|
|
ga('create', '<%- htmlWebpackPlugin.options.ga_tracker %>', {
|
|
|
|
'sampleRate': 10
|
|
|
|
});
|
2015-10-20 10:51:33 -04:00
|
|
|
ga('send', 'pageview');
|
2018-12-20 11:29:28 -05:00
|
|
|
window.GA_ID = '<%- htmlWebpackPlugin.options.ga_tracker %>';
|
2016-09-09 09:14:19 -04:00
|
|
|
/* eslint-enable */
|
2015-10-20 10:51:33 -04:00
|
|
|
</script>
|
2016-06-23 15:34:47 -04:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2020-06-09 10:24:57 -04:00
|
|
|
<noscript>
|
2021-01-11 14:04:32 -05:00
|
|
|
<p>Your browser has Javascript disabled. Please go to your browser preferences and enable Javascript in order to use Scratch.</p>
|
2020-06-09 10:24:57 -04:00
|
|
|
</noscript>
|
2016-06-23 15:34:47 -04:00
|
|
|
<div id="app"></div>
|
|
|
|
|
|
|
|
<!-- Vendor & Initialize (Session & Localization)-->
|
2021-08-12 16:00:58 -04:00
|
|
|
<script src="<%= htmlWebpackPlugin.files.chunks.common.entry %>"></script>
|
2016-06-23 15:34:47 -04:00
|
|
|
|
|
|
|
<!-- Scripts -->
|
2016-09-07 19:34:46 -04:00
|
|
|
<script src="/js/<%= htmlWebpackPlugin.options.route.name %>.intl.js"></script>
|
2021-08-12 16:00:58 -04:00
|
|
|
<script src="<%= htmlWebpackPlugin.files.chunks[htmlWebpackPlugin.options.route.name].entry %>"></script>
|
2016-05-16 10:55:51 -04:00
|
|
|
|
2016-06-23 15:34:47 -04:00
|
|
|
<!-- Translate title element -->
|
2018-12-17 14:55:27 -05:00
|
|
|
<% if (!htmlWebpackPlugin.options.dynamicMetaTags) { %>
|
|
|
|
<script>
|
|
|
|
var loc = window._locale || 'en';
|
|
|
|
if (typeof window._messages !== 'undefined' && loc !== 'en') {
|
|
|
|
if (typeof window._messages[loc] === 'undefined') {
|
|
|
|
loc = loc.split('-')[0];
|
|
|
|
}
|
|
|
|
if (typeof window._messages[loc] !== 'undefined') {
|
|
|
|
var localizedTitle = window._messages[loc]['general.' + '<%= htmlWebpackPlugin.options.title %>'.toLowerCase()] || '';
|
|
|
|
if (localizedTitle.length > 0) {
|
|
|
|
document.title = 'Scratch - ' + localizedTitle;
|
|
|
|
}
|
2016-05-16 10:55:51 -04:00
|
|
|
}
|
|
|
|
}
|
2018-12-17 14:55:27 -05:00
|
|
|
</script>
|
|
|
|
<% } %>
|
2020-03-31 08:15:11 -04:00
|
|
|
</body>
|
2015-09-02 15:08:58 -04:00
|
|
|
</html>
|