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
jQuery(function($) { | |
$(document).ready(function() { | |
const ajaxurl = '/contact'; | |
$("#chili-contact-form").submit(function(e) { | |
e.preventDefault(); | |
var messageObject = { | |
message: $("#message").val(); | |
//invoke the firebase cloud function | |
$.ajax({ | |
url : ajaxurl, |
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> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<form> | |
<input id="message" type="text"> | |
<input type="submit">submit> | |
</form> |
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 functions = require('firebase-functions'); | |
const request = require('request'); | |
exports.addMessageToSlack = functions.https.onRequest((req, resp) => { | |
return new Promise((resolve, reject) => { | |
const message = array['message']; | |
request.post( | |
"https://hooks.slack.com/X/Y/Z", | |
{ json: { text: `You have a new message: ${message}`} } | |
) |
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
import React, { Component } from 'react'; | |
import { Grid, Row, Col } from 'react-flexbox-grid'; | |
import { Cta } from './'; | |
import Api from './../../data'; | |
import ApiHun from './../../dataHun'; | |
class Faq extends Component { | |
componentDidMount() { | |
let language = this.props.lang; |
NewerOlder