MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Miraheze>Adám Brudzewsky No edit summary |
Miraheze>Adám Brudzewsky No edit summary |
||
Line 5: | Line 5: | ||
}); | }); | ||
} | } | ||
if ($(".crossword").length){$(".crossword .n,.crossword .e").html("<input maxlength=1 onfocus=this.select() oninput=this.select() value=' '>")} | if ($(".crossword").length){ | ||
$(".crossword .n,.crossword .e").html("<input maxlength=1 onfocus=this.select() oninput=this.select() value=' '>"); | |||
$(".puzzle").append("<button>Check</button>").on("click","button",_=>alert(["Wrong!","Right!"][+/V-¯1↓0[,⍪]V\)A\(÷10∊NMV←⎕\+[\\⍀][⌽⊖]-MB\+A⍳A[\/⌿]V⍳T11[\/⌿]R⍴VV⌊99\(0∊SN∊\.12⊥YMVV25×V\+×N\|K\)\+∘\.×V⍳9[\/⌿]\(M[∧^×]\.=V\)⍳1,⎕\(\/\+N20×M[Aa]\(3×⍳9\)\+7[≢⍴],[Vv]\(2⍴5\)⍴1[,⍪]5⍴0/.test($(".crossword input").map((_,i)=>i.value).toArray().join(""))])); | |||
} |
Revision as of 09:52, 14 November 2019
if ($(".LeadingAndTrailingCells").length) { mw.loader.getScript('/w/index.php?title=MediaWiki:D3.v5.min.js&action=raw&ctype=text/javascript') .then(function() { mw.loader.load('/w/index.php?title=MediaWiki:LeadingAndTrailingCells.js&action=raw&ctype=text/javascript'); }); } if ($(".crossword").length){ $(".crossword .n,.crossword .e").html("<input maxlength=1 onfocus=this.select() oninput=this.select() value=' '>"); $(".puzzle").append("<button>Check</button>").on("click","button",_=>alert(["Wrong!","Right!"][+/V-¯1↓0[,⍪]V\)A\(÷10∊NMV←⎕\+[\\⍀][⌽⊖]-MB\+A⍳A[\/⌿]V⍳T11[\/⌿]R⍴VV⌊99\(0∊SN∊\.12⊥YMVV25×V\+×N\|K\)\+∘\.×V⍳9[\/⌿]\(M[∧^×]\.=V\)⍳1,⎕\(\/\+N20×M[Aa]\(3×⍳9\)\+7[≢⍴],[Vv]\(2⍴5\)⍴1[,⍪]5⍴0/.test($(".crossword input").map((_,i)=>i.value).toArray().join(""))])); }