mirror of
https://github.com/jamiebuilds/the-super-tiny-compiler.git
synced 2024-10-27 20:34:08 +00:00
🚨🍛 Updated with Glitch
This commit is contained in:
parent
8b758bac5a
commit
90acaaface
@ -19,6 +19,7 @@ document.addEventListener('click', function (e) {
|
||||
document.querySelector('main').outerHTML = json.html;
|
||||
// and change the file name in the header.
|
||||
document.querySelector('.js-file-name').textContent = json.context.fileName;
|
||||
document.querySelector('.js-file-name-link').href = 'https://github.com/j-f1/forked-super-tiny-compiler/tree/glitch/' + json.context.fileName;
|
||||
|
||||
// Finally, update the title bar and address bar,
|
||||
history.pushState(null, json.title, target.href);
|
||||
|
@ -6,6 +6,9 @@ var path = require('path');
|
||||
var ejs = require('ejs');
|
||||
var fs = require('fs');
|
||||
|
||||
process.env.NWO = process.env.NWO || 'thejameskyle/the-super-tiny-compiler';
|
||||
process.env.BRANCH = process.env.BRANCH || 'master';
|
||||
|
||||
// First, let's create the server,
|
||||
var app = express();
|
||||
// add a `req.body` property to requests containing
|
||||
|
@ -93,8 +93,10 @@
|
||||
left: 300px;
|
||||
right: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
main.is-code {
|
||||
/* The topbar, the padding, and the last line */
|
||||
padding-bottom: calc(100vh - 2em - 1em - 2em);
|
||||
padding-bottom: calc(100vh - 2em - 1em - 0.7em);
|
||||
}
|
||||
main pre#code {
|
||||
padding-bottom: 0;
|
||||
@ -289,19 +291,15 @@
|
||||
<body>
|
||||
<div id="app">
|
||||
<header>
|
||||
<a href="https://github.com/thejameskyle/the-super-tiny-compiler">
|
||||
/Users/thejameskyle/code/the-super-tiny-compiler/<span class="js-file-name"><%= fileName %></span>
|
||||
<a href="https://github.com/<%= process.env.NWO %>/tree/<%= process.env.BRANCH %>/<%= fileName %>" class="js-file-name-link">
|
||||
/Users/you/code/the-super-tiny-compiler/<span class="js-file-name"><%= fileName %></span>
|
||||
</a>
|
||||
|
||||
<a class="right" href="https://github.com/thejameskyle/the-super-tiny-compiler">
|
||||
<a class="right" href="https://github.com/<%= process.env.NWO %>">
|
||||
Star this in GitHub
|
||||
</a>
|
||||
|
||||
<a class="right" href="https://twitter.com/thejameskyle">
|
||||
Follow me on Twitter
|
||||
</a>
|
||||
|
||||
<a class="right" href="https://glitch.com/edit/#!/the-super-tiny-compiler">
|
||||
|
||||
<a class="right" href="https://glitch.com/edit/#!/<%= process.env.PROJECT_NAME %>">
|
||||
Remix this in Glitch
|
||||
</a>
|
||||
</header>
|
||||
|
Loading…
Reference in New Issue
Block a user