Commit graph

89 commits

Author SHA1 Message Date
Cøbra
67cea35a06 Add semicolon
Add semicolon
2016-02-23 17:56:32 +00:00
Cøbra
ecbc26eaa1 Add ad infrastructure
Add ad infrastructure to begin experimenting with ads to cover site
costs.
2016-02-23 17:30:24 +00:00
Cøbra
4107f65705
Fix build errors
Fixes some deployment build errors.
2015-10-16 14:57:33 +01:00
Cøbra
67bbe0ca12 Display Cookie Disclaimer & Add Analytics
Display the cookie disclaimer to visitors. Add analytics to the site
unless the user has Do Not Track enabled.
2015-10-12 18:10:24 +01:00
Cøbra
550ff42390 Add CookieConsent2
Adds CookieConsent2 to the project to display the cookie disclaimer.
2015-10-12 18:08:04 +01:00
David A. Harding
706c791e92
New Bitcoin Core subsite
This commit contains a large number of contributions from Saïvann
Carignan.
2015-09-14 06:02:58 -04:00
Saivann
d1efe4d974 Fix JSHint warnings in javascript files 2015-08-21 02:20:14 -04:00
Saivann
4b950cf928 Move jquery libraries into a subfolder 2015-08-21 02:20:14 -04:00
Saivann
d814977536 Beautify javascript (fixes #980) 2015-07-29 16:57:11 -04:00
Saivann
75a3c45628 Resolve merge conflict 2015-07-28 01:20:31 -04:00
Saivann
77511cb0d7 Auto-hide unselected wallet menu entries (thanks Craig Watkins) 2015-07-26 20:47:27 -04:00
Saivann
34550965b2 Make wallet scores and all onclick events compatible with iOS 2015-07-26 01:18:23 -04:00
Saivann
664ec1ac61 Drop use of href="#|return false;" workarounds
This workaround was used for facilitating clicks on mobiles,
but is now unnecessary as ontouchstart events are used.
2015-07-26 01:15:04 -04:00
Saivann
11c484c858 Avoid direct use of e.type
Some browsers need us to use window.event
2015-07-26 01:04:05 -04:00
David A. Harding
e038560ab7
Copyrights: Add MIT License Header To More Files
- Makefile: extend copyright check test to scan all files with YAML
  headers

    - Exclude alerts from check -- lack of a license shouldn't prevent
      us from publishing emergency information

    - Also add license to Makefile itself

- Fix all errors caught by new test

    - For release notes, also link to github.com/bitcoin/bitcoin
      repository as origin

        - Also update README.md release instructions to include license
2015-07-19 18:44:49 -04:00
Saivann
1bd4720304
Enable use of "use strict" and fix two global variable declarations 2015-07-10 14:09:06 -04:00
Saivann
3ac6158d37
Expand mobile menu entry by default on mobiles (thanks harding) 2015-07-08 13:09:59 -04:00
Saivann
e1ffd67729
Do nothing when clicking on an already selected menu entry 2015-07-08 00:13:48 -04:00
Saivann
f21f495948
Avoid updating wallets when de-selecting a menu entry 2015-07-08 00:12:22 -04:00
Saivann
be18e564c9 Fix global variable declarations 2015-07-07 16:27:17 -04:00
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