MediaWiki:Common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
$(document).ready(function() {
$('input#searchInput').attr('placeholder', 'Search for Transight Wiki');
});
// Open all external links in a new tab
$(document).ready(function () {
$("a.external").attr("target", "_blank");
});
mw.loader.using('mediawiki.util', function () {
// Force small text
document.documentElement.classList.remove('vector-feature-custom-font-size-standard', 'vector-feature-custom-font-size-large');
document.documentElement.classList.add('vector-feature-custom-font-size-small');
// Force wide layout
document.documentElement.classList.remove('vector-feature-limited-width');
document.documentElement.classList.add('vector-feature-wide-width');
});
mw.loader.using(['jquery', 'mediawiki.util'], function () {
$(function () {
// HTML for your footer (edit links/text as needed)
var footerHTML = ''
+ '<div class="custom-footer" role="contentinfo">'
+ ' <div class="footer-col"><h4>USE CASES</h4>'
+ ' <a href="/wiki/Fleet_Telematics">Fleet Telematics</a>'
+ ' <a href="/wiki/Remote_Monitoring_System">Remote Monitoring System</a>'
+ ' <a href="/wiki/Automation">Automation</a>'
+ ' <a href="/wiki/Asset_Tracking">Asset Tracking</a>'
+ ' <a href="/wiki/Advanced_EV_Telematics">Advanced EV Telematics</a>'
+ ' </div>'
+ ' <div class="footer-col"><h4>PRODUCTS</h4>'
+ ' <a href="/wiki/Trackers">Trackers</a>'
+ ' <a href="/wiki/Accessories">Accessories</a>'
+ ' <a href="/wiki/Cloud_IoT">Cloud IoT</a>'
+ ' <a href="/wiki/Solutions">Solutions</a>'
+ ' </div>'
+ ' <div class="footer-col"><h4>SUPPORT</h4>'
+ ' <a href="/wiki/Product_Support">Product Support</a>'
+ ' <a href="/wiki/Wiki_Knowledge_Base">Wiki Knowledge Base</a>'
+ ' <a href="/wiki/Warranty_Repair">Warranty & Repair</a>'
+ ' </div>'
+ ' <div class="footer-col"><h4>ABOUT US</h4>'
+ ' <a href="/wiki/Mission_Vision">Mission, Vision</a>'
+ ' <a href="/wiki/Career">Career</a>'
+ ' <a href="/wiki/Contacts">Contacts</a>'
+ ' <a href="https://instagram.com/">Instagram</a>'
+ ' <a href="https://youtube.com/">YouTube</a>'
+ ' <a href="https://linkedin.com/">LinkedIn</a>'
+ ' </div>'
+ '</div>';
// Try multiple possible footer selectors used by skins
var $target = $('#footer, #mw-footer, #mw-mf-footer, footer[role="contentinfo"], .mw-footer, .site-footer').first();
if ($target && $target.length) {
// put our footer inside the existing footer container
$target.html(footerHTML);
// ensure it is visible if a previous CSS rule hid it
$target.show();
} else {
// fallback: append right after page content
$('#mw-content-text').after(footerHTML);
}
});
});