Commit graph

69 commits

Author SHA1 Message Date
Saivann
5707cea630
Rework menus for mobile compatibility
Start supporting touch events for non-buggy iOS support and faster menus
Display and hide wallets on click instead of on mouseout to prevent accidental clicks or mouseout events
Add a wrapper function to detect ghost and accidental clicks
Reorganize wallet javascript functions for better readability
Fix bug in which a wallet would display on mouse over after user clicked inside it's bubble
Fix accidental use of global variables
2015-07-07 15:21:21 -04:00
Saivann
19cc8863c2
Merge branch 'jsexpandbox' 2015-06-29 11:54:52 -04:00
Saivann
3d9c178df3 Avoid duplicate code and non-reusable functions with hardcoded variables 2015-06-26 17:13:09 -04:00
Saivann
b27bcaf626 Simplify javascript code for expanding lists and blocks
Move styles to CSS stylesheets by using a class
Use a single function for all expanding boxes and lists
Separate CSS code for IE8 compatibility
2015-06-25 23:26:50 -04:00
David A. Harding
b347044eb2
Repository Move: Update Repository URLs
git ls-tree --full-tree -r HEAD \
  | sed 's/^.\{53\}//'          \
  | xargs sed -i 's^https://github.com/bitcoin/bitcoin.org^https://github.com/bitcoin-dot-org/bitcoin.org^g'
2015-06-23 09:08:40 -04:00
Saivann
262b550c18 Separate event script from event data 2015-05-01 14:19:43 -04:00
David A. Harding
ec343d54d1 QA: Check HTML Correctness & Fix Existing Errors
- _contrib/bco-htmlproof: check HTML for correctness; fail on any errors

- _contrib/bco-htmlproof: accept path for individual page to help debug
  page problems

- (Many files) Convert `&` in numerous elements to `&`

- _templates/download.html: use Liquid filter to automatically escape
  `&` in magnet links.  Also premptively tell HTML not to check the
  magnet link when checking external links (this check is not currently
  enabled)

- _releases/*: Escape `<parameter>` used in multiple Bitcoin Core
  release notes

- _templates/choose-you-wallet.html: change mSigna URL from
  .../coinvault&referer=bitcoin.org to .../coinvault?referer=bitcoin.org

- _templates/community.html: fix duplicate anchors by renaming one
  anchor

- _templates/events.html: move Javascript to separate file because it
  contains forbidden HTML close tags within the `<script></script>`
  tags.

- (Many files, mostly in _translations/) Fix many broken open tags or
  missing close tags.

- _translatios/zh_TW.yml & ko.yml: fix a total of three invalid
  characters (control characters)
2015-04-27 09:12:11 -04:00
David A. Harding
6264930505 JS: Move addAnchorLinks from main.js to base.js
Thanks Saïvann!
2015-04-25 19:19:25 -04:00
Jacob Burenstam
9d9247ee1c Site-wide JS: Don't remove mobile menu onclick
Rebased-from: 979eef696e3d02978f4245a944cd3d9f38518124
Rebased-by: David A. Harding <dave@dtrt.org>
Closes #805
2015-04-25 19:19:24 -04:00
David A. Harding
a2a5f454cb
Revert "Revert "Merge pull #793: Dev Docs: New Glossary & JS Search Box""
This reverts commit 961d6c988f.
2015-04-14 08:55:53 -04:00
David A. Harding
961d6c988f
Revert "Merge pull #793: Dev Docs: New Glossary & JS Search Box"
This reverts commit e3dcf0ce1f, reversing
changes made to c71e9fdf2d.

Once again we had a broken new plugin that Travis CI and local building
didn't catch.
2015-04-10 19:33:39 -04:00
David A. Harding
037cd4553a
Add New Glossary Page And Developer Search Feature
This commit adds the code necessary to generate a new
en/developre-glossary page with entry pages in the en/glossary/
directory, e.g. en/glossary/51-percent-attack.

The glossary page and the individual term pages feature a JavaScript
search engine (no CGI) for just glossary terms.  This search box has
also been added to the following pages:

    * Developer Documentation (the index page)
    * Developer Guide
    * Developer Reference
    * Developer Examples

The search box requires the following MIT-licensed libraries:

    * JQuery
    * JQuery UI
    * JQuery UI CSS stylesheet

These allow our JS code to be almost trivially simple in js/devsearch.js

This commit adds only code.  Actual glossary entry data will be added in
a subsequent commit.
2015-03-19 15:31:28 -04:00
Saivann
20d456204e Reduce future changes to the javascript code of the download page
Drop unnecessary code used in other pages
Load download links from links already on the page
2015-02-19 09:42:53 -05:00
David A. Harding
34edbe8461
Merge pull #682: Dev Docs: Add "Edit|History|Report Issue|Discuss" Links To Subheads 2014-12-16 07:13:19 -05:00
Saivann
4b7da55f46 Display no category by default on the wallet page 2014-12-15 14:27:03 -05:00
Saivann
b3b545c289 Adjust pageoffset to update the "Edit On GitHub" link slightly before the user scrolls the relevant subsection 2014-12-14 13:25:10 -05:00
David A. Harding
53d4a6eebe
Dev Docs: Move Manual Sourcefile Lines To Auto Helper (thanks saivann!) 2014-12-14 08:12:12 -05:00
David A. Harding
55645c0024 Merge remote-tracking branches 'saivann/notoc' and 'saivann/notocanchor' into notoc 2014-11-28 20:50:50 -05:00
Saivann
a9d2e73c1a Allow links in anchor affordance titles 2014-11-28 20:38:27 -05:00
Saivann
1652bc6eda Ignore .no_toc titles when selecting active toc entry 2014-11-28 20:06:12 -05:00
Saivann
2a139a51a1 Set license files and headers for bitcoin.org's content 2014-11-21 19:09:12 -05:00
Saivann
7a6484fc21 Add contextual link to source file on GitHub in devel-doc (thanks @icook @harding) 2014-11-16 23:32:58 -05:00
Saivann
00fffa1a4c Apply a few javascript optimizations 2014-11-16 00:58:13 -05:00
Saivann
409396ebdd Add space before comments in javascript 2014-11-16 00:51:47 -05:00
Saivann
d64416ef51 Replace javascript syntax by a more standard and readable one 2014-11-16 00:47:38 -05:00
saivann
6c2fd7a7c0 Merge pull request #632 from bitcoin/devdocautoscroll
Auto-scroll in devel-docs table of content
2014-11-03 09:52:44 -05:00
Saivann
99675dc0cd Auto-scroll in devel-docs table of content (thanks @harding) 2014-11-02 23:27:33 -05:00
Saivann
a6cf438938 Only display wallets for selected platform 2014-11-01 00:29:55 -04:00
Saivann
1b71345ef9 Fix issues with overusing CSS :hover in the wallet page (thanks @schildbach @harding) (fixes #544)
Click to see wallets when javascript is enabled
Click to select (lock) any platform in the menu
2014-09-10 00:02:33 -04:00
Saivann
eaf0b2262f Move language selection into the mobile menu (fixes #489) 2014-08-05 20:23:47 -04:00
Saivann
627fdb08c7 Allow disabled wallets to be displayed temporarily on click (thanks @schildbach) 2014-07-18 23:28:19 -04:00
Saivann
90b9e63026 Detect if mobile layout is used and display wallets accordingly (thanks @harding) 2014-07-17 16:32:10 -04:00
Saivann
a75b2f1391 New layout for the "Choose your wallet" page
Greatly simplify layout
Increase visibility for "you need to know" and "secure your wallet" pages
Providing increased transparency about security and zero-trust model for each wallet
Encourage diversity and decentralization by
  not recommending two single wallets anymore
  rotating wallets daily by "zero-trust levels" (full nodes followed by SPV wallets followed by hybrid & multisig wallets followed by web wallets)
Display screenshots
Increase visibility for Bitcoin Core by
  recommending it in other wallets' disclaimers as a full node and deterministic build app
  making it always the first desktop wallet displayed
  better promoting it as a good secure / zero-trust wallet
Prepare layout for hardware wallets
Prevent confusing duplicate listing
Allow layout to scale with increasing number of wallets
Fix layout issues with translations and hyphenation
Simplify the process of adding new wallets by storing information in a single location using a consistent format

Thanks @harding for reviews and feedback on the first draft
2014-07-16 22:55:33 -04:00
Saivann
5704ff1ce5 Better handle HTML classes and allow mobileMenuHover to be used with other menus 2014-07-14 16:03:16 -04:00
Saivann
c4a8c26465 Provide "GitHub-like" anchor links affordance (thanks @cbeams) 2014-05-24 23:44:51 -04:00
Saivann
c7bc38f452 Add a temporary BETA disclaimer in devel-docs 2014-05-21 22:59:03 -04:00
Saivann
fecdbf0e93 Update "Report An Issue" link on mouseover (thanks @harding) 2014-05-19 18:39:18 -04:00
Saivann
753424d2e6 Add "Report An Issue" action in developer documentation toc 2014-05-19 12:02:34 -04:00
saivann
46780d3177 Contributions by @saivann to devel docs
Thanks also (in alphabetical order) to @cbeams, @mikehearn, and
@tgeller, among others.

The last pre-squash commit was: c2b8d562aa107c7b68c60946cea14cdccc5159ad
2014-05-09 22:13:59 -04:00
Saivann
97cd4b4ab4 Prevent makeEditable easter egg from triggering when scrolling 2014-05-04 20:43:36 -04:00
Saivann
1b9ddfb539 Add Hungarian (hu) language 2014-03-05 11:20:27 -05:00
Saivann
dfd44bac21 Display events on a map using OpenStreetMap 2014-02-09 15:18:42 -05:00
Saivann
a2c640f78e Load Hyphenator.js patterns locally 2014-02-02 00:42:17 -05:00
Saivann
40ea86dfa8 Load hyphenator scripts from https: (fixes #305) 2014-01-31 10:48:30 -05:00
Saivann
6c8b0e7d24 Replace interviewees by non-profit organizations and bitcoinpresscenter.org 2014-01-20 13:56:53 -05:00
Saivann
9627b39db7 Add a mobile version of the "Choose your wallet" page 2013-11-19 19:41:42 -05:00
Saivann
db9910ffa9 Improve readability in small width contexts
Use text-align:left on mobiles instead of justify
Use hyphenator.js to hyphenate wallet's description
(CSS hyphenation will need to support hyphenate-limit-zone
to be used while not generating too much hyphens)
2013-11-01 01:33:39 -04:00
Saivann
9b05a0bc8e Clean some code and add documentation 2013-10-21 23:45:57 -04:00
Saivann
55bd72c8e0 Drop deprecated javascript 2013-10-21 14:38:59 -04:00
Saivann
b879e16e72 Prevent page to accidentally turn editable on right-click 2013-10-15 04:35:33 -04:00