cleaner tutorial match code, improved page 2 logic

This commit is contained in:
Kyle Drake 2016-04-15 15:35:01 -07:00
parent 4f0eb2b82b
commit 10789f46f4
2 changed files with 25 additions and 31 deletions

View file

@ -80,6 +80,18 @@
<script type="text/javascript">
var infoObj = $('.error')
String.prototype.tutorialMatches = function(regex, opts) {
if(!opts)
var opts = 'gis'
var result = this.match(new XRegExp(regex, opts))
if(result == null)
return false
return true
}
function notok(msg) {
displayInfo('<i class="fa fa-exclamation-triangle"></i> ' + msg, {
background: '#93771B'