preparing for 3.0
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<footer>
|
||||
<a href="/">⌂ notehub</a> ·
|
||||
<a href="%LINK%/stats">statistics</a> ·
|
||||
<a href="%LINK%/edit">edit</a> ·
|
||||
<a href="%LINK%/export">export</a> ·
|
||||
<a href="/TOS.md">terms of service</a>
|
||||
</footer>
|
||||
@@ -0,0 +1,36 @@
|
||||
# Demo Note
|
||||
|
||||
## Text Formatting
|
||||
|
||||
This is a _short_ note demonstrating the **capabilities** of Markdown. [Markdown](http://en.wikipedia.org/wiki/Markdown) is a _markup language_ with plain text
|
||||
formatting syntax. But you also can use <u>standard HTML</u> tags.
|
||||
|
||||
## Backquotes, Lists & Code
|
||||
|
||||
This is a backquote:
|
||||
|
||||
> _"Our greatest glory is not in never falling but in rising every time we fall."_
|
||||
> — Confucius
|
||||
|
||||
To create simple lists, just enumerate all items using a dash in the prefix:
|
||||
|
||||
- Alpha
|
||||
- Beta
|
||||
- Gamma
|
||||
|
||||
Also you can either mark some special `words` or write entire `code` blocks:
|
||||
|
||||
(defn fact [n]
|
||||
(if (< n 2) 1
|
||||
(* n (fact (- n 1)))))
|
||||
|
||||
## Tables
|
||||
|
||||
Also simple tables is a piece of cake:
|
||||
|
||||
Column 1 | Column 2 | Column 3
|
||||
--- | --- | ---
|
||||
Text 1 | Text 3 | <s>Text 5</s>
|
||||
Text 2 | Text 4 | <mark>Text 6</mark>
|
||||
|
||||
Take a look at the [source code](/Demo.md/export) of this page, to see how it works.
|
||||
@@ -0,0 +1,75 @@
|
||||
# Terms of Service
|
||||
|
||||
### 1. Terms
|
||||
|
||||
By accessing the web site at <u>https://notehub.org</u>, you are agreeing to be
|
||||
bound by these web site Terms and Conditions of Use, all applicable laws and
|
||||
regulations, and agree that you are responsible for compliance with any
|
||||
applicable local laws. If you do not agree with any of these terms, you are
|
||||
prohibited from using or accessing this site. The materials contained in this
|
||||
web site are protected by applicable copyright and trademark law.
|
||||
|
||||
### 2. Use License
|
||||
|
||||
a. Under this license you may not:
|
||||
- (i) attempt to __modify, manipulate__ or __extend__ any software contained on NoteHub's web site;
|
||||
- (ii) create _any_ kind of content unlawful to __possess__, __produce__ or __distribute__ under your local law;
|
||||
|
||||
b. This license shall automatically terminate if you violate any of these
|
||||
restrictions and may be terminated by NoteHub at any time. Upon terminating
|
||||
your viewing of these materials or upon the termination of this license, you
|
||||
must destroy any downloaded materials in your possession whether in electronic
|
||||
or printed format.
|
||||
|
||||
### 3. Disclaimer
|
||||
|
||||
a. The materials on NoteHub's web site are provided "as is". NoteHub makes no
|
||||
warranties, expressed or implied, and hereby disclaims and negates all other
|
||||
warranties, including without limitation, implied warranties or conditions of
|
||||
merchantability, fitness for a particular purpose, or non-infringement of
|
||||
intellectual property or other violation of rights.
|
||||
|
||||
Further, NoteHub does not warrant or make any representations concerning the
|
||||
accuracy, likely results, or reliability of the use of the materials on its
|
||||
Internet web site or otherwise relating to such materials or on any sites
|
||||
linked to this site.
|
||||
|
||||
### 4. Limitations
|
||||
|
||||
In no event shall NoteHub or its suppliers be liable for any damages
|
||||
(including, without limitation, damages for loss of data or profit, or due to
|
||||
business interruption,) arising out of the use or inability to use the
|
||||
materials on NoteHub's Internet site, even if NoteHub or a NoteHub authorized
|
||||
representative has been notified orally or in writing of the possibility of
|
||||
such damage. Because some jurisdictions do not allow limitations on implied
|
||||
warranties, or limitations of liability for consequential or incidental
|
||||
damages, these limitations may not apply to you.
|
||||
|
||||
### 5. Revisions and Errata
|
||||
|
||||
The materials appearing on NoteHub's web site could include technical,
|
||||
typographical, or photographic errors. NoteHub does not warrant that any of the
|
||||
materials on its web site are accurate, complete, or current. NoteHub may make
|
||||
changes to the materials contained on its web site at any time without notice.
|
||||
NoteHub does not, however, make any commitment to update the materials.
|
||||
|
||||
### 6. Links
|
||||
|
||||
NoteHub has not reviewed all of the sites linked to its Internet web site and
|
||||
is not responsible for the contents of any such linked site. The inclusion of
|
||||
any link does not imply endorsement by NoteHub of the site. Use of any such
|
||||
linked web site is at the user's own risk.
|
||||
|
||||
### 7. Site Terms of Use Modifications
|
||||
|
||||
NoteHub may revise these terms of use for its web site at any time without
|
||||
notice. By using this web site you are agreeing to be bound by the then
|
||||
current version of these Terms and Conditions of Use.
|
||||
|
||||
### 8. Governing Law
|
||||
|
||||
Any claim relating to NoteHub's web site shall be governed by the laws of
|
||||
Germany without regard to its conflict of law provisions.
|
||||
|
||||
General Terms and Conditions applicable to Use of a Web Site.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>NoteHub — Free Pastebin for One-Off Markdown Publishing</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<link href="/style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="hero">
|
||||
<h1>NoteHub</h1>
|
||||
<h2>Free and Hassle-free Pastebin for Markdown Notes</h2>
|
||||
<br>
|
||||
<a class="landing-button demo" href="/Demo.md" style="color: white">See Demo Note</a>
|
||||
<a class="landing-button" href="/new" style="color: white">New Note</a>
|
||||
</div>
|
||||
<div id="dashed-line"></div>
|
||||
<article class="bottom-space">
|
||||
<h2>Changelog</h2>
|
||||
<ul>
|
||||
<li><strong>2017-08</strong>: NoteHub 3.0 released.</li>
|
||||
<li><strong>2016-08</strong>: Syntax highlighting for code blocks added (thanks to <a href="https://github.com/maciejsmolinski">Maciej</a>).</li>
|
||||
<li><strong>2016-03</strong>: Note deletion feature added.</li>
|
||||
<li><strong>2015-10</strong>: NoteHub rewritten in Node.js.</li>
|
||||
<li><strong>2015-10</strong>: NoteHub API and note styling discontinued due to low adoption.</li>
|
||||
<li><strong>2014-09</strong>: text size setting added</li>
|
||||
<li><strong>2014-07</strong>: deprecated all API versions less than 1.4 & performance improvements.</li>
|
||||
<li><strong>2014-03</strong>: note expiration implemented.</li>
|
||||
<li><strong>2014-02</strong>: a simple JS-client for API testing added.</li>
|
||||
<li><strong>2014-01</strong>: NoteHub API, mobile friendly styling and more.</li>
|
||||
<li><strong>2013-03</strong>: new color themes.</li>
|
||||
<li><strong>2012-07</strong>: password protection for note editing added.</li>
|
||||
<li><strong>2012-06</strong>: NoteHub released as a result of an <a href="/2012/6/16/how-notehub-is-built">experiment</a>.</li>
|
||||
</ul>
|
||||
</article>
|
||||
<footer>
|
||||
<a href="https://github.com/chmllr/NoteHub">source code</a> ·
|
||||
<a href="/TOS.md">terms of service</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
User-agent: *
|
||||
Disallow: /new
|
||||
Disallow: /*edit
|
||||
Disallow: /*export
|
||||
Disallow: /*stats
|
||||
@@ -0,0 +1,387 @@
|
||||
body {
|
||||
display: -webkit-flex;
|
||||
-webkit-flex-direction: column;
|
||||
flex-direction: column;
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
html, body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#hero {
|
||||
text-align: center;
|
||||
padding-bottom: 5em;
|
||||
padding-top: 5em;
|
||||
}
|
||||
|
||||
.ui-border {
|
||||
border-radius: 3px;
|
||||
border: 1px solid #333;
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: 1px dotted;
|
||||
text-decoration: none;
|
||||
color: #097;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #0a8;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #054;
|
||||
}
|
||||
|
||||
#draft {
|
||||
margin-bottom: 3em;
|
||||
}
|
||||
|
||||
.button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ui-elem {
|
||||
background: #fff;
|
||||
font-size: 1em;
|
||||
opacity: 0.8;
|
||||
padding: 0.3em;
|
||||
border-radius: 3px;
|
||||
font-family: sans-serif;
|
||||
font-weight: 300;
|
||||
border: 1px solid #333;
|
||||
}
|
||||
|
||||
.landing-button {
|
||||
line-height: 200%;
|
||||
display: inline-block;
|
||||
width: 10em;
|
||||
white-space: nowrap;
|
||||
border-radius: 3px;
|
||||
border: none;
|
||||
margin: 0.5em;
|
||||
background: #0a6;
|
||||
font-size: 1.5em;
|
||||
text-decoration: none;
|
||||
font-family: sans-serif;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.landing-button.demo {
|
||||
opacity: 0.9;
|
||||
background: #ddd;
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.landing-button:hover {
|
||||
background: #0b7;
|
||||
}
|
||||
|
||||
.landing-button.demo:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
padding-bottom: 1em;
|
||||
font-size: 0.8em;
|
||||
width: 100%;
|
||||
font-family: sans-serif;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
footer a {
|
||||
border: none;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: sans-serif;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1.0em;
|
||||
}
|
||||
|
||||
#hero h1 {
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
#hero h2 {
|
||||
margin: 2em;
|
||||
font-family: sans-serif;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#dashed-line {
|
||||
border-bottom: 1px dashed#888;
|
||||
}
|
||||
|
||||
article {
|
||||
text-align: justify;
|
||||
margin-top: 3em;
|
||||
margin-bottom: 5em;
|
||||
font-family: sans-serif;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
article img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
article p {
|
||||
line-height: 140%;
|
||||
font-size: 1.05em;
|
||||
}
|
||||
|
||||
article > h1:first-child {
|
||||
margin: 2em;
|
||||
font-size: 2.0em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.central-element {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
font-family: Georgia, Palatino, "Palatino Linotype", serif;
|
||||
padding-left: 1em;
|
||||
border-left: 4px solid #097;
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bottom-space {
|
||||
margin-bottom: 7em;
|
||||
}
|
||||
|
||||
*:focus {
|
||||
outline: 0px none transparent;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: #efefef;
|
||||
line-height: 2.5em;
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
td {
|
||||
line-height: 2.5em;
|
||||
padding: 0.3em;
|
||||
border-top: 1px solid #aaa;
|
||||
}
|
||||
|
||||
.middot {
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
/* MEDIA QUERIES */
|
||||
|
||||
@media screen and (min-width: 1024px) {
|
||||
article, .central-element {
|
||||
width: 800px;
|
||||
}
|
||||
#dashed-line {
|
||||
margin-bottom: 3em;
|
||||
margin-top: 3em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1023px) {
|
||||
article, .central-element {
|
||||
width: 90%;
|
||||
}
|
||||
#dashed-line {
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
#previewPane {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
#previewPane article {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#editContainer {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#previewPane {
|
||||
flex: 1 0 50%;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
margin: 0 !important;
|
||||
border-left: 1px solid #444;
|
||||
}
|
||||
|
||||
#previewPane article {
|
||||
flex: 1 0;
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
#previewPane article h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#editPane {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 0 50%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-size: 1em;
|
||||
font-family: Courier;
|
||||
border-radius: 5px;
|
||||
flex: 1 0;
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
textarea, fieldset {
|
||||
border: none;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding-left: 1em;
|
||||
padding-right: 1em;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
#tableau {
|
||||
position: relative;
|
||||
top: 0.4em;
|
||||
font-weight: lighter;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#plain-password {
|
||||
width: 10em;
|
||||
}
|
||||
|
||||
/* SYNTAX HIGHLIGHTING */
|
||||
|
||||
/* Theme: default, source: http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/default.min.css */
|
||||
.hljs {
|
||||
display:block;
|
||||
overflow-x:auto;
|
||||
padding:0.5em;
|
||||
background:#F0F0F0
|
||||
}
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color:#444
|
||||
}
|
||||
.hljs-comment {
|
||||
color:#888888
|
||||
}
|
||||
.hljs-keyword,
|
||||
.hljs-attribute,
|
||||
.hljs-selector-tag,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-doctag,
|
||||
.hljs-name {
|
||||
font-weight:bold
|
||||
}
|
||||
.hljs-type,
|
||||
.hljs-string,
|
||||
.hljs-number,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-quote,
|
||||
.hljs-template-tag,
|
||||
.hljs-deletion {
|
||||
color:#24A15E
|
||||
}
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color:#24A15E;
|
||||
font-weight:bold
|
||||
}
|
||||
.hljs-regexp,
|
||||
.hljs-symbol,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-link,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color:#6AA6D2
|
||||
}
|
||||
.hljs-literal {
|
||||
color:#8E61DF
|
||||
}
|
||||
.hljs-built_in,
|
||||
.hljs-bullet,
|
||||
.hljs-code,
|
||||
.hljs-addition {
|
||||
color:#8E61DF
|
||||
}
|
||||
.hljs-meta {
|
||||
color:#1f7199
|
||||
}
|
||||
.hljs-meta-string {
|
||||
color:#4d99bf
|
||||
}
|
||||
.hljs-emphasis {
|
||||
font-style:italic
|
||||
}
|
||||
.hljs-strong {
|
||||
font-weight:bold
|
||||
}
|
||||
|
||||
|
||||
pre, code, code.hljs {
|
||||
font-family: monospace;
|
||||
border-radius: 3px;
|
||||
background: #f0f0f0;
|
||||
font-size: 1.05em;
|
||||
}
|
||||
|
||||
/* Don't increase the size of code in pre tag, pre tag already did it.
|
||||
Otherwise code size would be even bigger (1.05em * 1.05em = 1.1025em) */
|
||||
pre code {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
pre, code.hljs {
|
||||
padding: 1em;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>NoteHub — %TITLE%</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
|
||||
<link href="/style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
%HEADER%
|
||||
<article>
|
||||
%CONTENT%
|
||||
</article>
|
||||
%FOOTER%
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user