Template:Thank You 2018: Difference between revisions

Content deleted Content added
.ty-header { position: relative; } - stop .ty-header:after blocking access to interface in preview/diff
move js to subpage
Line 724:
</html>[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] · [{{fullurl:Template:Thank_You_2018|action=edit}} Edit template]<html>
</div><!--edit page snippet-->
</html>{{Hide banners}}<html>
<script>
// Hint to click a share button when icon is clicked
document.getElementsByClassName('ty-share')[0].addEventListener('click', function() {
var primaryClick = this;
primaryClick.classList.add('highlight');
setTimeout(function() {
primaryClick.classList.remove('highlight');
}, 400);
});
 
// Add viewport meta tag
(function() {
var metaTag = document.createElement('meta');
metaTag.name = "viewport";
metaTag.content = "width=device-width, initial-scale=1.0";
document.getElementsByTagName('head')[0].appendChild(metaTag);
})();
</script>
</html>
</html>{{Hide banners}}<html>
{{Thank You 2018/js}}<!-- Javascript in a subpage, so you can edit and preview this one without Chrome's XSS filter being paranoid -->
[[Category:Fundraising Thank You page (2018)]]
{{#if:{{{language|}}}|[[Category:{{#language:{{{language}}}}}]]}}