2015-05-04 07:53:29 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
|
|
<head>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<meta name="description" content="<%= __('Best way to write and share your knowledge in markdown.') %>">
|
2016-05-27 17:49:15 +00:00
|
|
|
|
<meta name="keywords" content="Collaborative, Markdown, Notes">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<title>HackMD - <%= __('Collaborative markdown notes') %></title>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<link rel="icon" type="image/png" href="<%- url %>/favicon.png">
|
|
|
|
|
<link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png">
|
2016-04-22 23:15:52 +00:00
|
|
|
|
<% if(useCDN) { %>
|
2016-10-23 05:27:02 +00:00
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />
|
2016-11-26 15:13:02 +00:00
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
|
2016-10-23 05:27:02 +00:00
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css" integrity="sha256-02JtFTurpwBjQJ6q13iJe82/NF0RbZlJroDegK5g87Y=" crossorigin="anonymous" />
|
2016-10-23 15:00:42 +00:00
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2.min.css" integrity="sha256-ijlUKKj3hJCiiT2HWo1kqkI79NTEYpzOsw5Rs3k42dI=" crossorigin="anonymous" />
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2-bootstrap.min.css" integrity="sha256-NAWFcNIZdH+TS1xpWujF/EB/Y8gwBbEOCoaK/eqaer8=" crossorigin="anonymous" />
|
2016-11-26 15:13:02 +00:00
|
|
|
|
<%- include build/cover-header %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<% } else { %>
|
2016-11-26 15:13:02 +00:00
|
|
|
|
<%- include build/cover-pack-header %>
|
2016-10-23 15:00:42 +00:00
|
|
|
|
<% } %>
|
2016-11-26 14:38:18 +00:00
|
|
|
|
<%- include polyfill %>
|
2015-05-04 07:53:29 +00:00
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<div class="site-wrapper">
|
|
|
|
|
<div class="site-wrapper-inner">
|
|
|
|
|
<div class="cover-container">
|
2016-12-24 03:50:57 +00:00
|
|
|
|
<div id="cover-app"></div>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
|
|
|
|
|
<div class="masthead clearfix">
|
|
|
|
|
<div class="inner">
|
|
|
|
|
<h3 class="masthead-brand"></h3>
|
|
|
|
|
<nav>
|
|
|
|
|
<ul class="nav masthead-nav">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<li class="ui-home<% if(!signin) { %> active<% } %>"><a href="#"><%= __('Intro') %></a>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</li>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<li class="ui-history<% if(signin) { %> active<% } %>"><a href="#"><%= __('History') %></a>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<div id="home" class="section"<% if(signin) { %> style="display:none;"<% } %>>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<div class="inner cover">
|
|
|
|
|
<h1 class="cover-heading"><i class="fa fa-file-text"></i> HackMD</h1>
|
|
|
|
|
<p class="lead">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<%= __('Best way to write and share your knowledge in markdown.') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</p>
|
2016-12-01 17:58:14 +00:00
|
|
|
|
<% if (infoMessage && infoMessage.length > 0) { %>
|
|
|
|
|
<div class="alert alert-info" style="max-width: 400px; margin: 0 auto;"><%= infoMessage %></div>
|
|
|
|
|
<% } %>
|
|
|
|
|
<% if (errorMessage && errorMessage.length > 0) { %>
|
|
|
|
|
<div class="alert alert-danger" style="max-width: 400px; margin: 0 auto;"><%= errorMessage %></div>
|
|
|
|
|
<% } %>
|
2016-12-07 13:19:06 +00:00
|
|
|
|
<% if(facebook || twitter || github || gitlab || dropbox || google || email) { %>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<span class="ui-signin">
|
|
|
|
|
<br>
|
2016-09-16 14:29:13 +00:00
|
|
|
|
<a type="button" class="btn btn-lg btn-success ui-signin" data-toggle="modal" data-target=".signin-modal" style="min-width: 170px;"><%= __('Sign In') %></a>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
</span>
|
2016-12-15 06:07:12 +00:00
|
|
|
|
<% }%>
|
2016-12-21 13:36:54 +00:00
|
|
|
|
<% if((facebook || twitter || github || gitlab || dropbox || google || email) && allowAnonymous) { %>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<span class="ui-or"><%= __('or') %></span>
|
2016-04-22 23:15:52 +00:00
|
|
|
|
<% }%>
|
2016-12-21 13:36:54 +00:00
|
|
|
|
<% if(allowAnonymous) { %>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<span class="ui-signin">
|
2016-09-16 14:29:13 +00:00
|
|
|
|
<a href="<%- url %>/new" class="btn btn-lg btn-default" style="min-width: 170px;"><%= __('New guest note') %></a>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</span>
|
2016-12-15 06:07:12 +00:00
|
|
|
|
<% }%>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<div class="lead row" style="width: 90%; margin: 0 auto;">
|
|
|
|
|
<div class="col-md-4 inner">
|
2016-10-10 12:34:53 +00:00
|
|
|
|
<a href="<%- url %>/features#share-notes">
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<i class="fa fa-bolt fa-3x"></i>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<h4><%= __('Collaborate with URL') %></h4>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4 inner">
|
|
|
|
|
<a href="<%- url %>/features#mathjax">
|
|
|
|
|
<i class="fa fa-bar-chart fa-3x"></i>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<h4><%= __('Support charts and MathJax') %></h4>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4 inner">
|
|
|
|
|
<a href="<%- url %>/features#slide-mode">
|
|
|
|
|
<i class="fa fa-tv fa-3x"></i>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<h4><%= __('Support slide mode') %></h4>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<div id="history" class="section"<% if(!signin) { %> style="display:none;"<% } %>>
|
2016-12-07 13:19:06 +00:00
|
|
|
|
<% if(facebook || twitter || github || gitlab || dropbox || google || email) { %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<div class="ui-signin">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<p><%= __('Below is the history from browser') %></p>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="ui-signout" style="display:none;">
|
2016-05-15 04:31:16 +00:00
|
|
|
|
<img class="ui-avatar">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<h4 class="ui-welcome"><%= __('Welcome!') %> <span class="ui-name"></span></h4>
|
|
|
|
|
<a href="<%- url %>/new" class="btn btn-md btn-default"><%= __('New note') %></a> <%= __('or') %>
|
|
|
|
|
<a href="#" class="btn btn-danger ui-logout"><%= __('Sign Out') %></a>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
2016-04-22 23:15:52 +00:00
|
|
|
|
<% }%>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<h4>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<a type="button" href="<%- url %>/features" class="btn btn-primary"><%= __('Explore all features') %></a>
|
2016-08-15 02:56:14 +00:00
|
|
|
|
</h4>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<hr>
|
|
|
|
|
<form class="form-inline">
|
|
|
|
|
<div class="form-group" style="vertical-align: bottom;">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<input class="form-control ui-use-tags" placeholder="<%= __('Select tags...') %>" />
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<input class="search form-control" placeholder="<%= __('Search keyword...') %>" />
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<a href="#" class="sort btn btn-default" data-sort="text" title="<%= __('Sort by title') %>">
|
|
|
|
|
<%= __('Title') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</a>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<a href="#" class="sort btn btn-default" data-sort="timestamp" title="<%= __('Sort by time') %>">
|
|
|
|
|
<%= __('Time') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</a>
|
|
|
|
|
<span class="hidden-xs hidden-sm">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<a href="#" class="btn btn-default ui-save-history" title="<%= __('Export history') %>"><i class="fa fa-save"></i></a>
|
|
|
|
|
<span class="btn btn-default btn-file ui-open-history" title="<%= __('Import history') %>">
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<i class="fa fa-folder-open-o"></i><input type="file" />
|
|
|
|
|
</span>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<a href="#" class="btn btn-default ui-clear-history" title="<%= __('Clear history') %>" data-toggle="modal" data-target=".delete-modal"><i class="fa fa-trash-o"></i></a>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</span>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<a href="#" class="btn btn-default ui-refresh-history" title="<%= __('Refresh history') %>"><i class="fa fa-refresh"></i></a>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</form>
|
|
|
|
|
<h4 class="ui-nohistory" style="display:none;">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<%= __('No history') %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</h4>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<a href="#" class="btn btn-primary ui-import-from-browser" style="display:none;"><%= __('Import from browser') %></a>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
<ul id="history-list" class="list">
|
|
|
|
|
</ul>
|
2016-10-11 08:48:42 +00:00
|
|
|
|
<ul class="pagination"></ul>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="mastfoot">
|
|
|
|
|
<div class="inner">
|
2016-08-15 02:56:14 +00:00
|
|
|
|
<h6 class="social-foot">
|
2016-10-19 14:08:27 +00:00
|
|
|
|
<iframe src="//ghbtns.com/github-btn.html?user=hackmdio&repo=hackmd&type=star&count=true" frameborder="0" scrolling="0" width="104px" height="20px"></iframe>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</h6>
|
2016-05-30 04:45:13 +00:00
|
|
|
|
<p>
|
2017-01-02 04:26:10 +00:00
|
|
|
|
© 2017 <a href="https://www.facebook.com/hackmdio" target="_blank"><i class="fa fa-facebook-square"></i> HackMD</a> | <a href="<%- url %>/s/release-notes" target="_blank"><%= __('Releases') %></a>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</p>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<select class="ui-locale">
|
|
|
|
|
<option value="en">English</option>
|
|
|
|
|
<option value="zh">中文</option>
|
2016-09-16 14:29:13 +00:00
|
|
|
|
<option value="fr">Français</option>
|
|
|
|
|
<option value="de">Deutsch</option>
|
|
|
|
|
<option value="ja">日本語</option>
|
|
|
|
|
<option value="es">Español</option>
|
2016-10-02 02:34:10 +00:00
|
|
|
|
<option value="el">Ελληνικά</option>
|
|
|
|
|
<option value="pt">Português</option>
|
2016-10-10 08:29:40 +00:00
|
|
|
|
<option value="it">italiano</option>
|
|
|
|
|
<option value="tr">Türkçe</option>
|
|
|
|
|
<option value="ru">Русский</option>
|
|
|
|
|
<option value="nl">Nederlands</option>
|
|
|
|
|
<option value="hr">hrvatski jezik</option>
|
|
|
|
|
<option value="pl">język polski</option>
|
2016-10-10 11:48:05 +00:00
|
|
|
|
<option value="uk">Українська</option>
|
2016-10-14 14:52:54 +00:00
|
|
|
|
<option value="hi">हिन्दी</option>
|
2016-10-21 05:39:28 +00:00
|
|
|
|
<option value="sv">svenska</option>
|
2016-12-31 03:02:57 +00:00
|
|
|
|
<option value="eo">Esperanto</option>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
</select>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- delete modal -->
|
|
|
|
|
<div class="modal fade delete-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<h4 class="modal-title" id="myModalLabel"><%= __('Are you sure?') %></h4>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body" style="color:black;">
|
|
|
|
|
<h5 class="ui-delete-modal-msg"></h5>
|
|
|
|
|
<strong class="ui-delete-modal-item"></strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
2016-08-19 03:49:24 +00:00
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
|
|
|
|
<button type="button" class="btn btn-danger ui-delete-modal-confirm"><%= __('Yes, do it!') %></button>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-05-11 06:37:54 +00:00
|
|
|
|
<%- include signin-modal %>
|
2016-04-20 10:03:55 +00:00
|
|
|
|
|
2016-04-22 23:15:52 +00:00
|
|
|
|
<% if(useCDN) { %>
|
2016-11-26 15:13:02 +00:00
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
2016-12-19 08:20:27 +00:00
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.4.0/velocity.min.js" integrity="sha256-bhm0lgEt6ITaZCDzZpkr/VXVrLa5RP4u9v2AYsbzSUk=" crossorigin="anonymous" defer></script>
|
2016-11-26 15:13:02 +00:00
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous" defer></script>
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/list.pagination.js/0.1.1/list.pagination.min.js" integrity="sha256-WwTza96H3BgcQTfEfxX7MFaFc/dZA0QrPRKDRLdFHJo=" crossorigin="anonymous" defer></script>
|
2016-10-23 05:27:02 +00:00
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" integrity="sha256-HzzZFiY4t0PIv02Tm8/R3CVvLpcjHhO1z/YAUCp4oQ4=" crossorigin="anonymous" defer></script>
|
2016-12-19 08:20:27 +00:00
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment-with-locales.min.js" integrity="sha256-vvT7Ok9u6GbfnBPXnbM6FVDEO8E1kTdgHOFZOAXrktA=" crossorigin="anonymous" defer></script>
|
2016-10-23 13:58:53 +00:00
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-url/2.3.0/url.min.js" integrity="sha256-HOZJz4x+1mn1Si84WT5XKXPtOlTytmZLnMb6n1v4+5Q=" crossorigin="anonymous" defer></script>
|
2016-12-19 08:20:27 +00:00
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.8/validator.min.js" integrity="sha256-LHeY7YoYJ0SSXbCx7sR14Pqna+52moaH3bhv0Mjzd/M=" crossorigin="anonymous" defer></script>
|
2016-11-26 15:13:02 +00:00
|
|
|
|
<%- include build/cover-scripts %>
|
2016-06-17 08:27:37 +00:00
|
|
|
|
<% } else { %>
|
2016-11-26 15:13:02 +00:00
|
|
|
|
<%- include build/cover-pack-scripts %>
|
2016-06-17 08:27:37 +00:00
|
|
|
|
<% } %>
|
2015-05-04 07:53:29 +00:00
|
|
|
|
</body>
|
|
|
|
|
|
2016-04-22 23:15:52 +00:00
|
|
|
|
</html>
|