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
async mobileValidation(){ | |
try{ | |
//Mobile format +447XXXXXXXXX | |
let regex_format = /^((44)7\d{9})$/ | |
let mobile = this.mobile | |
if (!mobile) { | |
this.mobile = ""; | |
return | |
} |
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
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,)}` | |
} |
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
// Old code | |
const findProtostarSubids = async (item, callback) => { | |
async.waterfall([ | |
(cb) => { | |
matchSubid(item) | |
.then((res) => { | |
cb(null, res); | |
}).catch((err) => { | |
cb(err) |
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
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 |
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
//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; | |
} |
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
<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> |
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
<style> | |
.bold{ | |
font-weight:bold | |
} | |
.opcardtext { | |
display: inline-block; | |
font-size: 31px; | |
font-family: Lato; | |
width: 33.3%; |
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
#wrapper > div { | |
background-color: rgba(255,255,255,0.2); | |
width: 100%; | |
text-align: center; | |
margin-top: 2em; | |
} | |
#logo{ | |
width: 10em; | |
padding: 10px 0px; | |
} |