generated from KanFF/onepageMD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
js: import jquery and phplist suscribe code for the ajax form
- Loading branch information
1 parent
766e89e
commit 19c4d99
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,14 +199,15 @@ function getNewsLetterSection($news) | |
</div> | ||
<span class="text-sm text-gray-400"><?= $news['newsletter-subscription'] ?></span> | ||
<div> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | ||
<script src="https://s3.amazonaws.com/phplist/phplist-subscribe-0.2.min.js"></script> | ||
<script src="js/jquery-1.5.2.min.js"></script> | ||
<script src="js/phplist-subscribe-0.2.min.js"></script> | ||
|
||
<div id="phplistsubscriberesult" class="text-green-600"></div> | ||
<form action="https://kanffnews.hosted.phplist.com/lists/?p=subscribe&id=1" method="post" id="phplistsubscribeform"> | ||
<input type="text" name="email" value="" id="emailaddress" class="w-full p-1 outline-none focus:bg-gray-200 rounded-sm text-black md:text-base text-sm" placeholder="[email protected]" /><br> | ||
<button type="submit" id="phplistsubscribe" class="bg-gray-300 hover:bg-blue-300 px-3 py-1 rounded-sm mt-2">S'inscrire</button> | ||
<script> | ||
var waitImage = "js/busy.gif"; | ||
var pleaseEnter = ""; | ||
var thanksForSubscribing = "<h3 class='text-xl'>Merci pour votre inscription !</h3><p>Vérifiez svp votre boîte mail et cliquez sur le lien de confirmation.</p>"; | ||
</script> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.