Merge pull request #1839 from ethereum/homepage2

Landing page
pull/1/head
yann300 6 years ago committed by GitHub
commit a6d9a9c688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 315
      src/app/ui/landing-page/landing-page.js
  2. 2
      src/app/ui/modal-dialog-custom.js
  3. 2
      src/lib/gist-handler.js

File diff suppressed because one or more lines are too long

@ -66,7 +66,7 @@ module.exports = {
function prompt (title, text, hidden, inputValue, ok, cancel, focus) {
if (!inputValue) inputValue = ''
var type = hidden ? 'password' : 'text'
var input = yo`<input type=${type} name='prompt_text' id='prompt_text' class="${css['prompt_text']}" value='${inputValue}' >`
var input = yo`<input type=${type} name='prompt_text' id='prompt_text' class="${css['prompt_text']} form-control" value='${inputValue}' >`
modal(title, yo`<div>${text}<div>${input}</div></div>`,
{
fn: () => { if (typeof ok === 'function') ok(document.getElementById('prompt_text').value) }

@ -12,7 +12,7 @@ function GistHandler (_window) {
var gistId
if (params['gist'] === '') {
loadingFromGist = true
modalDialogCustom.prompt(null, 'Enter the URL or ID of the Gist you would like to load.', null, (target) => {
modalDialogCustom.prompt(null, 'Enter the ID of the Gist you would like to load.', null, (target) => {
if (target !== '') {
gistId = getGistId(target)
if (gistId) {

Loading…
Cancel
Save