subscribe form upgrade
This commit is contained in:
parent
41b2620686
commit
f0e361e790
|
@ -310,9 +310,10 @@
|
||||||
{
|
{
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
}
|
}
|
||||||
form#mailing-list input
|
div#mailing-list-form .input
|
||||||
{
|
{
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
|
height: 100px;
|
||||||
}
|
}
|
||||||
div#calendar
|
div#calendar
|
||||||
{
|
{
|
||||||
|
@ -338,7 +339,7 @@
|
||||||
{
|
{
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
form#mailing-list input
|
div#mailing-list-form .input
|
||||||
{
|
{
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
}
|
}
|
||||||
|
@ -463,21 +464,34 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--
|
|
||||||
<div id="mailing-list-join">
|
<div id="mailing-list-join">
|
||||||
<span style="background: #ffa; border-radius: 5px; padding-left: 10px; padding-right: 10px;">
|
<span style="background: #ffa; border-radius: 5px; padding-left: 10px; padding-right: 10px;">
|
||||||
Join the mailing list!
|
Join the announcements list
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form id="mailing-list" method="post" action="https://nugget.fun/mailman/subscribe/scrapeboard">
|
<script>
|
||||||
<input style="width: 50%" name="email" value="Your e-mail"
|
function subscribe()
|
||||||
onfocus="if(this.value=='Your e-mail') this.value='';"
|
{
|
||||||
|
var request = new Request("https://scrape.nugget.fun/www/subscribe.php", {
|
||||||
|
method: "GET",
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "text/plain",
|
||||||
|
}});
|
||||||
|
fetch(request, {mode: "cors"}).then(data => { console.log(data.text()) });
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="mailing-list-form">
|
||||||
|
<input class="input" id="email-box" style="width: 50%" name="email" value="Your e-mail" onfocus="if(this.value=='Your e-mail') this.value='';"
|
||||||
onfocusout="if(this.value=='') this.value='Your e-mail';">
|
onfocusout="if(this.value=='') this.value='Your e-mail';">
|
||||||
|
|
||||||
<input style="cursor: pointer; background: #4f8; font-weight: bold" type="submit" name="email-button" value="Join">
|
<button class="input" style="cursor: pointer; background: #4f8; font-weight: bold" value="Join" onclick="subscribe();">Join</button>
|
||||||
</form>
|
</div>
|
||||||
-->
|
|
||||||
|
<div id="mailing-list-archives">
|
||||||
|
[<a href="https://nugget.fun/mailman3/hyperkitty/list/scrapeboard-list@nugget.fun/">check past announcements</a>]
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="emotes">
|
<p class="emotes">
|
||||||
d(⌒ー⌒) (❁´◡`❁) ヽ(^Д^)ノ (。>‿‿<。 )(*´∇`)ノ (●⌒v⌒●) ´・ᴗ・` (✿^-^) ヾ(^ヮ^)ノ
|
d(⌒ー⌒) (❁´◡`❁) ヽ(^Д^)ノ (。>‿‿<。 )(*´∇`)ノ (●⌒v⌒●) ´・ᴗ・` (✿^-^) ヾ(^ヮ^)ノ
|
||||||
|
|
|
@ -136,7 +136,7 @@ div#calendar p
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 65%;
|
width: 65%;
|
||||||
font-family: CantarellBold;
|
font-family: CantarellBold;
|
||||||
margin: 30px auto;
|
margin: 30px auto 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#calendar div.date
|
div#calendar div.date
|
||||||
|
@ -190,24 +190,37 @@ div#mailing-list-join
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
font-family: CantarellBold;
|
font-family: CantarellBold;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding-top: 30px;
|
padding-top: 40px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
form#mailing-list
|
div#mailing-list-form
|
||||||
{
|
{
|
||||||
background: #fff;
|
background: #fff;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-bottom: 40px;
|
padding-bottom: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
form#mailing-list input
|
div#mailing-list-form input
|
||||||
{
|
{
|
||||||
font-family: NotCourierSans;
|
font-family: NotCourierSans;
|
||||||
font-size: 34px;
|
}
|
||||||
|
|
||||||
|
div#mailing-list-form button
|
||||||
|
{
|
||||||
|
padding: 0px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#mailing-list-archives
|
||||||
|
{
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: CantarellBold;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
background: #fff;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
p#credits-heading
|
p#credits-heading
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
# [subscribe.php]
|
||||||
|
#
|
||||||
|
# Subscribe an email address to a Mailman3 mailing list. The email address is taken from the query string, and
|
||||||
|
# the mailing list can be set to the variable below.
|
||||||
|
#
|
||||||
|
# Used the documentation at [https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/model/docs/subscriptions.html]
|
||||||
|
|
||||||
|
$MAILING_LIST = "sandbox-list@nugget.fun";
|
||||||
|
|
||||||
|
$ch = curl_init();
|
||||||
|
curl_setopt($ch, CURLOPT_URL, "http://localhost:8001/3.1/system/versions");
|
||||||
|
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
||||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
|
curl_setopt($ch, CURLOPT_USERPWD, "restadmin:GgzPdbc0rvvsWkHIhmGtjtbv0rmDlz0Y4zBjQv+kEjl6HvSS");
|
||||||
|
echo curl_exec($ch);
|
||||||
|
curl_close($ch);
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue