Changes

Jump to: navigation, search

MediaWiki:Common.js

815 bytes added, 12:55, 18 January 2019
no edit summary
/* Any JavaScript here will be loaded for all users on every page load. */
var levels = [25, 50, 100, 200, 500, 1000, 2000, 5000, 10000];
$(document).ready(function() {
// Price
dataType: "json",
success: function(result) {
$("#price-user-25").texteach("$" + result["VSP-0"]); $("#price-25").text("$" + levels, function (25 * result["VSP-0"] * 12key, val);{ $("#price-user-50"+ val).text("$" + result["VSP-50"+ val]); $("#price-50").text("$" + (25 * result["VSP-50"] * 12});
},
});
}
if ($("#price-10").length > 0) {
var examples = [10, 40, 75, 150, 300, 750, 1500, 3000, 7500];
$.each(examples, function (key, val) {
pricecalc(val);
});
}
});
 
function pricecalc(users) {
$.ajax({
url: "/price.php?u=" + users,
dataType: "json",
success: function(result) {
$("#price-"+users).text("$" + parseInt(result * users * 12));
},
});
}
 
// Google Analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
ga('create', 'UA-20664476-4', 'auto');
ga('send', 'pageview');

Navigation menu