View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,97 @@
Copyright (c) <dates>, <Copyright Holder> (<URL|email>),
with Reserved Font Name <Reserved Font Name>.
Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>),
with Reserved Font Name <additional Reserved Font Name>.
Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>).
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
View
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -21,8 +21,7 @@
<div class="form-field">
<label class="form-label" for="field-login-username">Username or email address:</label>
<input class="form-input" type="text" id="field-login-username"
name="username" value=""
ng-model="model.username"
name="username" value="" ng-model="model.username" autofocus
required autocapitalize="false" />
<ul class="form-error-list">
<li class="form-error"
View
@@ -46,8 +46,3 @@
ng-show="vm.shouldShowAsReply()">
</li>
</ul>
<footer class="thread-anchor-notice"
ng-if="feature('show_unanchored_annotations') && isSidebar && vm.container.message.$orphan">
<em>We can't find the exact position of this annotation.</em>
</footer>
View
@@ -49,16 +49,6 @@
</div>
</section>
{% endif %}
{% if is_index %}
<section class="help-page-section">
<h2 id="getting-started" class="help-page-heading">Getting started</h2>
<p class="help-page-lede">Great, you've got the server up and running, you're now ready to start kicking the tires.</p>
<div class="numbered-list grid">
<div class="column-desktop-1-2"><div class="numbered-list-item">Create an account using the sidebar on the right of the screen.</div></div>
<div class="column-desktop-1-2"><div class="numbered-list-item">Annotate this page or use this bookmarklet: {% include "includes/bookmarklet.html.jinja2" %}</div></div>
</div>
</section>
{% endif %}
<section class="help-page-section">
<h2 id="key-features" class="help-page-heading">Annotation Types</h2>
<p class="help-page-lede">There are a few types of annotations that can be created
@@ -131,40 +121,6 @@
</ul>
</div>
</section>
{% if is_index %}
<section class="help-page-section">
<h2 id="contributing" class="help-page-heading">Contributing</h2>
<div class="styled-text">
<p>Hypothesis is an open source effort licensed under a 2-Clause <a
href="https://en.wikipedia.org/wiki/BSD_licenses">BSD License</a>,
sometimes referred to as the "Simplified BSD License" or the "FreeBSD
License".</p>
<p>Development is coordinated through <a
href="https://github.com/hypothesis">our Github repository</a> utilizing
the issue tracking and wiki tools provided there. Additionally, we manage a
mailing list which you can subscribe to by sending an email to <a
href="&#x6d;&#x61;&#x69;&#x6c;&#116;&#111;&#58;&#100;&#101;&#x76;&#x2b;&#x73;&#x75;&#x62;&#115;&#99;&#114;&#105;&#98;&#x65;&#x40;&#x6c;&#x69;&#x73;&#116;&#46;&#104;&#121;&#112;&#x6f;&#x74;&#x68;&#x65;&#x73;&#46;&#105;&#115;">&#100;&#101;&#x76;&#x2b;&#x73;&#x75;&#x62;&#115;&#99;&#114;&#105;&#98;&#x65;&#x40;&#x6c;&#x69;&#x73;&#116;&#46;&#104;&#121;&#112;&#x6f;&#x74;&#x68;&#x65;&#x73;&#46;&#105;&#115;</a>
(<a href="https://groups.google.com/a/list.hypothes.is/forum/#!forum/dev">archive</a>).</p>
<p>Note the <a href="https://github.com/hypothesis/h/wiki">project
wiki</a>, including a <a
href="https://hypothes.is/roadmap/">roadmap</a>, detailed <a
href="https://github.com/hypothesis/h/wiki/_pages">descriptions</a> and <a
href="https://github.com/hypothesis/h/wiki/Mockup-index">mockups</a> of
upcoming features, and <a href="https://github.com/hypothesis/h/issues">current
issues</a> needing development attention. Additionally, our <a
href="https://groups.google.com/forum/#!forum/hypothesis-forum"
target="_blank">forum</a> is a great place to get answers and offer feedback.</p>
<p>After you're done familiarizing yourself with the project landscape we
recommend reading our <a
href="https://github.com/hypothesis/h/blob/develop/CONTRIBUTING.rst">contributor
guide</a> which details our work-flow, conventions and licensing administrivia.
Additionally, please feel free to join us in <a
href="http://webchat.freenode.net/?channels=hypothes.is">#hypothes.is</a> on <a
href="http://freenode.net/">freenode</a> and subscribe to our mailing list.</p>
<p>Finally, we also have grant opportunities for projects related to web annotation. You can find out more about them on our <a href="http://anno.fund/">Open Annotation Grant Opportunities page</a>.</p>
</div>
</section>
{% endif %}
</article>
<div class="help-page-sidebar">
<div id="help-1">
View
@@ -0,0 +1,305 @@
{% set rss_feed_url = base_url + "feed/" %}
{% extends "h:templates/layouts/base.html.jinja2" %}
{% block page_title %}Hypothesis | The Internet, peer reviewed.{% endblock %}
{% block meta %}
{{ super() }}
<link rel='canonical' href='{{ base_url }}'>
<link href="{{ rss_feed_url }}" rel="alternate" type="application/rss+xml">
{% endblock %}
{% block styles %}
{% assets "front_page_css" %}
<link rel="stylesheet" href="{{ ASSET_URL }}">
{% endassets %}
{% endblock %}
{% block content %}
<header class="banner hiring">
<div class="container">
<span>
We're hiring
<a href="{{ base_url }}jobs/#developer">developers</a>.
</span>
</div>
</header>
<header class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ base_url }}">
Hypothes<span class="red">.</span>is
</a>
</div>
<nav class="collapse navbar-collapse">
<div class="menu-main-menu-container">
<ul id="menu-main-menu" class="nav navbar-nav">
<li id="menu-item-3607"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3607">
<a href="{{ base_url }}about/">About</a>
</li>
<li id="menu-item-3609"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3609">
<a href="{{ base_url }}blog/">Blog</a>
</li>
<li id="menu-item-3608"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3608">
<a href="{{ base_url }}contribute/">Contribute</a>
</li>
<li id="menu-item-4372"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4372">
<a href="{{ base_url }}education/">Education</a>
</li>
<li id="menu-item-3615"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3615">
<a href="{{ base_url }}jobs/">Jobs</a>
</li>
</ul>
</div>
<ul class="nav navbar-nav pull-right login">
{% if username %}
<li><a href="{{ user_profile_link }}">{{ username }}</a></li>
<li><a href="{{ request.route_url("logout") }}">Sign out</a></li>
{% else %}
<li><a href="{{ base_url }}login">Sign in</a></li>
<li><a href="{{ base_url }}register">Create an account</a></li>
{% endif %}
</ul>
</nav>
</div>
</header>
<div class="wrap container" role="document">
<div class="content row">
<main class="main">
<div class="jumbotron">
<div class="row">
<div class="col-sm-6">
<div id="video"
class="embed-responsive embed-responsive-16by9">
<iframe allowfullscreen class="embed-responsive-item"
src="https://www.youtube.com/embed/QCkm0lL-6lc?showinfo=0&autohide=1">
</iframe>
</div>
</div>
<div class="col-sm-6 call-to-action">
<h2>Annotate with anyone, anywhere</h2>
<p>
<a href="{{ base_url }}about/">Our mission</a> is to
bring a new layer to the web. Use Hypothesis to discuss,
collaborate, organize your research, or take personal notes.
</p>
<section class="installer">
<span class="hidden unhide-in-chrome">
<a class="btn btn-primary hidden-xs"
href="https://chrome.google.com/webstore/detail/bjfhmglciegochdpefhhlphglcehbmek"
onclick="chrome.webstore.install();return false;"
data-chromeext-button="">
<img alt="" class="installer__browser-logo--chrome"
src="{{ base_url }}assets/images/browser-chrome-64x64.png">
Install
</a>
</span>
<span class="hide-in-chrome">
<a class="btn btn-primary hidden-xs" href="#"
data-toggle="modal" data-target="#bookmarklet">
Get Bookmarklet
</a>
</span>
<em class="or hidden-xs">Or...</em>
<form class="via" onsubmit="url = document.getElementById('search').value; if (url != '') { window.location.href = 'https://via.hypothes.is/h/' + url; } return false;">
<span class="input-group"
title="Insert a URL to annotate that page.">
<input id="search" class="form-control" type="text"
name="search" placeholder="Paste a link...">
<span class="input-group-btn" data-via-button="">
<button class="btn btn-primary" type="submit">
Annotate!
</button>
</span>
</span>
</form>
</section>
<p class="hide-in-chrome">
There's also a
<a href="https://chrome.google.com/webstore/detail/bjfhmglciegochdpefhhlphglcehbmek">
Chrome extension
</a>
or you can
<a href="#" class="" data-toggle="modal" data-target="#addtoyoursite" data-addtosite-button="">
add it to your website</a>.
</p>
<p class="hidden unhide-in-chrome">
There's also a
<a href="#" class="" data-toggle="modal" data-target="#bookmarklet">
bookmarklet
</a>
or you can
<a href="#" class="" data-toggle="modal" data-target="#addtoyoursite" data-addtosite-button="">
add it to your website</a>.
</p>
<script>
if (window.chrome !== undefined) {
var elements = document.getElementsByClassName(
"unhide-in-chrome");
for (var i=0; i<elements.length; i++) {
elements[i].classList.remove("hidden");
}
elements = document.getElementsByClassName(
"hide-in-chrome");
for (var i=0; i<elements.length; i++) {
elements[i].classList.add("hidden");
}
}
</script>
<div class="modal fade" id="bookmarklet" tabindex="-1"
role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close"
data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">Bookmarklet</h4>
</div>
<div class="modal-body">
<div>
<a title="Drag me to the bookmarks bar"
data-bookmarklet-button=""
class="btn btn-primary btn-lg installer__button--draggable"
href="javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true};};var d=document,s=d.createElement('script');s.setAttribute('src','{{ request.route_url("embed") }}');d.body.appendChild(s)})();"
onclick="alert('Drag me to the bookmarks bar');return false;">Launch Hypothesis
</a>
<p><i class="fa fa-arrows"></i> Drag the button into
your bookmarks bar then click it to launch the
Hypothesis application.</p>
<p>Alternatively, right click and select
"bookmark this link." To load Hypothesis on a webpage
or PDF, simply click on the bookmarklet in your
bookmarks.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="addtoyoursite" tabindex="-1"
role="dialog" aria-hidden="true">
<div class="modal-dialog">
<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>
<h4 class="modal-title">Add Hypothesis to a web site</h4>
</div>
<div class="modal-body">
<div class="installer__section--addtosite">
<p>
<input class="form-control" type="text"
value='&lt;script async defer src="//hypothes.is/embed.js"&gt;&lt;/script&gt;'>
</p>
<p>Add the above script tag to your web site's HTML to load
the Hypothesis sidebar on your site.</p>
<p>To show highlights by default, also add:</p>
<p>
<input class="form-control" type="text"
value='&lt;script&gt;window.hypothesisConfig=function(){return{showHighlights:true};&lt;/script&gt;'>
</p>
<p>Alternatively, if you use WordPress, checkout the
<a href="https://wordpress.org/plugins/hypothesis/">
Hypothesis WordPress plugin</a>.
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<footer class="content-info">
<div class="container">
<nav class="navbar navbar-default">
<div class="nav navbar-nav social-media pull-right">
<a href="https://github.com/hypothesis">
<i class="fa fa-github"></i>
</a>
<a href="https://twitter.com/hypothes_is">
<i class="fa fa-twitter"></i>
</a>
<a href="{{ rss_feed_url }}"><i class="fa fa-rss"></i></a>
</div>
<div class="menu-footer-container">
<ul id="menu-footer" class="nav navbar-nav">
<li id="menu-item-3613"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3613">
<a href="{{ base_url }}contact/">Contact</a>
</li>
<li id="menu-item-3623"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3623">
<a href="{{ base_url }}fund/">Grant opportunities</a>
</li>
<li id="menu-item-3611"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3611">
<a href="{{ base_url }}roadmap/">Roadmap</a>
</li>
<li id="menu-item-3614"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3614">
<a href="{{ base_url }}press/">Press</a>
</li>
<li id="menu-item-3610"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3610">
<a href="{{ base_url }}team/">Our team</a>
</li>
<li id="menu-item-3612"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3612">
<a href="{{ base_url }}terms-of-service/">
Terms of Service
</a>
</li>
<li id="menu-item-4123"
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4123">
<a href="{{ base_url }}for-publishers/">
For Publishers
</a>
</li>
</ul>
</div>
</nav>
</div>
</footer>
{% endblock %}
{% block scripts %}
{% assets "front_page_js" %}
<script src="{{ ASSET_URL }}"></script>
{% endassets %}
{% assets "bootstrap" %}
<script src="{{ ASSET_URL }}"></script>
{% endassets %}
{% endblock %}
View
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#">
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
{% block meta %}
<meta charset="UTF-8" />
@@ -29,6 +29,19 @@
{% endfor -%}
{% block styles %}{% endblock %}
<link rel="apple-touch-icon" sizes="152x152"
href="{{ base_url }}assets/images/apple-touch-icon-152x152.png">
<link rel="icon" type="image/png" sizes="16x16"
href="{{ base_url }}assets/images/favicons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32"
href="{{ base_url }}assets/images/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96"
href="{{ base_url }}assets/images/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="192x192"
href="{{ base_url }}assets/images/favicons/android-chrome-192x192.png">
<link rel="shortcut icon"
href="{{ base_url }}assets/images/favicons/favicon.ico">
{% if ga_tracking_id %}
<!-- Google Analytics -->
<script async src='//www.google-analytics.com/analytics.js'></script>
View
@@ -95,13 +95,11 @@ def widget(context, request):
return {}
@view_config(renderer='h:templates/help.html.jinja2', route_name='index')
@view_config(renderer='h:templates/help.html.jinja2', route_name='help')
@view_config(renderer='h:templates/help.html.jinja2', route_name='onboarding')
def help_page(context, request):
current_route = request.matched_route.name
return {
'is_index': current_route == 'index',
'is_help': current_route == 'help',
'is_onboarding': current_route == 'onboarding',
}
@@ -168,8 +166,6 @@ def _validate_blocklist(config):
def includeme(config):
config.include('h.assets')
config.add_route('index', '/')
config.add_route('embed', '/embed.js')
config.add_route('widget', '/app.html')