Skip to content

Instantly share code, notes, and snippets.

View jonathandavidpollock's full-sized avatar

Jonathan Pollock jonathandavidpollock

View GitHub Profile
import React, { Component } from 'react';
import Arrow from '../Assets/arrow.png';
import questions from '../sga-questions';
import ReactDOM from 'react-dom';
import { getPageNumber } from '../Helpers';
class Questions extends Component {
constructor() {
super( );
window.onload = () => {
console.log('Inside the JS function');
// find the image elements
let imgArray = document.querySelectorAll('.style_size');
// Randomly pick a number
// Locate the image based off Random Number
const num = Math.floor(Math.random()*imgArray.length);
const imageToDisplay = imgArray[num];
window.onload = () => {
console.log('Inside the JS function');
// find the image elements
let imgArray = document.querySelectorAll('.random_image');
console.log(`Found all of these images: ${imgArray}`)
// Randomly pick a number
// Locate the image based off Random Number
const num = Math.floor(Math.random()*imgArray.length);
const nodemailer = require('nodemailer');
// const env = process.env.NODE_ENV || 'development';
// const config = require(path.join(__dirname, '/../config/config.json'))[env];
module.exports = (data) => {
nodemailer.createTestAccount((err, account) => {
// create reusable transporter object using the default SMTP transport
let transporter = nodemailer.createTransport({
host: 'smtp.gmail.com',
port: 587,