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 HowToClaimPage: React.FC<Props> = ({ offer }) => { | |
const [brand, setBrand] = React.useState({} as any); | |
React.useEffect(() => { | |
const getBrand = async () => { | |
const getBrand = await http.get(`${api.base}brands/10`); | |
setBrand(getBrand.data); | |
return brand; | |
}; | |
getBrand(); |
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
# Test Sites | |
# User-agent: * | |
# Disallow: / | |
# Live Sites | |
User-agent: * | |
Allow: / | |
Disallow: /cgi-bin |
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
# Test Sites | |
# User-agent: * | |
# Disallow: / | |
# Live Sites | |
User-agent: * | |
Allow: / | |
Disallow: /cgi-bin |
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
SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306 | |
at Promise.tap.then.catch.err (/tmp/app/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:123:19) | |
From previous event: | |
at ConnectionManager.connect (/tmp/app/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:120:13) | |
at sequelize.runHooks.then (/tmp/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:311:50) | |
at runCallback (timers.js:705:18) | |
at tryOnImmediate (timers.js:676:5) | |
at processImmediate (timers.js:658:5) | |
at process.topLevelDomainCallback (domain.js:126:23) | |
From previous event: |
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 handleUpdateFilter = e => { | |
e.target.value !== 'default' | |
? onUpdateFilters({ | |
...filters.selected, | |
[e.target.name]: e.target.value, | |
}) | |
: null; | |
}; | |
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 MatPaper from '@material-ui/core/Paper'; | |
import { withCmsClasses } from '../MaterialClasses'; | |
import { Grid } from '@material-ui/core'; | |
import InputLabel from '@material-ui/core/InputLabel'; | |
import MenuItem from '@material-ui/core/MenuItem'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import FormHelperText from '@material-ui/core/FormHelperText'; | |
import FormControl from '@material-ui/core/FormControl'; | |
import Select from '@material-ui/core/Select'; |
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
if ( $('.embed-video-banner').length ) { | |
$( window ).scroll( function() { | |
$( 'iframe' ).each( function() { | |
if ( $( window ).scrollTop() > $( this ).offset().top - 200 ) { | |
player.playVideo(); | |
} | |
}); | |
}); | |
} |
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
Ribbon Background Colour | |
lsmwp_promotion_ribbon_bg Text | |
Ribbon Text Colour | |
lsmwp_promotion_ribbon_text_color Text | |
Ribbon Text | |
lsmwp_promotion_ribbon_text Text |
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
$.ajax({ | |
type: 'POST', | |
url: '//nnjk58r1d1.execute-api.eu-west-2.amazonaws.com/Prod/lead', | |
data: data, | |
contentType: 'application/json', | |
complete: function() { | |
console.log( 'lead Recorded' ); | |
if ( 'lp' === leadType ) { | |
leadRedirect( data.email, getRedirectUrl() ); | |
} |
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
function conversionRedirect() { | |
var goData = document.getElementById( 'go-data' ); | |
if( goData ){ | |
var redirect = goData.dataset.redirect; | |
window.setTimeout( window.location = redirect, 3000 ); | |
} | |
}; |
NewerOlder