mirror of
https://github.com/neocities/neocities.git
synced 2025-07-19 17:16:05 +02:00
cleaner tutorial match code, improved page 2 logic
This commit is contained in:
parent
4f0eb2b82b
commit
10789f46f4
2 changed files with 25 additions and 31 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue