mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2020-11-18 19:53:40 -08:00
added markdown preview
This commit is contained in:
parent
d2b9546f59
commit
887ec9defa
@ -1,7 +1,134 @@
|
|||||||
<html>
|
<!doctype html>
|
||||||
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||||
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||||
|
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||||
|
<!--[if gt IE 8]><!-->
|
||||||
|
<html class="no-js">
|
||||||
|
<!--<![endif]-->
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>transfer.sh - Easy and fast file sharing from the command-line.</title>
|
||||||
|
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||||
|
<link rel="stylesheet" href="styles/main.css">
|
||||||
|
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||||
|
<!-- build:js scripts/vendor/modernizr.js -->
|
||||||
|
<script src="bower_components/modernizr/modernizr.js"></script>
|
||||||
|
<!-- endbuild -->
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<script>
|
||||||
|
(function(i, s, o, g, r, a, m) {
|
||||||
|
i['GoogleAnalyticsObject'] = r;
|
||||||
|
i[r] = i[r] || function() {
|
||||||
|
(i[r].q = i[r].q || []).push(arguments)
|
||||||
|
}, i[r].l = 1 * new Date();
|
||||||
|
a = s.createElement(o),
|
||||||
|
m = s.getElementsByTagName(o)[0];
|
||||||
|
a.async = 1;
|
||||||
|
a.src = g;
|
||||||
|
m.parentNode.insertBefore(a, m)
|
||||||
|
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="navigation">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>transfer.sh</h1>
|
||||||
|
<ul class="hidden-xs">
|
||||||
|
<li><a href="#samples">sample use cases</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="#contact">contact us</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section id="home">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h2>
|
||||||
|
{{.Filename}}</h2>
|
||||||
|
<a href="{{.Url}}"></a>
|
||||||
|
<div class="row animated fadeInDown">
|
||||||
|
<div id="from-terminal" class=" box col-md-8 col-md-offset-2 col-xs-12">
|
||||||
|
<div class="terminal-top">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="terminal" class="terminal">
|
||||||
|
<div class="preview-wrapper">
|
||||||
|
<div id="md-preview"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<a href="{{.Url}}" class="btn-cta btn-home"> download</i> </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function() {
|
||||||
|
var uv = document.createElement('script');
|
||||||
|
uv.type = 'text/javascript';
|
||||||
|
uv.async = true;
|
||||||
|
uv.src = '//widget.uservoice.com/5rkATbLIm8ClJQeOirOhFg.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0];
|
||||||
|
s.parentNode.insertBefore(uv, s)
|
||||||
|
})()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--[if lt IE 7]>
|
||||||
|
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(b, o, i, l, e, r) {
|
||||||
|
b.GoogleAnalyticsObject = l;
|
||||||
|
b[l] || (b[l] =
|
||||||
|
function() {
|
||||||
|
(b[l].q = b[l].q || []).push(arguments)
|
||||||
|
});
|
||||||
|
b[l].l = +new Date;
|
||||||
|
e = o.createElement(i);
|
||||||
|
r = o.getElementsByTagName(i)[0];
|
||||||
|
e.src = '//www.google-analytics.com/analytics.js';
|
||||||
|
r.parentNode.insertBefore(e, r)
|
||||||
|
}(window, document, 'script', 'ga'));
|
||||||
|
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- build:js scripts/main.js -->
|
||||||
|
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="bower_components/highlightjs/highlight.pack.js"></script>
|
||||||
|
<!-- </*script*/ src="bower_components/typed.js/js/typed.js"></script> -->
|
||||||
|
<script src="bower_components/uri.js/src/URI.min.js"></script>
|
||||||
|
<script src="bower_components/bootstrap/js/transition.js"></script>
|
||||||
|
<script src="bower_components/bootstrap/js/collapse.js"></script>
|
||||||
|
<script src="scripts/showdown.js"></script>
|
||||||
|
<script src="scripts/main.js"></script>
|
||||||
|
<!-- endbuild -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var text = "# Markdown *works*"
|
||||||
|
var converter = new Showdown.converter();
|
||||||
|
var html = converter.makeHtml(text);
|
||||||
|
$('#md-preview').append(html);
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
{{.ContentType}}
|
|
||||||
{{.ContentLength}}
|
|
||||||
{{.Filename}}
|
|
||||||
<a href="{{.Url}}">Download</a>
|
|
||||||
</html>
|
</html>
|
||||||
|
130
transfersh-web/download.md.html
Normal file
130
transfersh-web/download.md.html
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||||
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||||
|
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||||
|
<!--[if gt IE 8]><!-->
|
||||||
|
<html class="no-js">
|
||||||
|
<!--<![endif]-->
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>{{.Filename}} - transfer.sh</title>
|
||||||
|
<meta name="description" content="Easy and fast file sharing from the command-line.">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||||
|
<link rel="stylesheet" href="styles/main.css">
|
||||||
|
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,200,300' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
|
||||||
|
<!-- build:js scripts/vendor/modernizr.js -->
|
||||||
|
<script src="bower_components/modernizr/modernizr.js"></script>
|
||||||
|
<!-- endbuild -->
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<script>
|
||||||
|
(function(i, s, o, g, r, a, m) {
|
||||||
|
i['GoogleAnalyticsObject'] = r;
|
||||||
|
i[r] = i[r] || function() {
|
||||||
|
(i[r].q = i[r].q || []).push(arguments)
|
||||||
|
}, i[r].l = 1 * new Date();
|
||||||
|
a = s.createElement(o),
|
||||||
|
m = s.getElementsByTagName(o)[0];
|
||||||
|
a.async = 1;
|
||||||
|
a.src = g;
|
||||||
|
m.parentNode.insertBefore(a, m)
|
||||||
|
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="navigation">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>transfer.sh</h1>
|
||||||
|
<ul class="hidden-xs">
|
||||||
|
<li><a href="#samples">sample use cases</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="#contact">contact us</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section id="home">
|
||||||
|
<div class="wrapper">
|
||||||
|
<h2>
|
||||||
|
{{.Filename}}</h2>
|
||||||
|
<a href="{{.Url}}"></a>
|
||||||
|
<div class="row animated fadeInDown">
|
||||||
|
<div id="from-terminal" class=" box col-md-8 col-md-offset-2 col-xs-12">
|
||||||
|
<div class="terminal-top">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="terminal" class="terminal">
|
||||||
|
<div id="md-preview"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<a href="{{.Url}}" class="btn-cta btn-home"> download</i> </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function() {
|
||||||
|
var uv = document.createElement('script');
|
||||||
|
uv.type = 'text/javascript';
|
||||||
|
uv.async = true;
|
||||||
|
uv.src = '//widget.uservoice.com/5rkATbLIm8ClJQeOirOhFg.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0];
|
||||||
|
s.parentNode.insertBefore(uv, s)
|
||||||
|
})()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--[if lt IE 7]>
|
||||||
|
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(b, o, i, l, e, r) {
|
||||||
|
b.GoogleAnalyticsObject = l;
|
||||||
|
b[l] || (b[l] =
|
||||||
|
function() {
|
||||||
|
(b[l].q = b[l].q || []).push(arguments)
|
||||||
|
});
|
||||||
|
b[l].l = +new Date;
|
||||||
|
e = o.createElement(i);
|
||||||
|
r = o.getElementsByTagName(i)[0];
|
||||||
|
e.src = '//www.google-analytics.com/analytics.js';
|
||||||
|
r.parentNode.insertBefore(e, r)
|
||||||
|
}(window, document, 'script', 'ga'));
|
||||||
|
ga('create', 'UA-40833733-1', 'transfer.sh');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- build:js scripts/main.js -->
|
||||||
|
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||||
|
<script src="bower_components/uri.js/src/URI.min.js"></script>
|
||||||
|
<script src="bower_components/bootstrap/js/transition.js"></script>
|
||||||
|
<script src="bower_components/bootstrap/js/collapse.js"></script>
|
||||||
|
<script src="scripts/showdown.js"></script>
|
||||||
|
<script src="scripts/main.js"></script>
|
||||||
|
<!-- endbuild -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
var text = "# Markdown *works*.";
|
||||||
|
|
||||||
|
var converter = new Showdown.converter();
|
||||||
|
var html = converter.makeHtml(text);
|
||||||
|
$('#md-preview').append(html);
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -399,13 +399,9 @@
|
|||||||
|
|
||||||
<!-- build:js scripts/main.js -->
|
<!-- build:js scripts/main.js -->
|
||||||
<script src="bower_components/jquery/dist/jquery.js"></script>
|
<script src="bower_components/jquery/dist/jquery.js"></script>
|
||||||
<script src="bower_components/highlightjs/highlight.pack.js"></script>
|
|
||||||
<!-- </*script*/ src="bower_components/typed.js/js/typed.js"></script> -->
|
|
||||||
<script src="bower_components/uri.js/src/URI.min.js"></script>
|
<script src="bower_components/uri.js/src/URI.min.js"></script>
|
||||||
<script src="bower_components/bootstrap/js/transition.js"></script>
|
<script src="bower_components/bootstrap/js/transition.js"></script>
|
||||||
<script src="bower_components/bootstrap/js/collapse.js"></script>
|
<script src="bower_components/bootstrap/js/collapse.js"></script>
|
||||||
|
|
||||||
<script src="scripts/typewriter-bundle.js"></script>
|
|
||||||
<script src="scripts/main.js"></script>
|
<script src="scripts/main.js"></script>
|
||||||
<!-- endbuild -->
|
<!-- endbuild -->
|
||||||
|
|
||||||
|
1296
transfersh-web/scripts/showdown.js
Normal file
1296
transfersh-web/scripts/showdown.js
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -90,8 +90,6 @@ a {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background: @red;
|
background: @red;
|
||||||
}
|
}
|
||||||
|
3
transfersh-web/styles/includes/preview.less
Normal file
3
transfersh-web/styles/includes/preview.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.preview-wrapper {
|
||||||
|
padding-bottom: 30px;
|
||||||
|
}
|
@ -5807,4 +5807,7 @@ blockquote.tweet-xl a {
|
|||||||
.icon-gplus:before {
|
.icon-gplus:before {
|
||||||
content: "p";
|
content: "p";
|
||||||
}
|
}
|
||||||
|
.preview-wrapper {
|
||||||
|
padding-bottom: 30px;
|
||||||
|
}
|
||||||
/*# sourceMappingURL=/styles/main.css.map */
|
/*# sourceMappingURL=/styles/main.css.map */
|
File diff suppressed because one or more lines are too long
@ -9,5 +9,6 @@
|
|||||||
@import "includes/pages";
|
@import "includes/pages";
|
||||||
@import "includes/reviews";
|
@import "includes/reviews";
|
||||||
@import "includes/transfersh-icons";
|
@import "includes/transfersh-icons";
|
||||||
|
@import "includes/preview";
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user