Browse Source

Embedded tweaks

dev/git-series/gccdum
Matt Godbolt 6 years ago
parent
commit
445a17c967
  1. 2
      static/explorer.css
  2. 5
      static/main.js
  3. 21
      views/templates.pug

2
static/explorer.css

@ -32,7 +32,7 @@
z-index: 100;
position: absolute;
bottom: 0.5em;
right: 0.5em;
right: 2.5em;
display: inline-block;
padding: 0.25em;
font-size: x-small;

5
static/main.js

@ -145,7 +145,10 @@ define(function (require) {
if (!options.embedded) {
local.set('gl', JSON.stringify(config));
} else {
$('a.link').attr('href', '#' + url.serialiseState(config));
var strippedToLast = window.location.pathname;
strippedToLast = strippedToLast.substr(0,
strippedToLast.lastIndexOf('/') + 1);
$('a.link').attr('href', strippedToLast + '#' + url.serialiseState(config));
}
});

21
views/templates.pug

@ -5,8 +5,9 @@
.btn-group.btn-group-sm
button.btn.btn-default.btn-sm.load-save(title="Load or save text")
span.glyphicon.glyphicon-floppy-disk
button.btn.btn-default.btn-sm.add-compiler(title="Add a new compiler for this source (click or drag)")
span.glyphicon.glyphicon-open
if !embedded
button.btn.btn-default.btn-sm.add-compiler(title="Add a new compiler for this source (click or drag)")
span.glyphicon.glyphicon-open
.monaco-placeholder
#compiler
@ -29,15 +30,17 @@
button.btn.btn-sm.active(title="Output disassembly in Intel syntax" data-bind="intel")
span Intel
include font-size.pug
.btn-group.btn-group-sm
button.btn.btn-default.btn-sm.add-compiler(title="Clone this compiler window (click or drag)")
span.glyphicon.glyphicon-new-window
if !embedded
.btn-group.btn-group-sm
button.btn.btn-default.btn-sm.add-compiler(title="Clone this compiler window (click or drag)")
span.glyphicon.glyphicon-new-window
.monaco-placeholder
.bottom-bar
.btn-group.btn-group-sm
button: span.glyphicon.glyphicon-alert.status
span.full-compiler-name
span.compile-time
if !embedded
.btn-group.btn-group-sm
button: span.glyphicon.glyphicon-alert.status
span.full-compiler-name
span.compile-time
#compiler-output
pre.content

Loading…
Cancel
Save