Test:MobileDebug

Revision as of 18:57, 23 June 2025 by OlafLangmack (talk | contribs) (Created page with "<div style="border:2px solid red; padding:10px; margin:10px;"> <h3>Debug Information</h3> <div id="debug-info"> Skin: {{SKINNAME}}<br> Mobile check: <span class="nomobile">DESKTOP</span><span class="mobileonly" style="color:green;font-weight:bold;">MOBILE</span> </div> </div> <script> // This tests if ANY JavaScript runs document.getElementById('debug-info').innerHTML += '<br>Inline JS: <span style="color:green;">WORKING</span>'; </script> {{ImageViewer|third=File:AnyI...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Debug Information

Skin: Template:SKINNAME
Mobile check: MOBILE

<script> // This tests if ANY JavaScript runs document.getElementById('debug-info').innerHTML += '
Inline JS: WORKING'; </script>

Loading Image Viewer...


Checking what loads...

<script> // Check if mw object exists if (typeof mw !== 'undefined') {

   document.getElementById('module-check').innerHTML = 'mw object: EXISTS
'; document.getElementById('module-check').innerHTML += 'Config: ' + JSON.stringify(mw.config.get(['wgUseSiteJs', 'skin'])) + '
'; // Check if Common.js loaded if (typeof ImageViewer !== 'undefined') { document.getElementById('module-check').innerHTML += 'ImageViewer: LOADED'; } else { document.getElementById('module-check').innerHTML += 'ImageViewer: NOT LOADED'; }

} </script>