User:Marlamin/common.js: Difference between revisions

From wowdev
Jump to navigation Jump to search
(Created page with "var split = window.location.pathname.split("/"); if(split.length == 3 && split[1] == "DB"){ $('#mw-content-text').prepend("<div style='border-top: 1px dashed black; border-bot...")
 
No edit summary
Line 1: Line 1:
var split = window.location.pathname.split("/");
var split = window.location.pathname.split("/");
if(split.length == 3 && split[1] == "DB"){
if(split.length == 3 && split[1] == "DB"){
$('#mw-content-text').prepend("<div style='border-top: 1px dashed black; border-bottom: 1px dashed black; padding: 3px; background: #eee; font-size: 0.8em; display: block;'><a style='text-decoration: none; display: block;' href='https://github.com/wowdev/WoWDBDefs/blob/master/definitions/" + split[2] + ".dbd'> A (possibly) more up-to-date version of definitions for this DBC can also be found in the WoWDBDefs repo on GitHub. <b>Click this box view it.</b></a></div>");
$('#mw-content-text').prepend("<div style='border-top: 1px dashed black; border-bottom: 1px dashed black; padding: 3px; background: #eee; font-size: 0.8em; display: block;'><a target='_blank' style='text-decoration: none; display: block;' href='https://github.com/wowdev/WoWDBDefs/blob/master/definitions/" + split[2] + ".dbd'> A (possibly) more up-to-date version of definitions for this DBC can also be found in the WoWDBDefs repo on GitHub. <b>Click this box view it.</b></a></div>");
}
}

Revision as of 18:00, 8 July 2018

var split = window.location.pathname.split("/");
if(split.length == 3 && split[1] == "DB"){
$('#mw-content-text').prepend("<div style='border-top: 1px dashed black; border-bottom: 1px dashed black; padding: 3px; background: #eee; font-size: 0.8em; display: block;'><a target='_blank' style='text-decoration: none; display: block;' href='https://github.com/wowdev/WoWDBDefs/blob/master/definitions/" + split[2] + ".dbd'> A (possibly) more up-to-date version of definitions for this DBC can also be found in the WoWDBDefs repo on GitHub. <b>Click this box view it.</b></a></div>");
}