Skip to content

Instantly share code, notes, and snippets.

View richardprice-1990's full-sized avatar
🎯
Focusing

Richard Price richardprice-1990

🎯
Focusing
View GitHub Profile
const handleUpdateFilter = e => {
e.target.value !== 'default'
? onUpdateFilters({
...filters.selected,
[e.target.name]: e.target.value,
})
: null;
};
async mobileValidation(){
try{
//Mobile format +447XXXXXXXXX
let regex_format = /^((44)7\d{9})$/
let mobile = this.mobile
if (!mobile) {
this.mobile = "";
return
}
async mobileValidation(){
//Mobile format +447XXXXXXXXX
const regex_format = /^((\+44)7\d{9})$/
let mobile = this.mobile
if (!mobile) return;
mobile = mobile.replace(/ /g, "");
if (mobile.length == 11 && mobile.substring(0,1) == 0){
mobile = `+44${mobile.substring(1,)}`
}
// Old code
const findProtostarSubids = async (item, callback) => {
async.waterfall([
(cb) => {
matchSubid(item)
.then((res) => {
cb(null, res);
}).catch((err) => {
cb(err)
version: 0.2
phases:
install:
commands:
- apt-get update -y
- apt-get install npm -y
- apt-get install node -y
- npm install gulp -g
- npm install bower -g
//orignal
function spanify_title($title) {
$title_words = explode(' ', $title);
if (count($title_words) > 1) {
$title_words[1] = '<span>' . $title_words[1] . '</span>';
return implode(' ', $title_words);
} else {
return $title;
}
<div class="opcard">
<div class="offerrow">
<img src="https://lsm-public-bucket.s3.amazonaws.com/sfsg/creativesuites/secretsofchristmas/dt_lp/mobilebet_logo.jpg" class="opcardimage">
<div class="opcardtext">
<span class="topline offerp">Deposit £15</span><br><span class="midline"> Play with <span class="midLineColor">£45</span></span><br><span class="btmline"> +50 Bonus Spins*</span>
</div>
</div>
</div>
<style>
.bold{
font-weight:bold
}
.opcardtext {
display: inline-block;
font-size: 31px;
font-family: Lato;
width: 33.3%;
#wrapper > div {
background-color: rgba(255,255,255,0.2);
width: 100%;
text-align: center;
margin-top: 2em;
}
#logo{
width: 10em;
padding: 10px 0px;
}