Compilers
Widgets - Overview

Sphere Engine Compilers Widget allows you to integrate the Compilers module of the Sphere Engine service with your website via a web component known as the widget.

Sphere Engine Compilers is a service that allows for remote execution of computer programs in one of many supported programming languages and execute it with the input data that you defined.

Detailed information about the Sphere Engine Compilers module can be found in the overview article.

See how it works

Below is an embedded, fully functional and ready-to-use Sphere Engine Compilers widget.

Embed the widget on your website

Embed the widget on your own website by following these two steps.

First, place the following JavaScript code directly after the <body> tag on the website you want to integrate Sphere Engine Compilers Widget with:

<script>SEC_HTTPS = true;
SEC_BASE = "compilers.widgets.sphere-engine.com"; 
(function(d, s, id){ SEC = window.SEC || (window.SEC = []);
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; 
  js.src = (SEC_HTTPS ? "https" : "http") + "://" + SEC_BASE + "/static/sdk/sdk.min.js";
  fjs.parentNode.insertBefore(js, fjs);   
}(document, "script", "sphere-engine-compilers-jssdk"));

SEC.ready = function(f) {
  if (document.readyState != "loading" && document.readyState != "interactive") f();
  else window.addEventListener("load", f);
};
</script>

Next, place the following HTML code in the exact place in which you want to display the widget:

<div class="sec-widget" data-widget="9e1e25c224b32a941cccc468d284e148"></div>