Template:Thank You 2018: Difference between revisions

From Donate
Jump to navigation Jump to search
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: Line 724:
</html>[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] · [{{fullurl:Template:Thank_You_2018|action=edit}} Edit template]<html>
</html>[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] · [{{fullurl:Template:Thank_You_2018|action=edit}} Edit template]<html>
</div><!--edit page snippet-->
</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}}
{{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)]]
[[Category:Fundraising Thank You page (2018)]]
{{#if:{{{language|}}}|[[Category:{{#language:{{{language}}}}}]]}}
{{#if:{{{language|}}}|[[Category:{{#language:{{{language}}}}}]]}}

Revision as of 20:33, 28 February 2018

Wikimedia Foundation

{{{header}}}

{{{receipt}}} {{{receipt}}}
{{{header-text1}}} {{{header-text2}}} {{{header-text3}}}

Template:Thank You 2018/js