From b52b925addfc1f8bbdef324d56e4d678d80817c2 Mon Sep 17 00:00:00 2001 From: be5invis Date: Tue, 10 Nov 2015 15:20:57 +0800 Subject: [PATCH] fixed display on Edge. --- homepage.css | 2 +- index-tabs.js | 4 ++-- index.html | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/homepage.css b/homepage.css index a4b5933..dd55f85 100644 --- a/homepage.css +++ b/homepage.css @@ -127,7 +127,7 @@ section#preview { max-width: none; text-align: center; transition: background 1.2s ease; - font-size: smaller; + font-size: 80%; } section#preview pre { display: inline-block; diff --git a/index-tabs.js b/index-tabs.js index 9a98cff..bdc7fdd 100644 --- a/index-tabs.js +++ b/index-tabs.js @@ -15,7 +15,7 @@ var CompactPicker = Vue.component('compact-picker', { var CodeSnippet = Vue.component('snippet', { template: '#code-snippet-template', props: { - id: String, + name: String, current: String }, data: {}, @@ -31,4 +31,4 @@ var codeArea = new Vue({ theme: 'dark' } }); -codeArea.snippets = codeArea.$children.map(function(e){ return e.id }).filter(function(x){ return !!x }); \ No newline at end of file +codeArea.snippets = codeArea.$children.map(function(e){ return e.name }).filter(function(x){ return !!x }); \ No newline at end of file diff --git a/index.html b/index.html index 1ad5685..cde6e7f 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@
- var languages = [ + var languages = [ {lang: 'English', sample: 'Shaw, those twelve beige hooks are joined if I patch a young, gooey mouth.'}, {lang: 'IPA', sample: '[ɢʷɯʔ.nas.doːŋ.kʰlja] [ŋan.ȵʑi̯wo.ɕi̯uĕn.ɣwa]'}, {lang: 'Bulgarian', sample: 'Я, пазачът Вальо уж бди, а скришом хапва кюфтенца зад щайгите.'}, @@ -69,7 +69,7 @@ {lang: 'Ukrainian', sample: 'Чуєш їх, доцю, га? Кумедна ж ти, прощайся без ґольфів!'} ] - + #include <math.h> // smallpt, a Path Tracer by Kevin Beason, 2008 #include <stdlib.h> // Make : g++ -O3 -fopenmp smallpt.cpp -o smallpt #include <stdio.h> // @@ -169,7 +169,7 @@ Sphere spheres[] = {//Scene: radius, position, emission for (int i=0; i<w*h; i++) fprintf(f,"%d %d %d ", toInt(c[i].x), toInt(c[i].y), toInt(c[i].z)); } -// Bootstrap +// Bootstrap // Buttons // -------------------------------------------------- @@ -256,7 +256,7 @@ Sphere spheres[] = {//Scene: radius, position, emission .btn-danger { .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border); } -# Curio, https://github.com/dabeaz/curio/blob/master/curio/network.py +# Curio, https://github.com/dabeaz/curio/blob/master/curio/network.py async def open_connection(host, port, *, ssl=None, source_addr=None, server_hostname=None, timeout=None): ''' Create a TCP connection to a given Internet host and port with optional SSL applied to it. @@ -293,7 +293,7 @@ Sphere spheres[] = {//Scene: radius, position, emission sock._socket.close() raise -# Phoenix, https://github.com/phoenixframework/phoenix/blob/master/lib/phoenix.ex +# Phoenix, https://github.com/phoenixframework/phoenix/blob/master/lib/phoenix.ex defmodule Phoenix do @moduledoc """ This is documentation for the Phoenix project. @@ -337,7 +337,7 @@ defmodule Phoenix do