mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-11-30 21:21:17 -06:00
19 lines
570 B
JavaScript
19 lines
570 B
JavaScript
define(function (require, exports) {
|
|
"use strict";
|
|
var $ = require('jquery');
|
|
var options = require('options');
|
|
exports.initialise = function () {
|
|
$(function () {
|
|
if (!options.sharingEnabled)
|
|
$('.if-share-enabled').remove();
|
|
|
|
if (!options.githubEnabled)
|
|
$('.if-github-enabled').remove();
|
|
});
|
|
|
|
// TODO: url shortening service choice here
|
|
// was in analytics:\
|
|
// create_script_element('urlshortener', 'urlshorten-' + options.urlshortener + ".js");
|
|
|
|
};
|
|
}); |