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
const transporter = nodemailer.createTransport({ | |
service: 'SendinBlue', // no need to set host or port etc. | |
auth: { | |
user: 'YOUR EMAIL', | |
pass: 'API KEY' | |
} | |
}); | |
// Read more on the usage of Nodemailer package here: https://nodemailer.com/usage/ |
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
const Cosmic = require('cosmicjs')(); | |
const database = Cosmic.bucket({ | |
slug: 'YOUR BUCKET SLUG', | |
write_key: 'YOUR BUCKET WRITE KEY', | |
read_key: 'YOUR BUCKET READ KEY' | |
}) | |
export default database |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
/** | |
* Fetch and log a request | |
* @param {Request} request | |
*/ | |
async function handleRequest(request) { | |
let url = request.url |
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
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); | |
// or translate3d | |
-webkit-backface-visibility: hidden; | |
-moz-backface-visibility: hidden; | |
-webkit-transform: translate3d(0, 0, 0); | |
-moz-transform: translate3d(0, 0, 0); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Lightbox Plugin Demo</title> | |
<!-- LINK TO REQUIRED PLUGIN CSS FILE --> | |
<link href='https://www.jqueryscript.net/demo/Responsive-Touch-enabled-jQuery-Image-Lightbox-Plugin/dist/simplelightbox.min.css' rel='stylesheet' type='text/css'> | |
<!-- LINK TO CUSTOM CSS --> | |
<link href='https://www.jqueryscript.net/demo/Responsive-Touch-enabled-jQuery-Image-Lightbox-Plugin/demo.css' rel='stylesheet' type='text/css'> | |
</head> |
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
// set trigger time using https://www.epochconverter.com/ (know the trigger time in GMT) | |
triggerTime(1496300400000); | |
function run_script (){ | |
// put your logic here | |
} | |
// No need to alter any of this. | |
function triggerTime(trigger) { | |
var now = new Date().getTime(); |
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
// set trigger time using https://www.epochconverter.com/ (know the trigger time in GMT) | |
triggerTime(1496300400000); | |
function run_script (){ | |
// put your logic here | |
} | |
// No need to alter any of this. | |
function triggerTime(trigger) { | |
var now = new Date().getTime(); |