-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsubscribe.html
More file actions
112 lines (94 loc) · 2.75 KB
/
subscribe.html
File metadata and controls
112 lines (94 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
---
layout: subpage
title: Subscribe
permalink: /subscribe/
tags: subscribe
---
<style>
#animated-search-input {
/* So the cursor ends up on the end of the text when the aniimation finishes: */
display:flex;
justify-content: center;
/* Styles to make it look like an actual input box: */
border: 2px solid #666;
border-radius: 16px;
padding: 12px 16px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 4px 4px rgba(0, 0, 0, 0.08);
background: white;
/* To horizontally center the input box: */
margin-left: auto;
margin-right: auto;
/* To ensure it doesn't get too wide (works well on mobile and desktop) */
max-width: 400px;
/* Animation */
transition: all 0.2s ease;
}
</style>
<div>
<h2 class="text-center">Search in your podcast app:</h2>
<div id="animated-search-input" >
<div class="typewriter">
<h1>soft skills engineering</h1>
</div>
</div>
</div>
<p class="lead button-group" style="margin-top:50px">Or use one of these links:</p>
<p class="button-group">
<a
href="{{ site.podcast_itunes_url }}"
class="button">
<span class="subscribe-link">
<img
src="/img/apple-podcasts.svg"
class="icon"
alt="Apple podcasts logo"
aria-hidden="true" /> Apple Podcasts</span></a>
<a
href="{{ site.podcast_spotify_url }}"
class="button"><span class="subscribe-link">
<img
src="/img/spotify.svg"
class="icon"
alt="Spotify logo"
aria-hidden="true" /> Spotify Podcasts</span></a>
<a
href="{{ site.podcast_youtube_music_url }}"
class="button"><span class="subscribe-link">
<img
src="/img/youtube-music-icon.svg"
class="icon"
alt="YouTube Music logo"
aria-hidden="true" /> YouTube Music</span></a>
</p>
<div class="lead feed-url-box text-center" style="margin-top:50px">
<p>Or copy and paste the feed URL:</p>
<p><a href="{{site.podcast_feed_url}}" class="feed-url">{{ site.podcast_feed_url }}</a></p>
<textarea
class="sr-only"
id="feed-url-copy"
aria-hidden="true">{{site.podcast_feed_url}}</textarea>
<p class="text-center">
<button class="button small" id="copy-cta"><span>Copy to clipboard</span></button>
</p>
</div>
<div class="icon-sep">
<img
src="/img/computer.svg"
alt="A computer" />
</div>
<script>
const btn = document.querySelector('#copy-cta')
const textarea = document.querySelector('#feed-url-copy')
btn.addEventListener('click', function(evt) {
const text = btn.textContent;
textarea.select()
textarea.setSelectionRange(0, 99999)
document.execCommand("copy")
btn.innerHTML = "<span>Copied!</span>"
btn.focus()
// Reset button text
setTimeout(() => {
btn.innerHTML = `<span>${text}</span>`
}, 1000)
});
</script>