-
Notifications
You must be signed in to change notification settings - Fork 0
/
email.php
50 lines (46 loc) · 1.57 KB
/
email.php
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
<?php
require_once("../inc/util.inc");
require_once("../inc/mm.inc");
function main() {
page_head("Spread the word");
text_start();
echo '
<p>
The more musicians use Music Match,
the more we can all get from it.
Please help spread the word
by telling all your musical friends about it.
<p>
Edit the message below as you see fit.
Then click "Copy message", and paste the message
into emails to your friends (or social media posts).
<p>
Thanks for helping!
<p>
<textarea id=foo rows=8 cols=80>
I\'ve been using a new web site for classical musicians called Music Match:
https://music-match.org
It lets you find and connect with other musicians: for example, composers who write music for your instrument and style, or performers to play music you\'ve composed, or ensembles looking for new members. It\'s like LinkedIn for musicians.
Check it out - I think you\'ll find it useful.</textarea>
<p>
<script>
function copy() {
var t = document.getElementById("foo");
t.select();
t.setSelectionRange(0,99999);
navigator.clipboard.writeText(t.value);
alert("Message copied to clipboard");
}
</script>
';
echo sprintf('
<a class="%s" style="background-color:%s; color:%s" href=# onclick="copy()">Copy message</a>',
BUTTON_NORMAL[0],
BUTTON_NORMAL[1],
BUTTON_NORMAL[2]
);
text_end();
page_tail();
}
main();
?>