Brickfilms Wiki
m (Tidied up code formatting)
Tag: sourceedit
(Switch news module from H1 to H2 to match the other modules)
 
Line 1: Line 1:
 
//Additional side bar module
 
//Additional side bar module
 
$(document).ready(function() {
 
$(document).ready(function() {
var newSection = '<section id="activities" class="module"><h1>Wiki News</h1></section>';
+
var newSection = '<section id="activities" class="module"><h2>Wiki News</h2></section>';
 
$('#WikiaRail').append(newSection);
 
$('#WikiaRail').append(newSection);
 
$.getJSON('/api.php?action=parse&text={{Sidebar-WikiNews}}&format=json', function(data) {
 
$.getJSON('/api.php?action=parse&text={{Sidebar-WikiNews}}&format=json', function(data) {

Latest revision as of 21:56, 21 December 2020

//Additional side bar module
$(document).ready(function() {
    var newSection = '<section id="activities" class="module"><h2>Wiki News</h2></section>';
    $('#WikiaRail').append(newSection);
    $.getJSON('/api.php?action=parse&text={{Sidebar-WikiNews}}&format=json', function(data) {
        var code = data.parse.text['*'];
        $('section#activities').append(code);
    });
});