This file contains hidden or 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
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( ); |
This file contains hidden or 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
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]; |
This file contains hidden or 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
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); |
This file contains hidden or 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 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, |