Difference between revisions of "MediaWiki:Common.js"

From stix
Jump to: navigation, search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () { $.get("/request/log/visits", { page: 'wiki/'+window.location.href.split('title=')[1] });});
+
$(function () {
//don't delete above line
+
$("img").error(function(){ $(this).hide(); });
+
$.get("/request/log/visits", { page: 'wiki/'+window.location.href.split('title=')[1] });
$('#ovsa').html('<iframe><img  style="max-height:350px;" src="http://ovsa.njit.edu/flaremon/daily/2020/XSP20201116.png"></img></iframe>');
+
//don't delete above line
 +
$("img").error(function(){ $(this).hide(); });
 +
let stixObs='';
 +
$('.stix-obs').html(stixObs);
 +
 +
});

Revision as of 10:33, 29 May 2021

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
	
	$.get("/request/log/visits", { page: 'wiki/'+window.location.href.split('title=')[1] });
	//don't delete above line
	$("img").error(function(){ $(this).hide(); });
	let stixObs='';
	$('.stix-obs').html(stixObs);
	
});