Compare commits

..
Author SHA1 Message Date
Brinck Slattery c38b06895e Add files via upload 2019-05-14 11:09:10 -04:00
Thomas Zarebczan d7f5929fe1 android 2019-05-11 03:07:14 -04:00
Julie Sigwart e4b9b87e8a Merge pull request #1035 from lbryio/jsigwart-patch-5
Bees for Community update
2019-05-09 16:48:24 -07:00
Julie Sigwart 993d1886f7 Bees for Community update 2019-05-09 11:36:24 -07:00
Abiskan 5fb436d1e2 add note about ipv6/debian 2019-05-09 09:28:54 -04:00
netop:// ウェッブ aef22ab1c4 Merge pull request #1031 from ykris45/patch-2
Update and rename jquery-3.3.1.min.js to jquery-3.4.1.min.js
2019-05-07 10:02:42 -05:00
YULIUS KURNIAWAN KRISTIANTO 72a2356f6a fix invalid telegram link (#1032)
added : in front of https
2019-05-02 16:04:37 -04:00
YULIUS KURNIAWAN KRISTIANTO 4e73c2b239 Update Response.class.php 2019-05-02 21:32:12 +07:00
YULIUS KURNIAWAN KRISTIANTO 52bb131e65 Update and rename jquery-3.3.1.min.js to jquery-3.4.1.min.js 2019-05-02 21:27:23 +07:00
YULIUS KURNIAWAN KRISTIANTO b123d8f9fd change releases link to the latest (#1030)
because now lbry have latest version 0.31.1
2019-05-01 13:42:30 -04:00
Josh Finer 2e8fea4e07 Create 2019-Q1.md 2019-05-01 09:33:45 -04:00
YULIUS KURNIAWAN KRISTIANTO d7f9758bd7 Update 209-binance.md (#1029)
add backlink for email
2019-04-30 12:25:28 -04:00
netop:// ウェッブ 5b903047fa Merge pull request #1028 from lbryio/paul-test
sync consent fix
2019-04-30 10:16:23 -05:00
ポール ウェッブ 2f296c8eb8 sync_consent 0, fix 2019-04-30 10:14:03 -05:00
ポール ウェッブ e9110ad489 idk 2019-04-30 10:14:03 -05:00
ポール ウェッブ 2240ae7202 Updated og image for YouTube Sync 2019-04-29 15:50:45 -05:00
YULIUS KURNIAWAN KRISTIANTO cd3791b791 add download links (#1027) 2019-04-29 12:04:13 -04:00
Brendon J. Brewer c2d04c4f7b Edits about publishing (#1025) 2019-04-28 19:00:51 -04:00
YULIUS KURNIAWAN KRISTIANTO 4f02813a5e Update temporary.yaml (#1026)
alias /support
2019-04-27 18:03:47 -04:00
YULIUS KURNIAWAN KRISTIANTO 13e07996e2 fix incorrect email address (#1024)
* fix incorrect email address
2019-04-26 17:49:20 -04:00
Thomas Zarebczan 099020e1f9 manual verification update 2019-04-26 10:32:44 -04:00
ポール ウェッブ ebdd3433d1 Updated submodule added class to error message 2019-04-25 16:00:12 -05:00
ポール ウェッブ ef28a931f9 Reverted submodule change 2019-04-25 10:56:21 -05:00
Jeremy Kauffman 891e3171c4 commas in yt values 2019-04-25 10:14:02 -04:00
Jeremy Kauffman 0d4c5e2988 dynamic rewards 2019-04-25 10:13:33 -04:00
ポール ウェッブ f3e1fe5db9 Fixed submodules not updating issue 2019-04-24 15:41:02 -05:00
ポール ウェッブ da3e7db281 Closes #1020 2019-04-24 15:37:12 -05:00
ポール ウェッブ 7999ad4232 Closes #1000 2019-04-23 12:08:47 -05:00
ポール ウェッブ ba6aa28657 Merge branch 'master' of github.com:lbryio/lbry.com 2019-04-23 10:50:58 -05:00
ポール ウェッブ 79e211e88d Prod code 2019-04-23 10:50:49 -05:00
YULIUS KURNIAWAN KRISTIANTO 8e17f405f6 remove embedded tweet
Remove Tweet Embed and Put and Image based on tweet
2019-04-22 20:57:11 -04:00
ポール ウェッブ 3c9e5601d4 Fixed error message 2019-04-22 16:20:37 -05:00
ポール ウェッブ 0fdc535a53 Uncommented code for production 2019-04-19 14:30:46 -05:00
ポール ウェッブ 48eab05b62 Scrolling to errors and passing along sync status to YT sync works 2019-04-19 13:28:05 -05:00
ポール ウェッブ ca1856e203 Improved YT sync visuals and accounted for pending email 2019-04-17 14:53:34 -05:00
ポール ウェッブ c6d5990629 Removed random YT reward and added notes 2019-04-16 16:51:43 -05:00
Jeremy Kauffman 808dc1a1e5 mediocre fix for error returns from google oauth 2019-04-16 11:25:54 -04:00
ポール ウェッブ d0dbe05f68 Merge branch 'master' of github.com:lbryio/lbry.com 2019-04-16 10:01:52 -05:00
ポール ウェッブ afdf804012 Closes #898 2019-04-16 10:01:43 -05:00
Thomas Zarebczan a4f1f12318 add back crypopia 2019-04-16 10:02:05 -04:00
ポール ウェッブ 1ede1805bb Closes #898 2019-04-15 18:09:41 -05:00
ポール ウェッブ 6ea7cb7806 Closes #994 2019-04-15 13:51:51 -05:00
ポール ウェッブ cd306baad8 Styling to YS error message 2019-04-11 11:19:00 -04:00
ポール ウェッブ 1ca8f54deb Checkbox fixes for YouTube Sync 2019-04-11 10:26:01 -04:00
Thomas Zarebczan ab8da160aa fix link 2019-04-08 12:25:52 -04:00
Thomas Zarebczan 8727a328f9 fix link 2019-04-08 12:25:24 -04:00
netop:// ウェッブ 9d09248bd0 Merge pull request #1006 from lbryio/yt-update
YouTube Sync redesign
2019-04-08 10:07:02 -05:00
ポール ウェッブ a341a776c1 Combined boxes and changed some things 2019-04-05 17:05:25 -05:00
ポール ウェッブ 5590a31e15 Removed unnecessary line 2019-04-05 16:29:48 -05:00
ポール ウェッブ 87d594469f Redesign 2019-04-05 16:19:51 -05:00
Robert Smith d9e0168610 Merge pull request #1021 from lbryio/YouTube-Copy-Changes
New copy for /youtube.
2019-04-04 16:51:27 -04:00
Rob f93de426ba New copy for /youtube. 2019-04-04 16:17:45 -04:00
Thomas Zarebczan 7c650ccd52 Update startup-troubleshooting.md 2019-04-04 11:45:54 -04:00
YULIUS KURNIAWAN KRISTIANTO 5932d73e71 Update 186-hacktoberfest.md (#1019)
Delete embed twittert widget
2019-04-04 10:04:37 -04:00
Jeremy Kauffman 779ae99206 remove incorrect redirect 2019-04-03 18:17:25 -04:00
netop:// ウェッブ 50349f3417 Merge pull request #1009 from lbryio/992-tablet-nav-fix
Fix navigation for touchscreen devices
2019-04-02 13:38:21 -05:00
ポール ウェッブ acdc71b1f4 Done 2019-04-02 13:37:33 -05:00
YULIUS KURNIAWAN KRISTIANTO c5c00bea4d Update images in Twitter Tipbot FAQ 2019-04-02 10:44:44 -04:00
YULIUS KURNIAWAN KRISTIANTO 7661f24f76 update lbry cast reward amount 2019-04-01 11:50:46 -04:00
Thomas Zarebczan 544ade886d Update 209-binance.md 2019-03-30 01:32:10 -04:00
Julie Sigwart f33a32997a Add files via upload (#1012) 2019-03-29 16:58:34 -04:00
Julie Sigwart 519d02b24f change image (#1013) 2019-03-29 16:58:20 -04:00
Julie Sigwart 287765abfa Merge pull request #1011 from lbryio/jsigwart-patch-2
Update and rename pi.php to game.php
2019-03-29 13:19:01 -07:00
ポール ウェッブ cc91d0ac57 Initial commit 2019-03-28 17:52:41 -05:00
96 changed files with 1467 additions and 3101 deletions

No files matched your search

+1 -2
View File
@@ -39,7 +39,6 @@ Contributions to this project are welcome, encouraged, and compensated. For more
This project is MIT licensed. For the full license, see [LICENSE](LICENSE).
## Build URLs
lbry.com provides functionality for redirecting to build assets of other LBRY repos. The general structure is:
`lbry.com/releases/<github_repo_name>.<extension>`
@@ -55,7 +54,7 @@ Extension is used to get the release for the appropriate operating system, even
| Windows | msi, exe
| macOS | dmg, pkg
| Linux (Debian) | deb
| Android | apk
| Android | apk
The asset returned will match the latest release on the appropriate GitHub repo.
+38
View File
@@ -0,0 +1,38 @@
---
title: "Quarterly Credit Report: First Quarter 2019"
sheet: https://docs.google.com/spreadsheets/d/1asnI5mGCVYb6zbcsxDhZaYu2IbXgWkGEBZcJ7VXt9XQ/edit?usp=sharing
category: policy
---
## Summary
This quarter we moved 146,289 operational credits from cold storage. We spent 1,695,734 total community credits on line items detailed below. 146,289 operational credits were used for the LBRY employee LBC purchase program.
We significantly larger community outlays throughout the rest of 2019 and starting in Q2 2019. Operational spending may increase at any time, but is not expected to increase significantly. Institutional spending is expected to be less than 1,000,000 LBC
## Overview By Fund
### Community Fund
1,695,734 credits were spent from the community fund, in the following areas:
| Category | Amount |
|---|---|
| Bounties | 328,380 |
| User Engagement | 291,000 |
| Community Engagement | 175,000 |
| Publishing | 10,000 |
| Acquisition | 286,990 |
| Testing | 1,100 |
| LBRY.fund | 203,264 |
| Swarm | 400,000 |
As reliability and interest has been increasing, we anticipate continuing to reward new users, community contributions, and other beneficial activity. This is likely to represent 1-2 million LBC.
### Operational Fund
* LBRY sold no LBC on the open market
* LBRY issued 146,289 LBC to employees
LBRY does not anticipate moving credits to market this quarter. However, should market conditions or our needs change, we reserve the right to move credits to market as needed.
### Institutional Fund
There were no institutional moves or spends this quarter.
+1 -1
View File
@@ -20,7 +20,7 @@ No other data is stored with your email login. All other data, including your [w
If you ever need to change your LBRY Android App email address or sign out, please see [this guide](/faq/how-to-change-email#android). Clearing data or uninstalling leads to a loss of wallet currently, please [backup your wallet data](/faq/how-to-backup-wallet#android).
If you sign into a new email and need to transfer your verification status, you'll need to [reach out to us](mailto:help@lbryio) in order to link your accounts. Please do not verify again to obtain rewards on a 2nd account; your Rewards account may be disabled for abuse.
If you sign into a new email and need to transfer your verification status, you'll need to [reach out to us](mailto:help@lbry.com) in order to link your accounts. Please do not verify again to obtain rewards on a 2nd account; your Rewards account may be disabled for abuse.
### What If I Want To Run LBRY On Multiple Android Devices?
+1 -2
View File
@@ -8,12 +8,11 @@ We are listed on several exchanges. You can buy or sell LBRY Credits at one of t
### Traditional Exchanges
- [Bittrex](https://bittrex.com/Market/Index?MarketName=BTC-LBC)
- [Poloniex](https://poloniex.com/exchange#btc_lbc)
- [Cryptopia](https://www.cryptopia.co.nz/Exchange/?market=LBC_BTC)
- [Upbit](https://upbit.com/exchange?code=CRIX.UPBIT.BTC-LBC)
- [Instant Bitex](https://instantbitex.com)
- [BitSquare](https://bitsquare.io)
- [Coinspot](https://www.coinspot.com.au/buy/lbc)
- [Trade by Trade](https://app.tradebytrade.com/exchange-one)
- [Coin Delta](https://coindelta.com)
- [Coindeal](https://frontend.coindeal.com/market/trade.html?pair=LBC/BTC)
### Instant Exchanges
+3
View File
@@ -13,6 +13,9 @@ From the LBRY App, click on Help. Next, click on "Open Log Folder"
![log](https://spee.ch/a/helps.jpeg)
The folder will be highlighted, so just double click to open and here you will see "lbrynet.log".
### Sending log files from Android
Navigate to the About page and use the `Send Logs` button at the bottom. You can email them to [help@lbry.com](mailto:help@lbry.com)
### Find Logs Manually
## Windows
1. Open File Explorer (Keyboard shortcut: Windows Key + E).
+6 -3
View File
@@ -46,7 +46,9 @@ If you don't have LBRY yet, download it [here](/get).
Click `Publish`.
The file will process in the background and will be added to the LBRY Blockchain. Larger files will take longer to upload depending on your network speed. Please leave LBRY running while your content is in the "pending confirmation" mode. This page will automatically refresh and you will be notified when the publish is completed. You can continue to use LBRY while the upload completes.
The file will process in the background and will be added to the LBRY Blockchain. Please leave LBRY running while your content is in the "pending confirmation" mode. This page will automatically refresh and you will be notified when the publish is completed. After this, your content will be available to other LBRY users. However, it is a good idea to leave LBRY open for a while after this to make sure the app is able to share your file to at least one peer on the data network. Larger files will take longer to upload depending on your network speed.
You can continue to use LBRY while the upload completes.
### How do I create a Channel?
@@ -100,7 +102,8 @@ Yes, the claim can be edited to increase the bid amount. Go into your published
### How can I tell if someone is downloading my content?
Currently, this is only possible if you set a price for your content - you will see transactions in your LBRY wallet as people purchase it. In the future, we will add these types of statistics to LBRY.
The LBRY app now has view counts for your published content.
In the future, we will add more of these types of statistics to LBRY.
### My video doesn't stream in the app, what's wrong?
@@ -108,7 +111,7 @@ The in-app video player's streaming capabilities are limited to MP4 files which
### I shared my URL, but others can't download it. What's going on?
Since LBRY is a Peer-to-Peer network, it requires that your device is accessible to the internet. LBRY also runs servers to assist in content hosting, but this process may fail if your device cannot send it to us. By default, the TCP sharing port is set to 3333. If your network is properly configured and LBRY is running, a port status check on TCP Port 3333 should pass on this [port checking tool](http://www.canyouseeme.org). If it fails, you can check if UPnP is enabled on your router or forward TCP port 3333 manually. If you need assistance, check out the [help page](/faq/how-to-report-bugs) on how to reach us.
Since LBRY is a Peer-to-Peer network, it requires that your device is accessible to the internet. LBRY also runs servers to assist in content hosting, but this process may fail if your device cannot send it to us or if you didn't wait long enough after the initial publish. By default, the TCP sharing port is set to 3333. If your network is properly configured and LBRY is running, a port status check on TCP Port 3333 should pass on this [port checking tool](http://www.canyouseeme.org). If it fails, you can check if UPnP is enabled on your router or forward TCP port 3333 manually. If you need assistance, check out the [help page](/faq/how-to-report-bugs) on how to reach us.
### Where is my Channel and content saved locally?
+1 -1
View File
@@ -19,7 +19,7 @@ Your card information is submitted directly to [Stripe](https://stripe.com), one
### What If I Don't Want To Provide It?
No problem! We've added two other verification methods - [Phone Verification](/faq/phone) and manual verification via [Discord chat](https://chat.lbry.com). To begin manual verification, type **-new** in the #verification channel which will create a ticket (channel) for your request. **Note: DO NOT message any team members or post in other channels about verification concerns. Rewards will only be granted on a 1 account per household basis**
No problem! We've added two other verification methods - [Phone Verification](/faq/phone) and manual verification via [Discord chat](https://chat.lbry.com). To begin manual verification, see the #verification channel to start your request. **Note: DO NOT message any team members or post in other channels about verification concerns. Rewards will only be granted on a 1 account per household basis**
Otherwise, you are welcome to use the LBRY browser without providing any personal information. We just can't give you any rewards.
+1 -1
View File
@@ -12,7 +12,7 @@ The purpose of this FAQ is to answer questions about some of the basic functiona
Emails are collected to authenticate and [uniquely identify](/faq/identity-requirements) users so that they can be eligible for [LBRY Rewards](#rewards), sync subscription data and to stay up to date on the latest LBRY happenings. No other data is stored with your email login. All other data, including your [wallet](#wallet), [downloads](#data) and published content are stored locally on your computer. You can find your connected email by going to Settings (gear icon in the top right) > Help > Connected email.
### How do I change my LBRY connected email?
If you ever need to change your LBRY email address or sign out, please see [this guide](/faq/how-to-change-email). If you sign into a new email and need to transfer your verification status, you'll need to [reach out to us](mailto:help@lbryio) in order to link your accounts. Please do not verify again to obtain rewards on a 2nd account; your rewards account may be disabled for abuse.
If you ever need to change your LBRY email address or sign out, please see [this guide](/faq/how-to-change-email). If you sign into a new email and need to transfer your verification status, you'll need to [reach out to us](mailto:help@lbry.com) in order to link your accounts. Please do not verify again to obtain rewards on a 2nd account; your rewards account may be disabled for abuse.
### What if I want to run LBRY on multiple computers or different Windows accounts?
If you want to run the LBRY app on multiple PCs or on other platforms like Android, you can sign in with the same email on all devices. Each installation will still have it's own separate wallet file and download data (as mentioned above). Any rewards earned will be sent locally to the wallet where they are claimed. In the future, it is our goal to enable an opt-in wallet syncing service across all of your devices.
+1 -1
View File
@@ -20,7 +20,7 @@ In order to be eligible for LBRY Rewards, users must have a verified account via
| **First Publish** | 10 LBC | A one-time reward for publishing your first piece of content to LBRY
| **Many Views** | 2- ???? LBC | A multi-level reward for watching videos on LBRY. See descriptions in-app for levels/details!
| **Sub Sandwich** | 1 -2 LBC | A multi-level reward for subscribing to channels.
| **Weekly LBRYCast** | 4 LBC | A weekly award for checking out featured content on LBRY. This content is marked with the red rocket logo and will be announced via email, recurring weekly.
| **Weekly LBRYCast** | 10 LBC | A weekly award for checking out featured content on LBRY. This content is marked with the red rocket logo and will be announced via email, recurring weekly.
| **Welcome Back** | 6 LBC | Return to the LBRY app 24-48 hours following your first use of the app. This reward will self-destruct after that time span.
| **Android in Beta** | 20 LBC | Limited time reward for early Android Beta testers.
| **Upgrade** | 10 LBC | Rewarded each time the LBRY app updates versions (i.e. 0.27 to 0.28).
+5 -1
View File
@@ -32,7 +32,7 @@ First and foremost, please ensure you are on the [latest version](/get) of LBRY.
- Reset your downloads data by deleting the `db_revision` and `lbrynet.sqlite` files in [the lbrynet folder](/faq/lbry-directories)
- On Windows, if you get stuck on the green "Starting daemon" screen, the lbrynet-daemon file may be missing. The workaround is to re-run the [latest](/get) LBRY installation file and try again.
- On Windows 7, if you can't get the app to start, you may need to apply [this Windows patch](https://www.microsoft.com/en-us/download/confirmation.aspx?id=49093&fbclid=IwAR2Gl1Qay34-_NnHpOSZm0VqMC9CQFish4vYXf4AQQ01cnJeE9ZDHdmInv0).
- On older MAC installations, you may run into an issue with the daemon shutting down immediately. Please see [this GitHub issue](https://github.com/lbryio/lbry-desktop/issues/291) for troubleshooting.
- On older MAC installations, you may run into an issue with the daemon shutting down immediately. Please check your `daemon_settings.yml` file in the [LBRY folder](/faq/lbry-directories) for a download directory. If it's incorrect, remove it, save, and try again.
- On older Linux/Mac installs you may see `Cannot read property 'match' of undefined`. Install the [latest version](/get) to fix this.
- Other typical startup troubleshooting would be to ensure that the LBRY app or the lbrynet process is not already running in the background. If the processes cannot be killed, a restart of your computer may be required.
@@ -43,3 +43,7 @@ If you are stuck on the blockchain sync step or it shows a block count that does
#### Linux auth_token requirements {#auth}
Currently, LBRY requires an authorization token to be generated using the [keytar](https://github.com/atom/node-keytar) libraries. Please ensure libsecret and keytar are installed. On some distributions, LBRY won't run unless gnome-keyring is also installed/operational. See [GitHub issue](https://github.com/lbryio/lbry-desktop/issues/386) for more information. If you get a GLIBCXX_3.4.2 error, please see [this issue](https://github.com/lbryio/lbry-desktop/issues/423#issuecomment-327519486).
#### SDK could not start because port is in use (IPV6 / debian)
If the newly installed or re-installed LBRY has the start up issue with daemon being in use, check the .local/share/lbry/lbrynet folder for `daemon_settings.yml` file.
If the file doesn't exist, create one and settings inside should be: `api: 127.0.0.1:5279`. Alternatively, you can start the sdk with `lbrynet start --api=127.0.0.1:5279`
+9 -29
View File
@@ -8,14 +8,7 @@ order: 3
Tips, in LBRY Credits (LBC), are an integral part of our community because they allow us to reward members for their contributions - whether that's for sharing something insightful, providing feedback, testing our various apps or helping promote LBRY's vision and technology. You can earn them, share, or transfer them via simple Tweets which include tagging the tipbot Twitter account + command. Check out [this thread as an example](https://twitter.com/TomZarebczan/status/1015244426841677826).
> Call commands with: [@LBC_TipBot](https://twitter.com/LBC_TipBot) +<br/>
> help - Shows this command.<br/>
> balance - Get your balance.<br/>
> deposit - Get address for your deposits.<br/>
> withdraw ADDRESS AMOUNT - Withdraw AMOUNT credits to ADDRESS.<br/>
> tip USER AMOUNT - Tip USER AMOUNT.<br/>
> terms - Sends the TOS.<br/><br/>
> &mdash; LBC_TipBot (@LBC_TipBot) [July 6, 2018](https://twitter.com/LBC_TipBot/status/1015264401836765184)
![tom tweet](https://spee.ch/@tipbot-tw:c/tomtweet.png)
It is important to note that the LBC stored as a result of a tip is tied to your Twitter account username and are stored on LBRY's wallet server. It is your responsibility to withdraw the tips to your LBRY App or [a standalone wallet](/faq/standalone-wallet). If you plan on storing LBC on Twitter, it is a good idea to enable Two Factor Authentication (2FA) on your account. LBRY takes no responsibility for lost funds due to negligence.
@@ -26,30 +19,23 @@ This displays a list of tip commands and how to use them.
- [**Tweet Example:**](https://twitter.com/TomZarebczan/status/1015245364490833920) `@LBC_TipBot help`
> Call commands with: [@LBC_TipBot](https://twitter.com/LBC_TipBot) +<br/>
> help - Shows this command.<br/>
> balance - Get your balance.<br/>
> deposit - Get address for your deposits.<br/>
> withdraw ADDRESS AMOUNT - Withdraw AMOUNT credits to ADDRESS.<br/>
> tip USER AMOUNT - Tip USER AMOUNT.<br/>
> terms - Sends the TOS.</br></br>
> &mdash; LBC_TipBot (@LBC_TipBot) [https://twitter.com/LBC_TipBot/status/1017502447298736128](July 12, 2018)
![help](https://spee.ch/@tipbot-tw:c/help.png)
### Balance
Displays the balance of your Twitter LBRY wallet.
- [**Tweet Example:**](https://twitter.com/TomZarebczan/status/1015244426841677826) `@LBC_TipBot balance`
> You have 0 LBC.</br><br/>
> &mdash; LBC_TipBot (@LBC_TipBot) [https://twitter.com/LBC_TipBot/status/1017503489159618560](July 12, 2018)
![balance](https://spee.ch/@tipbot-tw:c/balance.png)
### Deposit
Displays your Twitter LBRY wallet address. Useful if you want to receive LBC directly to your wallet.
- [**Tweet Example:**](https://twitter.com/TomZarebczan/status/1015244855247888384) `@LBC_TipBot deposit`
> Your deposit address is bQ7k7EeA8s2ENR5LDcd7V91JjgNZxyQL93.</br></br>
> &mdash; LBC_TipBot (@LBC_TipBot) [https://twitter.com/LBC_TipBot/status/1017503717082271747](July 12, 2018)
![deposit](https://spee.ch/@tipbot-tw:c/deposit.png)
### Tip
Want to tip someone? This will send a tip to a chosen username.
@@ -57,10 +43,7 @@ Want to tip someone? This will send a tip to a chosen username.
- **Arguments:** `@LBC_TipBot tip <username> <amount>`
- [**Tweet Example:**](https://twitter.com/TomZarebczan/status/1015245926691205120): `@LBC_TipBot tip @TrendsPremium 10`
> Tipped [https://twitter.com/TrendsPremium](@TrendsPremium) 10 LBC!<br/>
> Transaction: [https://t.co/lumfDoMzGI](https://t.co/lumfDoMzGI)<br/>
> See [https://t.co/s9GAsGJ07Y](https://t.co/s9GAsGJ07Y) for more information.</br></br>
> &mdash; LBC_TipBot (@LBC_TipBot) [https://twitter.com/LBC_TipBot/status/1015245928406474752](July 6, 2018)
![tip](https://spee.ch/@tipbot-tw:c/tips.png)
### Withdraw
Use this to withdraw your balance from your LBRY Twitter wallet to another LBRY wallet such as the wallet in your LBRY app, or to an LBRY exchange wallet.
@@ -68,14 +51,11 @@ Use this to withdraw your balance from your LBRY Twitter wallet to another LBRY
- **Arguments:** `@LBC_TipBot withdraw <address> amount`
- [**Tweet Example:**](https://twitter.com/TrendsPremium/status/1015251227599364096) `@LBC_TipBot withdraw bP8P5Dr9d3XcH5ibSsjeDYFU8vMWR8HHe3 5`
> You withdrew 5 LBC to bP8P5Dr9d3XcH5ibSsjeDYFU8vMWR8HHe3. [https://t.co/pS2LzNR8Iw](https://t.co/pS2LzNR8Iw)</br></br>
> &mdash; LBC_TipBot (@LBC_TipBot) [https://twitter.com/LBC_TipBot/status/1015251229151191040](July 6, 2018)
![withdraw](https://spee.ch/f/withdraw.png)
### Terms
Displays the terms and conditions
- [**Tweet Example:**](https://twitter.com/TomZarebczan/status/1015245044415156225) `@LBC_TipBot terms`
> There are no fees to use this bot except the automatic daemon fee.<br/>
> Under no circumstances shall LBRY Inc. be held responsible for lost, stolen or misdirected funds.</br></br>
> &mdash; LBC_TipBot (@LBC_TipBot) [https://twitter.com/LBC_TipBot/status/1015245045740388352](July 6, 2018)
![withdraw](https://spee.ch/@tipbot-tw:c/terms.png)
+1 -1
View File
@@ -22,7 +22,7 @@ The sync process stores your wallet in a secure location, as you may not have th
**How to Receive Your LBRY Credits**
- Download the LBRY App at /get
- Download the LBRY App at [/get](https://lbry.com/get)
- Run the LBRY App
- Make sure the email saved in the application matches the email address on your [Sync Status Page](/youtube/status) ([email us](mailto:hello@lbry.com) if it does not)
- Click on the `Wallet` tab on the LBRY App `1` ![wallet](https://spee.ch/2/rewardsa.jpeg)
+2 -10
View File
@@ -6,10 +6,6 @@ cover: 'Hacktoberfest.jpg'
category: users
---
> What are you doing for [#Hacktoberfest](https://twitter.com/hashtag/Hacktoberfest)? Check out our first [#dev](https://twitter.com/hashtag/dev) video of the month, and join the fun - details here ➡️ [https://t.co/Z22zShYg31](https://t.co/Z22zShYg31) [pic.twitter.com/bzOQ6Jvmpp](https://t.co/bzOQ6Jvmpp)
>
> — LBRY (we never give away ETH) (@LBRYio) [October 5, 2018](https://twitter.com/LBRYio/status/1048247988949319681)
The leaves are starting to fall, and that means it's time for Hackoberfest! Thanks to [DigitalOcean's hard work](https://hacktoberfest.digitalocean.com), newbies and seasoned open source developers alike have a unique opportunity to solve new and challenging problems and bugs all through the month of October (and earn [some recognition and a free t-shirt](https://hacktoberfest.digitalocean.com/details) in the process).
Open source is (literally) part of our DNA here at LBRY, and we're always happy when we get an opportunity to support our fellow open source projects. Throughout the month of October, our developers will be hosting informational sessions, meetups, and coding projects to introduce other programmers to the world of open source software and start making contributions immediately.
@@ -46,9 +42,7 @@ Jack Robison - Protocol Developer
#### 10/6 - 10/7
> A lot is happening at the [#devfest](https://twitter.com/hashtag/devfest) [#vitvellore](https://twitter.com/hashtag/vitvellore) [#hackathon](https://twitter.com/hashtag/hackathon) [@LBRYio](https://twitter.com/LBRYio) [@itsmedn7](https://twitter.com/itsmedn7) [$lbc](https://twitter.com/search?q=%24lbc) [#lbry](https://twitter.com/hashtag/lbry) [#lbryians](https://twitter.com/hashtag/lbryians) [pic.twitter.com/ZQqiC1Oevi](https://t.co/ZQqiC1Oevi)
>
> — Premium_Trends (Clement) (@Premium_Trends) [October 6, 2018](https://twitter.com/Premium_Trends/status/1048573008124698629)
<img alt="Do1HkRNVsAItuRe" src="https://spee.ch/@chris45:bb/Do1HkRNVsAItuRe.jpg" />
Vellore India Hackathon
@@ -68,9 +62,7 @@ Akinwale Ariwodola - Lead Mobile Developer
#### 10/19 - 10/20
> Kicking off Hackathon: Blockchain with [@LBRYio](https://twitter.com/LBRYio) CEO Jeremy Kauffman and [@UNHCrypto](https://twitter.com/UNHCrypto) at the [#UNHECenter](https://twitter.com/hashtag/UNHECenter)! [pic.twitter.com/qOIeWcbh5P](https://t.co/qOIeWcbh5P)
>
> UNH ECenter (@UNHECenter) [October 19, 2018](https://twitter.com/UNHECenter/status/1053395944279027717)
<img alt="Dp5qBngWoAAu-9m" src="https://spee.ch/@chris45:bb/Dp5qBngWoAAu-9m.jpeg" />
University of New Hampshire Hackathon!
+1 -1
View File
@@ -119,7 +119,7 @@ If you aren't part of our Discord community yet, [join us](https://chat.lbry.com
![santa](https://spee.ch/@lbrynews:0/santa-yrbl.jpg)
Our community allows LBRYians to interact with the team directly and for us to engage users in order to grow the LBRY platform. Also follow us on [Twitter](https://twitter.com/lbryio), [Facebook](https://facebook.com/lbryio), [Reddit](https://www.reddit.com/r/lbry), [Instagram](https://www.instagram.com/lbryio), and [Telegram](https//t.me/lbryofficial).
Our community allows LBRYians to interact with the team directly and for us to engage users in order to grow the LBRY platform. Also follow us on [Twitter](https://twitter.com/lbryio), [Facebook](https://facebook.com/lbryio), [Reddit](https://www.reddit.com/r/lbry), [Instagram](https://www.instagram.com/lbryio), and [Telegram](https://t.me/lbryofficial).
[Back to **top**](#dev-updates)
+1 -1
View File
@@ -21,7 +21,7 @@ If you haven’t opened LBRY on your computer in a while, now’s the time to do
We need your feedback to make LBRY even better - upgrade in-app or [head to this link](/get) to download LBRY now, and let us know what you think on [Discord](https://chat.lbry.com) or [Twitter](https://www.twitter.com/lbryio)!
If you’re a developer and want to dive a bit deeper into the process, take a look at the [release notes here](https://github.com/lbryio/lbry-desktop/releases/tag/v0.28.0). Want to learn more or help us build out the LBRY ecosystem? Jump right into our [GitHub repos](https://github.com/lbryio/) and check out [lbry.tech](https://lbry.tech).
If you’re a developer and want to dive a bit deeper into the process, take a look at the [release notes here](https://github.com/lbryio/lbry-desktop/releases/latest). Want to learn more or help us build out the LBRY ecosystem? Jump right into our [GitHub repos](https://github.com/lbryio/) and check out [lbry.tech](https://lbry.tech).
Thanks for helping us build the decentralized internet of the future - we can’t do it without you!
+18
View File
@@ -11,3 +11,21 @@ LBRY has officially joined Binance Info's transparency initiative. By sharing pr
Binance Info is a cryptocurrency information platform, providing users with accurate and comprehensive crypto market data, news, and project rating reports. As an open information platform, Binance Info encourages all users to participate in maintaining accurate information on crypto projects by creating token profiles, editing missing or incorrect project information, contributing to news sources, and more. Users can help the community better understand coins and tokens.
Binance Info welcomes all projects to get involved in Binance Info's transparency initiative. Apply to participate:https://docs.google.com/forms/d/e/1FAIpQLSdn6Nq3uvXBfsulKO_lH3I3O0_s-Nbmm0gWO8K-9bkWQJeKmw/viewform
More about LBRY:
Please reach out to us at [hello@lbry.com](mailto:hello@lbry.com) if you have any questions about LBRY or the software!! Or chat with us on Discord: https://chat.lbry.com
Good starting points for resources:
[What is LBRY](https://lbry.com/faq/what-is-lbry)
[Download LBRY for Desktop & Android](https://lbry.com/get)
[Frequently Asked Questions](https://lbry.com/faq)
[Learn more about the tech](https://lbry.tech)
[Have a great idea?](https://lbry.fund)
[Want to get involved?](https://lbry.org)
-1
View File
@@ -125,7 +125,6 @@ class Controller
$router->any('/dmca', 'ReportActions::executeDmca');
$router->any('/youtube/sub', 'AcquisitionActions::executeYouTubeSub');
$router->post('/youtube/edit', 'AcquisitionActions::executeYoutubeEdit');
$router->post('/youtube/token', 'AcquisitionActions::executeYoutubeToken');
$router->any('/youtube/status/{token}', 'AcquisitionActions::executeYoutubeStatus');
+3 -6
View File
@@ -2,12 +2,9 @@
class Session
{
const KEY_DOWNLOAD_ACCESS_ERROR = 'download_error2',
KEY_DOWNLOAD_ALLOWED = 'beta_download_allowed2',
KEY_GITHUB_ACCESS_TOKEN = 'github_access_token',
KEY_LIST_SUB_ERROR = 'list_error',
KEY_USER_CULTURE = 'user_culture',
KEY_YOUTUBE_TEMPLATE = 'youtube_landing_template';
const KEY_LIST_SUB_ERROR = 'list_error',
KEY_YOUTUBE_SYNC_ERROR = 'youtube_sync_error',
KEY_USER_CULTURE = 'user_culture';
const NAMESPACE_DEFAULT = 'default',
NAMESPACE_FLASH = 'flash',
+35 -98
View File
@@ -2,56 +2,18 @@
class AcquisitionActions extends Actions
{
public static function executeThanks()
{
return ['acquisition/thanks'];
}
public static function executeYouTubeSub()
{
if (!Request::isPost()) {
return Controller::redirect('/youtube');
}
$email = Request::getPostParam('email');
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
Session::setFlash('error', 'Please enter a valid email.');
return Controller::redirect('/youtube');
}
Salesforce::createContact($email, SalesForce::DEFAULT_LIST_ID, 'YouTube Campaign');
Mailgun::sendYouTubeWarmLead(['email' => $email]);
Session::setFlash('success', 'Thanks! We\'ll be in touch. The good kind of touch.');
return Controller::redirect(Request::getReferrer(), 303);
}
public static function executeYouTube(string $version = '')
{
if (isset($_GET['error_message'])) {
$error_message = Request::encodeStringFromUser($_GET['error_message']);
$errorMessage = Request::getParam('error_message', '');
if (Session::getFlash(Session::KEY_YOUTUBE_SYNC_ERROR)) {
$errorMessage = Session::getFlash(Session::KEY_YOUTUBE_SYNC_ERROR);
}
$baseTemplate = 'acquisition/youtube';
$versionedTemplate = $baseTemplate . '-' . $version;
$template = $version && View::exists($versionedTemplate) ? $versionedTemplate : $baseTemplate;
if ($version && View::exists($versionedTemplate)) {
Session::set(SESSION::KEY_YOUTUBE_TEMPLATE, $template);
}
$template = Session::get(SESSION::KEY_YOUTUBE_TEMPLATE) ?? $template;
if (!View::exists($template)) {
Session::unsetKey(SESSION::KEY_YOUTUBE_TEMPLATE);
$template = $baseTemplate;
}
return [$template, [
'reward' => LBRY::youtubeReward(),
'error_message' => $error_message ?? ''
]];
return ['acquisition/youtube', [
'reward' => LBRY::youtubeReward(),
'error_message' => $errorMessage
]];
}
public static function executeVerify(string $token)
@@ -66,39 +28,39 @@ class AcquisitionActions extends Actions
public static function executeYoutubeToken()
{
return ['acquisition/youtube_token', ['_no_layout' => true]];
$channelName = Request::encodeStringFromUser($_POST['desired_lbry_channel_name']);
$immediateSync = (boolean)$_POST['immediate_sync'];
if ($channelName && $channelName[0] !== "@") {
$channelName = '@' . $channelName;
}
$token = LBRY::connectYoutube($channelName, $immediateSync);
if ($token['success'] && $token['data']) {
Controller::redirect($token['data']);
} else {
Session::setFlash(Session::KEY_YOUTUBE_SYNC_ERROR, $token['error'] ?? "An unknown error occured.");
Controller::redirect('/youtube');
}
}
public static function executeYoutubeStatus(string $token)
{
if (isset($_GET['error_message'])) {
$error_message = Request::encodeStringFromUser($_GET['error_message']);
}
$data = LBRY::statusYoutube($token);
if ($data['success'] == false) {
Controller::redirect('/youtube?error=true&error_message=' . $data['error']);
if (!$data['success']) {
Session::setFlash(Session::KEY_YOUTUBE_SYNC_ERROR, $data['error'] ?? "Error fetching your sync status.");
Controller::redirect('/youtube');
}
return ['acquisition/youtube_status', [
'token' => $token,
'status_token' => $data,
'error_message' => $error_message ?? ''
]];
'token' => $token,
'status_token' => $data,
'error_message' => Session::getFlash(Session::KEY_YOUTUBE_SYNC_ERROR)
]];
}
public static function actionYoutubeToken(string $desired_lbry_channel_name)
{
$desired_lbry_channel_name_is_valid = static::lbry_channel_verification($desired_lbry_channel_name);
if ($desired_lbry_channel_name_is_valid) {
$token = LBRY::connectYoutube($desired_lbry_channel_name);
if ($token['success'] == false) {
Controller::redirect('/youtube?error=true&error_message=' . $token['error']);
} else {
Controller::redirect($token['data']);
}
}
}
public static function actionYoutubeEdit($status_token, $channel_name, $email, $sync_consent)
{
$current_value = LBRY::statusYoutube($status_token);
@@ -109,11 +71,13 @@ class AcquisitionActions extends Actions
}
if ($status['success'] == false) {
Controller::redirect("/youtube/status/". $status_token . "?error=true&error_message=" . $status['error']);
Session::setFlash(Session::KEY_YOUTUBE_SYNC_ERROR, $status['error']);
Controller::redirect("/youtube/status/". $status_token);
} else {
Controller::redirect("/youtube/status/" . $status_token);
}
}
public static function executeYoutubeEdit()
{
return ['acquisition/youtube_edit'];
@@ -123,31 +87,4 @@ class AcquisitionActions extends Actions
{
return ['acquisition/youtube_status_redirect'];
}
protected static function email_verification($email)
{
if (preg_match('/\S+@\S+\.\S+/', $email)) {
return true;
} else {
return false;
}
}
protected static function youtube_channel_verification($youtube_channel_id)
{
if (preg_match('/^UC[A-Za-z0-9_-]{22}$/', $youtube_channel_id)) {
return true;
} else {
return false;
}
}
protected static function lbry_channel_verification($lbry_channel)
{
if (preg_match('/[1-z]+/', $lbry_channel)) {
return true;
} else {
return false;
}
}
}
+1 -1
View File
@@ -4,7 +4,7 @@
/apple-touch-icon.png: /img/fav/apple-touch-icon.png
/swarm: https://docs.google.com/document/d/1W4chXeUvF4I9T3lVyyeZ-N1SUuyoMrp_QH_ITA9BrZ4/edit#
/deck.pdf: "https://www.dropbox.com/s/0xj4vgucsbi8rtv/lbry-deck.pdf?dl=1"
/join-us: /
/LBRY-deck.pdf: "https://www.dropbox.com/s/0xj4vgucsbi8rtv/lbry-deck.pdf?dl=1"
/security: /faq/security
/youtubers: "https://traction.lbry.io/public/question/8dfc23e2-71e7-44cb-9740-0aec18d1da73"
/support: /faq/support
+2 -1
View File
@@ -19,4 +19,5 @@ $DIR/hooks/install.sh
$PHPBIN composer.phar install
git submodule update --init
$PHPBIN --server localhost:8000 --docroot "$DIR/web" "$DIR/web/index.php"
git submodule update --recursive --remote
$PHPBIN --server 0.0.0.0:8000 --docroot "$DIR/web" "$DIR/web/index.php"
+38 -15
View File
@@ -15,18 +15,18 @@ class LBRY
public static function getLBCtoUSDRate()
{
$response = CurlWithCache::get(static::getApiUrl('/lbc/exchange_rate'), [], [
'cache' => 3600, //one hour
'json_response' => true
]);
'cache' => 3600, //one hour
'json_response' => true
]);
return $response['data']['lbc_usd'] ?? 0;
}
public static function subscribe($email, $tag = null)
{
return Curl::post(static::getApiUrl('/list/subscribe'), array_filter([
'email' => $email,
'tag' => $tag,
]), ['json_response' => true]);
'email' => $email,
'tag' => $tag,
]), ['json_response' => true]);
}
public static function editEmailSettings($token, $email, $isPrimary =null, $isEnabled = null)
@@ -50,10 +50,20 @@ class LBRY
return Curl::post(static::getApiUrl('/user/unsubscribe'), ['email' => $email], ['json_response' => true]);
}
public static function connectYoutube($channel_name)
public static function connectYoutube($channel_name, $immediateSync = false)
{
$type = 'sync';
return Curl::post(static::getApiUrl('/yt/new'), ['desired_lbry_channel_name' => $channel_name, 'type' => $type], ['json_response' => true]);
// Uncomment next line for production and comment other return
return Curl::post(static::getApiUrl('/yt/new'), [ 'desired_lbry_channel_name' => $channel_name, 'immediate_sync' => $immediateSync, 'type' => 'sync' ], [ 'json_response' => true ]);
// Uncomment next line for development and comment other return (this also requires the testnet API)
// return Curl::post(static::getApiUrl('/yt/new'), [
// 'desired_lbry_channel_name' => $channel_name,
// 'immediate_sync' => $immediateSync,
// 'return_url' => 'http://localhost:8000/youtube/status/',
// 'type' => 'sync'
// ], [
// 'json_response' => true
// ]);
}
// Check the sync status
@@ -69,17 +79,30 @@ class LBRY
public static function editYouTube($status_token, $channel_name, $email, $sync_consent)
{
if ($email == null) {
return Curl::post(static::getApiUrl("/yt/update"), ['status_token' => $status_token, 'new_preferred_channel' => $channel_name, 'sync_consent' => $sync_consent], ['json_response' => true]);
} else {
return Curl::post(static::getApiUrl("/yt/update"), ['status_token' => $status_token, 'new_email' => $email, 'new_preferred_channel' => $channel_name, 'sync_consent' => $sync_consent], ['json_response' => true]);
$postParams = array('status_token' => $status_token);
if ($email) {
$postParams['new_email'] = $email;
}
if ($sync_consent) {
if ($sync_consent === 0) {
$sync_consent = null;
}
$postParams['sync_consent'] = $sync_consent;
}
if ($new_preferred_channel) {
$postParams['new_preferred_channel'] = $channel_name;
}
return Curl::post(static::getApiUrl("/yt/update"), $postParams, ['json_response' => true]);
}
public static function logWebVisitor($site, $visitorID, $IPAddress)
{
if (IS_PRODUCTION)
{
if (IS_PRODUCTION) {
return Curl::post(static::getApiUrl("/visitor/new"), ['site' => $site, 'visitor_id' => $visitorID, 'ip_address' => $IPAddress], ['json_response' => true]);
}
}
-14
View File
@@ -23,20 +23,6 @@ class Mailgun
return $status == 200;
}
public static function sendYouTubeWarmLead($data)
{
list($status, $headers, $body) = static::post('/' . static::MAIL_DOMAIN . '/messages', [
'from' => 'LBRY <mail@' . static::MAIL_DOMAIN . '>',
'to' => 'reilly@lbry.com',
'subject' => 'Interested YouTuber',
'html' => '<pre>' . var_export($data, true) . '</pre>',
'o:tracking-clicks' => 'no',
'o:tracking-opens' => 'no'
]);
return $status == 200;
}
protected static function post($endpoint, $data)
{
return static::request(Curl::POST, $endpoint, $data);
+1 -1
View File
@@ -18,7 +18,7 @@ chdir(ROOT_DIR);
Shell::exec('git fetch && git reset --hard origin/master');
Shell::exec('git submodule update --init');
Shell::exec('git pull --recurse-submodules');
Shell::exec('git submodule update --recursive --remote');
Shell::exec('php composer.phar install');
View::compileCss();
+4 -5
View File
@@ -21,7 +21,7 @@ class Response
protected static $jsCalls = [];
protected static $assets = [
'js' => [
'/js/jquery-3.3.1.min.js',
'/js/jquery-3.4.1.min.js',
'/js/global.js'
],
'css' => ['/css/all.css']
@@ -61,7 +61,7 @@ class Response
public static function getMetaImages()
{
return static::$metaImages ?: [Request::getHostAndProto() . '/img/lbry-green-meta-1200x900.png'];
return static::$metaImages ?: [Request::getHostAndProto() . '/img/og-image.png'];
}
public static function setMetaTitle($title)
@@ -371,15 +371,14 @@ class Response
);
}
public static function addPostRenderCallback( $cb )
public static function addPostRenderCallback($cb)
{
array_push(static::$PostRenderCallbacks, $cb);
}
public static function invokePostRenderCallbacks()
{
foreach(static::$PostRenderCallbacks as &$cb )
{
foreach (static::$PostRenderCallbacks as &$cb) {
$cb();
}
}
-3
View File
@@ -131,9 +131,6 @@ class View
$all_css = $scssCompiler->compile(file_get_contents(self::SCSS_DIR . '/all.scss'));
file_put_contents(self::CSS_DIR . '/all.css', $all_css);
$youtube_css = $scssCompiler->compile(file_get_contents(self::SCSS_DIR . '/youtube.scss'));
file_put_contents(self::CSS_DIR . '/youtube.css', $youtube_css);
}
public static function gzipAssets()
@@ -1,15 +0,0 @@
<header class="header-yt">
<div class="inner">
<div class="left">
<div class="logo"></div>
<a href="/get">Get</a>
<a href="/learn">Learn</a>
</div>
<div class="right">
<a href="https://github.com/lbryio" class="github"></a>
<a href="https://www.reddit.com/r/lbry/" class="reddit"></a>
<a href="https://www.facebook.com/lbryio" class="facebook"></a>
<a href="https://twitter.com/lbryio" class="twitter"></a>
</div>
</div>
</header>
+1 -1
View File
@@ -57,7 +57,7 @@
<body>
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1 id="title">Almost Done!</h1>
</div>
</section>
+1 -1
View File
@@ -33,7 +33,7 @@
<body>
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1 id="title">Almost Done!</h1>
</div>
</section>
-195
View File
@@ -1,195 +0,0 @@
<?php
Response::setCssAssets(['/css/youtube.css']);
Response::addJsAsset('/js/yt2/TweenMax.min.js');
Response::addJsAsset('/js/yt2/ScrollToPlugin.min.js');
Response::addJsAsset('/js/yt2/app.js');
Response::addJsAsset('/js/yt2/FormValidation.js');
Response::addJsAsset('/js/yt2/SyncStatus.js');
Response::addJsAsset('/js/yt2/youtube_video.js');
Response::setMetaTitle("LBRY YouTube Partner Program");
Response::setMetaDescription("Put your content on the blockchain, experience true content freedom, and earn rewards.");
?>
<main>
<?php echo View::render('acquisition/_youtube_header') ?>
<section class="hero">
<div class="shape">
<svg style="width: 100%; height: 100%;">
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="-1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
</svg>
<div class="circle one"></div>
<div class="circle two"></div>
<div class="circle three"></div>
<div class="dot a"></div>
<div class="dot b"></div>
<div class="dot c"></div>
<div class="dot d"></div>
<div class="dot e"></div>
</div>
<div class="title">
<div class="overflow"><h1>Content Freedom.</h1></div>
<p>Put your content on the blockchain and earn rewards.</p>
<div class="button">Claim Your LBRY Channel</div>
</div>
</section>
<section class="sync section">
<div class="inner">
<div class="content">
<div class="zigzag"></div>
<h1>Sync &amp; Earn Crypto</h1>
<p>LBRY offers a single-click sync process<br>for existing YouTubers</p>
<form class="form" id="sync" method="post" action="/youtube">
<div class="form-inner">
<div class="block">
<div class="center">
<input type="text" hidden name="type" value="sync"/>
<input id="immediate-sync" name="immediate_sync" type="checkbox" value="true"/>
<label for="immediate-sync">I want to sync my content.</label></div>
</div>
</div>
<div class="block">
<div class="center">
<input type="submit" value="Sync Now"/>
</div>
</div>
</div>
</form>
<div class="meta">
By syncing, you agree to mirror your content to the LBRY network for 1 year, and acknowledge <a href="/faq/youtube-terms">these terms</a>.
</div>
</div>
</div>
</section>
<section class="join section">
<div class="inner">
<div class="content">
<h1>LBRY is more fun with friends</h1>
<p>Take your peers and your audience with you. Create without limits.</p>
<div class="boxes">
<div class="box">
<div class="image">
<div id="play-video1" class="to-play" onclick="playVideo('video1')"><span></span></div>
<video id="video1" width="100%" poster="/img/youtube/01@2x.jpg" src="https://spee.ch/1ac47b8b3def40a25850dc726a09ce23d09e7009/ever-wonder-how-bitcoin-and-other.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}"/></video>
</div>
<div class="text">
<p>@3Blue1Brown</p>
</div>
</div>
<div class="box">
<div class="image">
<div id="play-video2" class="to-play" onclick="playVideo('video2')"><span></span></div>
<video id="video2" width="100%" poster="/img/youtube/02@2x.jpg" src="https://spee.ch/3c96f32de285db6c04e80bd6f5fad573250541e9/casually-successful.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}" /></video>
</div>
<div class="text">
<p>@CasuallyExplained</p>
</div>
</div>
<div class="box">
<div class="image" >
<div id="play-video3" class="to-play" onclick="playVideo('video3')"><span></span></div>
<video id="video3" width="100%" poster="/img/youtube/03@2x.jpg" src="https://spee.ch/8958c5d573d71f5c2d0c1bfdf752737ce39744cb/the-historical-elements-of-wolfenstein.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}"></video>
</div>
<div class="text">
<p>@ColinsLastStand</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="how section">
<div class="inner">
<div class="content">
<h1>Migrating to LBRY</h1>
<p>We will automatically mirror your existing YouTube channel to the LBRY Network.</p>
<div class="steps">
<div class="path">
<div class="journey"></div>
</div>
<div class="step one enabled" data-enable="12">
<div class="circle">1</div>
<p class="text">Sync your channel</p>
</div>
<div class="step two enabled" data-enable="33">
<div class="circle">2</div>
<p class="text">Download the LBRY App</p>
</div>
<div class="step three enabled" data-enable="75">
<div class="circle">3</div>
<p class="text">Receive your LBRY Credits</p>
</div>
</div>
</div>
</div>
</section>
<section class="rewards section">
<div class="inner">
<div class="content">
<h1>LBRY Credits and Your Channel</h1>
<p>After you sync, receive LBRY Credits for one year based on your current subscriber count.<br/><br/>
The more you give to the network, the more it gives back.</p>
<div class="price">
<h3>Partner Programs</h3>
<p>LBC <span class="current-value"></span></p>
</div>
<div class="table">
<div class="head">
<p>Subscribers</p>
<p>Yearly</p>
<p>Amount</p>
</div>
<div class="line">
<p>1,000</p>
<p><?php echo $reward['data']['1000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>10,000</p>
<p><?php echo $reward['data']['10000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>100,000</p>
<p><?php echo $reward['data']['100000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>1,000,000</p>
<p><?php echo $reward['data']['1000000']; ?> <span></span></p>
<p></p>
</div>
</div>
</div>
</div>
</section>
<section class="contact section">
<div class="inner">
<div class="content">
<h1>Tell me more.</h1>
<p>We have a guy that elaborates on things. Apply directly to the forehead.</p>
<div class="v-card">
<div class="photo"><img src="/img/youtube/reilly-smith@2x.png"></div>
<div class="text">
<h3>Reilly Smith</h3>
<p>Head of Content</p>
<a href="mailto:reilly@lbry.com?subject=YouTube+Freedom">Contact</a>
</div>
</div>
</div>
</div>
</section>
<div class="to-top"><span>to top</span></div>
</main>
-194
View File
@@ -1,194 +0,0 @@
<?php
Response::setCssAssets(['/css/youtube.css']);
Response::addJsAsset('/js/yt2/TweenMax.min.js');
Response::addJsAsset('/js/yt2/ScrollToPlugin.min.js');
Response::addJsAsset('/js/yt2/app.js');
Response::addJsAsset('/js/yt2/FormValidation.js');
Response::addJsAsset('/js/yt2/SyncStatus.js');
Response::addJsAsset('/js/yt2/youtube_video.js');
Response::setMetaTitle("LBRY YouTube Partner Program");
Response::setMetaDescription("Put your content on the blockchain, experience true content freedom, and earn rewards.");
Response::addMetaImage(Request::getHostAndProto() . '/img/lbry-partner.png');
?>
<main>
<?php echo View::render('acquisition/_youtube_header') ?>
<section class="hero">
<div class="shape">
<svg style="width: 100%; height: 100%;">
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="-1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
</svg>
<div class="circle one"></div>
<div class="circle two"></div>
<div class="circle three"></div>
<div class="dot a"></div>
<div class="dot b"></div>
<div class="dot c"></div>
<div class="dot d"></div>
<div class="dot e"></div>
</div>
<div class="title">
<div class="overflow"><h1>Content Freedom.</h1></div>
<p>Put your content on the blockchain and earn rewards.</p>
<div class="button">Claim Your LBRY Channel</div>
</div>
</section>
<section class="claim section">
<div class="inner">
<div class="content">
<?php
if ($error_message): echo "<div>" . "The following error occurred: ". $error_message . " For support please send an email to hello@lbry.com" . "</div>";
endif;?>
<div class="zigzag"></div>
<h1>Create on a stable platform. For real this time.</h1>
<div hidden id="sync-status" class="sync-status">
</div>
<form id="youtube_claim" method="post" action="/youtube/token">
<div class="form-inner" >
<div class="block">
<input id="lbry_channel_name" type="text" name="desired_lbry_channel_name" placeholder="Enter your channel name" />
<label>@</label>
<div hidden id="lbry_error" class="error">LBRY channel name is not valid or blank</div>
</div>
</form>
<div class="block">
<input type="submit" value="Claim now" onClick="return submitDetailsForm()"/>
</div>
<div class="meta">
This will verify you are an active YouTuber, then instructions and your welcome credits will be emailed to you.
<a href="/faq/youtube">Learn more</a>.
</div>
</div>
</div>
</section>
<section class="join section">
<div class="inner">
<div class="content">
<h1>LBRY is more fun with friends</h1>
<p>Take your peers and your audience with you. Create without limits.</p>
<div class="boxes">
<div class="box">
<div class="image">
<div id="play-video1" class="to-play" onclick="playVideo('video1')"><span></span></div>
<video id="video1" width="100%" poster="/img/youtube/01@2x.jpg" src="https://spee.ch/1ac47b8b3def40a25850dc726a09ce23d09e7009/ever-wonder-how-bitcoin-and-other.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}"/></video>
</div>
<div class="text">
<p>@3Blue1Brown</p>
</div>
</div>
<div class="box">
<div class="image">
<div id="play-video2" class="to-play" onclick="playVideo('video2')"><span></span></div>
<video id="video2" width="100%" poster="/img/youtube/02@2x.jpg" src="https://spee.ch/3c96f32de285db6c04e80bd6f5fad573250541e9/casually-successful.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}" /></video>
</div>
<div class="text">
<p>@CasuallyExplained</p>
</div>
</div>
<div class="box">
<div class="image" >
<div id="play-video3" class="to-play" onclick="playVideo('video3')"><span></span></div>
<video id="video3" width="100%" poster="/img/youtube/03@2x.jpg" src="https://spee.ch/8958c5d573d71f5c2d0c1bfdf752737ce39744cb/the-historical-elements-of-wolfenstein.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}"></video>
</div>
<div class="text">
<p>@ColinsLastStand</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="how section">
<div class="inner">
<div class="content">
<h1>Migrating to LBRY</h1>
<p>We will automatically mirror your most recent 1,000 YouTube videos to your channel on the LBRY Network.</p>
<div class="steps">
<div class="path">
<div class="journey"></div>
</div>
<div class="step one enabled" data-enable="12">
<div class="circle">1</div>
<p class="text">Sync your channel</p>
</div>
<div class="step two enabled" data-enable="33">
<div class="circle">2</div>
<p class="text">Download the LBRY App</p>
</div>
<div class="step three enabled" data-enable="75">
<div class="circle">3</div>
<p class="text">Receive your LBRY Credits</p>
</div>
</div>
</div>
</div>
</section>
<section class="rewards section">
<div class="inner">
<div class="content">
<h1>LBRY Credits and Your Channel</h1>
<p>After you sync, receive LBRY Credits for one year based on your current subscriber count.<br/><br/>
The more you give to the network, the more it gives back.</p>
<div class="price">
<h3>Partner Programs</h3>
<p>LBC <span class="current-value"></span></p>
</div>
<div class="table">
<div class="head">
<p>Subscribers</p>
<p>Yearly</p>
<p>Amount</p>
</div>
<div class="line">
<p>1,000</p>
<p><?php echo $reward['data']['1000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>10,000</p>
<p><?php echo $reward['data']['10000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>100,000</p>
<p><?php echo $reward['data']['100000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>1,000,000</p>
<p><?php echo $reward['data']['1000000']; ?> <span></span></p>
<p></p>
</div>
</div>
</div>
</div>
</section>
<section class="contact section">
<div class="inner">
<div class="content">
<h1>Tell me more.</h1>
<p>We have a guy that elaborates on things. Apply directly to the forehead.</p>
<div class="v-card">
<div class="photo"><img src="/img/youtube/reilly-smith@2x.png"></div>
<div class="text">
<h3>Reilly Smith</h3>
<p>Head of Content</p>
<a href="mailto:reilly@lbry.com?subject=YouTube+Freedom">Contact</a>
</div>
</div>
</div>
</div>
</section>
<div class="to-top"><span>to top</span></div>
</main>
+191 -156
View File
@@ -1,193 +1,228 @@
<?php
Response::setCssAssets(['/css/youtube.css']);
Response::addJsAsset('/js/yt2/TweenMax.min.js');
Response::addJsAsset('/js/yt2/ScrollToPlugin.min.js');
Response::addJsAsset('/js/yt2/app.js');
Response::addJsAsset('/js/yt2/FormValidation.js');
Response::addJsAsset('/js/yt2/SyncStatus.js');
Response::addJsAsset('/js/yt2/youtube_video.js');
Response::setMetaTitle("LBRY YouTube Partner Program");
Response::setMetaDescription("Put your content on the blockchain, experience true content freedom, and earn rewards.");
Response::addMetaImage(Request::getHostAndProto() . '/img/lbry-partner.png');
Response::addJsAsset('/js/yt2/TweenMax.min.js');
Response::addJsAsset('/js/yt2/app.js');
Response::addJsAsset('/js/yt2/FormValidation.js');
Response::addJsAsset('/js/yt2/SyncStatus.js');
Response::addJsAsset('/js/yt2/youtube_video.js');
Response::setMetaTitle("LBRY YouTube Partner Program");
Response::setMetaDescription("Put your content on the blockchain, experience true content freedom, and earn rewards.");
Response::addMetaImage(Request::getHostAndProto() . '/img/lbry-partner.png');
?>
<main>
<?php echo View::render('acquisition/_youtube_header') ?>
<section class="hero">
<div class="shape">
<svg style="width: 100%; height: 100%;">
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="-1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
</svg>
<div class="circle one"></div>
<div class="circle two"></div>
<div class="circle three"></div>
<div class="dot a"></div>
<div class="dot b"></div>
<div class="dot c"></div>
<div class="dot d"></div>
<div class="dot e"></div>
</div>
<div class="title">
<div class="overflow"><h1>Content Freedom.</h1></div>
<p>Put your content on the blockchain and earn rewards.</p>
<div class="button">Claim Your LBRY Channel</div>
</div>
</section>
<section class="claim section">
<div class="inner">
<div class="content">
<main class="ancillary youtube youtube--landing">
<section class="hero hero--youtube">
<div class="shape">
<svg>
<path d="M 0,0" data-from="-1"/>
<path d="M 0,0" data-from="0"/>
<path d="M 0,0" data-from="0"/>
<path d="M 0,0" data-from="1"/>
<path d="M 0,0" data-from="1"/>
<path d="M 0,0" data-from="2"/>
<path d="M 0,0" data-from="2"/>
<path d="M 0,0" data-from="2"/>
</svg>
<div class="circle one"></div>
<div class="circle two"></div>
<div class="circle three"></div>
<div class="dot a"></div>
<div class="dot b"></div>
<div class="dot c"></div>
<div class="dot d"></div>
<div class="dot e"></div>
</div>
<div class="inner-wrap inner-wrap--center-left">
<h1 class="weight-light">LBRY &times; YouTube Sync</h1>
<h2 class="weight-light">Get your YouTube videos in front of the LBRY audience</h2>
<button class="button button--inverse" data-id="scroll-to-claim" type="button">Claim your channel now</button>
</div>
</section>
<section class="align-text--center" id="claim-section">
<div class="inner-wrap">
<?php
if ($error_message): echo "<div>" . "The following error occurred: ". $error_message . " For support please send an email to hello@lbry.com" . "</div>";
if ($error_message): echo "<p class='error-block'>" . "The following error occurred: ". $error_message . " For support please send an email to <a href='mailto:hello@lbry.com' title='Email LBRY for help'>hello@lbry.com</a>." . "</p>";
endif;?>
<div class="zigzag"></div>
<h1>Create on a stable platform. For real this time.</h1>
<div hidden id="sync-status" class="sync-status">
</div>
<p hidden id="lbry_error" class="error-block">LBRY channel name is either not valid or your input is blank</p>
<h2>Connect with your fans while earning money and rewards</h2>
<form id="youtube_claim" method="post" action="/youtube/token">
<div class="form-inner" >
<div class="block">
<input id="lbry_channel_name" type="text" name="desired_lbry_channel_name" placeholder="Enter your channel name" />
<label>@</label>
<div hidden id="lbry_error" class="error">LBRY channel name is not valid or blank</div>
</div>
<p hidden id="sync-status" class="sync-status"></p>
<input-submit>
<label class="symbol-prefix">@</label>
<input
id="lbry_channel_name"
name="desired_lbry_channel_name"
placeholder="Enter your channel name"
type="text"
/>
<input
onClick="return submitDetailsForm()"
type="submit"
value="Claim now"
/>
</input-submit>
<br/>
<checkbox-element>
<input hidden name="type" type="text" value="sync"/>
<input id="immediate-sync" name="immediate_sync" type="checkbox" value="true"/>
<label for="immediate-sync">I want to sync my content to the LBRY network and agree to <a href="/faq/youtube-terms" target="_blank">these terms</a></label>
<checkbox-toggle/>
</checkbox-element>
</form>
<div class="block">
<input type="submit" value="Claim now" onClick="return submitDetailsForm()"/>
</div>
<div class="meta">
This will verify you are an active YouTuber. Once verified instructions about how to claim credits, and technical details about your channel, will be emailed to you.
<a href="/faq/youtube">Learn more</a>.
<small class="meta">
This will verify you are an active YouTuber. Instructions about how to claim credits, and technical details about your channel, will be emailed to you after you are verified.
<a href="/faq/youtube">Learn more</a>
</small>
</div>
</section>
<section>
<div class="join section inner-wrap">
<h3>Join the best creators already on LBRY</h3>
<p>Audiences range from 1,000+ to 10,000,000+ people. The videos below are from creators who have synced their content to LBRY.</p>
<div class="ytsync-previews">
<figure class="ytsync-preview">
<video
onclick="playVideo('video1')"
id="video1"
poster="/img/youtube/01@2x.jpg"
src="https://spee.ch/1ac47b8b3def40a25850dc726a09ce23d09e7009/ever-wonder-how-bitcoin-and-other.mp4"
></video>
<figcaption>@3Blue1Brown</figcaption>
</figure>
<figure class="ytsync-preview">
<video
onclick="playVideo('video2')"
id="video2"
poster="/img/youtube/02@2x.jpg"
src="https://spee.ch/3c96f32de285db6c04e80bd6f5fad573250541e9/casually-successful.mp4"
></video>
<figcaption>@CasuallyExplained</figcaption>
</figure>
<figure class="ytsync-preview">
<video
onclick="playVideo('video3')"
id="video3"
poster="/img/youtube/03@2x.jpg"
src="https://spee.ch/8958c5d573d71f5c2d0c1bfdf752737ce39744cb/the-historical-elements-of-wolfenstein.mp4"
></video>
<figcaption>@ColinsLastStand</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section class="join section">
<div class="inner">
<div class="content">
<h1>LBRY is more fun with friends</h1>
<p>Take your peers and your audience with you. Create without limits.</p>
<div class="boxes">
<div class="box">
<div class="image">
<div id="play-video1" class="to-play" onclick="playVideo('video1')"><span></span></div>
<video id="video1" width="100%" poster="/img/youtube/01@2x.jpg" src="https://spee.ch/1ac47b8b3def40a25850dc726a09ce23d09e7009/ever-wonder-how-bitcoin-and-other.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}"/></video>
</div>
</section>
<div class="text">
<p>@3Blue1Brown</p>
</div>
</div>
<div class="box">
<div class="image">
<div id="play-video2" class="to-play" onclick="playVideo('video2')"><span></span></div>
<video id="video2" width="100%" poster="/img/youtube/02@2x.jpg" src="https://spee.ch/3c96f32de285db6c04e80bd6f5fad573250541e9/casually-successful.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}" /></video>
</div>
<section>
<div class="rewards section inner-wrap">
<h3>Getting credits for your channel</h3>
<p>Depending on the number of subscribers you have on YouTube when you claim your channel, you will qualify for different lump sums of LBC.</p>
<div class="text">
<p>@CasuallyExplained</p>
</div>
</div>
<div class="box">
<div class="image" >
<div id="play-video3" class="to-play" onclick="playVideo('video3')"><span></span></div>
<video id="video3" width="100%" poster="/img/youtube/03@2x.jpg" src="https://spee.ch/8958c5d573d71f5c2d0c1bfdf752737ce39744cb/the-historical-elements-of-wolfenstein.mp4" style="cursor: pointer" onclick="function(){this.paused ? this.play() : this.pause()}"></video>
</div>
<div class="text">
<p>@ColinsLastStand</p>
</div>
</div>
</div>
<h4>
Subscriber Levels
<small class="meta">LBC <span class="current-value"></span></small>
</h4>
<table>
<thead style="font-size: 80%;">
<tr>
<th>Your Current YouTube Subscribers</th>
<th>LBC Tokens</th>
<th>USD Value</th>
</tr>
</thead>
<tbody>
<?php foreach ($reward['data'] as $subCount => $rewardAmt): ?>
<tr>
<td><?php echo number_format($subCount) ?></td>
<td><?php echo number_format($rewardAmt); ?> <small class="meta">LBC</small></td>
<td data-id="amount-<?php echo $rewardAmt ?>"></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</section>
<section class="how section">
<div class="inner">
<div class="content">
<h1>Migrating to LBRY</h1>
<p>We will automatically mirror your most recent 1,000 YouTube videos to your channel on the LBRY Network.</p>
</section>
<section>
<div class="yt-how inner-wrap">
<h3>Getting on LBRY is easy</h3>
<p>When you claim your channel your most recent 1,000 YouTube videos will be automatically copied to your LBRY channel.</p>
<ol>
<li>Claim your channel</li>
<li>Authorize your content</li>
<li>Users watch your content on LBRY</li>
</ol>
<div class="steps">
<div class="path">
<div class="journey"></div>
</div>
<div class="step one enabled" data-enable="12">
<div class="circle">1</div>
<p class="text">Sync your channel</p>
<p class="text">Claim your channel</p>
</div>
<div class="step two enabled" data-enable="33">
<div class="circle">2</div>
<p class="text">Download the LBRY App</p>
<p class="text">Authorize your content</p>
</div>
<div class="step three enabled" data-enable="75">
<div class="circle">3</div>
<p class="text">Receive your LBRY Credits</p>
<p class="text">Users watch your content on LBRY</p>
</div>
</div>
</div>
</div>
</section>
<section class="rewards section">
<div class="inner">
<div class="content">
<h1>LBRY Credits and Your Channel</h1>
<p>After you sync, receive LBRY Credits for one year based on your current subscriber count.<br/><br/>
The more you give to the network, the more it gives back.</p>
<div class="price">
<h3>Partner Programs</h3>
<p>LBC <span class="current-value"></span></p>
</div>
<div class="table">
<div class="head">
<p>Subscribers</p>
<p>Yearly</p>
<p>Amount</p>
</div>
<div class="line">
<p>1,000</p>
<p><?php echo $reward['data']['1000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>10,000</p>
<p><?php echo $reward['data']['10000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>100,000</p>
<p><?php echo $reward['data']['100000']; ?> <span></span></p>
<p></p>
</div>
<div class="line">
<p>1,000,000</p>
<p><?php echo $reward['data']['1000000']; ?> <span></span></p>
<p></p>
</div>
</section>
<section class="align-text--center">
<div class="inner-wrap">
<h3>Sync &amp; Earn</h3>
<p>LBRY offers a single-click sync process for existing YouTubers.</p>
<br/>
<div>
<button class="button button--inverse" data-id="scroll-to-claim" type="button">Sync now</button>
</div>
</div>
</div>
</section>
<section class="contact section">
<div class="inner">
<div class="content">
<h1>Tell me more.</h1>
<p>We have a guy that elaborates on things. Apply directly to the forehead.</p>
</section>
<section>
<div class="inner-wrap">
<h3>Let's connect</h3>
<p>If you have any questions, reach out.</p>
<div class="v-card">
<div class="photo"><img src="https://spee.ch/7/rob-smith1.png"></div>
<div class="text">
<figure>
<img alt="Rob Smith, Head of Product Growth" src="https://spee.ch/7/rob-smith1.png"/>
</figure>
<info>
<h3>Rob Smith</h3>
<p>Head of Product Growth</p>
<a href="mailto:rob@lbry.com?subject=YouTube+Freedom">Contact</a>
</div>
</info>
</div>
</div>
</div>
</section>
<div class="to-top"><span>to top</span></div>
</section>
</main>
+1 -1
View File
@@ -6,7 +6,7 @@ $sync_consent = isset($_POST['sync_consent']);
if ($channel_name !== "" && !preg_match("/@[A-Za-z0-9-]+$/", $channel_name)) {
$channel_name = "@" . $channel_name;
$channel_name = "@" . $channel_name;
}
AcquisitionActions::actionYoutubeEdit($status_token, $channel_name, $email, $sync_consent);
+171 -137
View File
@@ -1,16 +1,17 @@
<?php Response::setMetaDescription('YouTuber? Take back control! LBRY allows publication on your terms. It\'s open-source, decentralized, and gives you 100% of the profit.') ?>
<?php Response::setMetaTitle(__('YouTubers! Take back control.')) ?>
<?php Response::setCssAssets(['/css/youtube.css']) ?>
<?php Response::addJsAsset('/js/yt2/FormValidation.js') ?>
<?php Response::addJsAsset('/js/yt2/youtube_status.js') ?>
<?php Response::addJsAsset('/js/yt2/youtube_video.js') ?>
<?php Response::addJsAsset('//www.googleadservices.com/pagead/conversion_async.js') ?>
<?php $statusData = $status_token['data'] ?>
<?php $isSyncAgreed = in_array($statusData['status'], ["syncing", "synced", "queued", "failed", "finalized"]) ?>
<?php $isSyncAgreed = in_array($statusData['status'], ["failed", "finalized", "pendingemail", "queued", "synced", "syncing"]) ?>
<?php $isRewardClaimed = $statusData['redeemed_reward'] > 0 ?>
<?php if (IS_PRODUCTION): ?>
<?php js_start() ?>
if (!localStorage.getItem('status_token')) {
<?php js_start() ?>
if (!localStorage.getItem('status_token')) {
ga('send', 'event', 'YT Sync', '<?php echo $isSyncAgreed ? "pending" : "queued" ?>', '');
fbq('track', 'Lead');
@@ -20,142 +21,175 @@
window.google_conversion_format = "3";
var opt = new Object();
opt.onload_callback = function() { };
var conv_handler = window['google_trackConversion'];
if (typeof(conv_handler) == 'function') {
conv_handler(opt);
}
}
<?php js_end() ?>
opt.onload_callback = function() { };
if (typeof(conv_handler) === 'function')
conv_handler(opt);
}
<?php js_end() ?>
<?php endif ?>
<main class="channel-settings">
<?php echo View::render('acquisition/_youtube_header') ?>
<section class="section channel pad-top">
<div class="inner">
<div class="content">
<?php if (preg_match('/^[A-Za-z0-9._%+-]+@plusgoogle.com$/', $statusData['email'])): ?>
<div id="email-google-plus-error" class="error">Your email address is set
as <?php echo $statusData['email']; ?>.<br>If this is not your email address, please <span
id="scroll_email">change it below</span>.
</div>
<?php endif ?>
<div class="zigzag"></div>
<h1><?php echo $isSyncAgreed && $isRewardClaimed ? "You're all set!" : "Almost done!" ?></h1>
<div class="confirmation-steps">
<ul>
<li>
<span>✓</span>
<p>Confirm your channel</p>
</li>
<li class="<?php echo $isSyncAgreed ? "" : "disabled" ?>">
<span><?php echo $isSyncAgreed ? "✓" : "☐" ?></span>
<p>Agree to sync</p>
<p <?php echo $isSyncAgreed ? "hidden" : "" ?>>click <a id="scroll-sync" href="#">here</a>
to agree to sync your content</p>
</li>
<li class="<?php echo $isRewardClaimed && $isSyncAgreed ? "" : "disabled" ?>">
<span><?php echo $isRewardClaimed ? "✓" : "☐" ?></span>
<p>Claim your credits</p>
<p <?php echo ($isRewardClaimed === false && $isSyncAgreed === true) ? "" : "hidden" ?>>To
get your credits, <a href="/get">download the app</a> and <a href="/faq/youtube">follow
these instructions.</a></p>
</li>
</ul>
</div>
<main class="ancillary youtube">
<section class="section channel">
<div class="inner-wrap">
<?php if (preg_match('/^[A-Za-z0-9._%+-]+@plusgoogle.com$/', $statusData['email'])): ?>
<p class="error-block" id="email-google-plus-error">
Your email address is set as <?php echo $statusData['email']; ?>.<br/>
If this is not your email address, please change it below.
</p>
<?php endif ?>
<div class="blocks">
<div class="block">
<p>Your Sync Status<br>
<span>
<?php switch ($statusData['status']) {
case "pending":
echo __("Pending Agreement");
break;
case "queued":
echo __("Queued");
break;
case "syncing":
echo __("Sync in Progress!");
break;
case "synced":
echo __("Content is Live!");
break;
case "failed":
echo __("Something went wrong, check back later!");
break;
case "finalized":
echo __("The content is in your control!");
break;
case "abandoned":
echo __("Cannot sync anymore!");
break;
} ?>
</span>
</p>
</div>
<div class="block">
<p>Subscribers<br>
<span><?php echo $statusData['subscribers'] === 0 ? "-" : $statusData['subscribers'] ?></span>
</p>
</div>
<div class="block">
<p>Videos<br>
<span><?php echo $statusData['videos'] === 0 ? "-" : $statusData['videos'] ?></span>
</p>
</div>
<div class="block">
<p>Expected Rewards<br>
<span><?php echo $statusData['expected_reward'] === 0 ? "-" : $statusData['expected_reward'] ?></span>
</p>
</div>
</div>
</div>
</div>
</section>
<section class="section settings">
<div class="inner">
<div class="content">
<div class="zigzag"></div>
<h1>Confirm your preferences</h1>
<form id="youtube_settings" action="/youtube/edit" method="post">
<div>
<input type="hidden" name="status_token" id="status_token" value="<?php echo $token ?>"/>
</div>
<?php
if ($error_message): echo "<div>" . "The following error occurred: " . $error_message . " For support please send an email to hello@lbry.com" . "</div>";
endif; ?>
<div class="block">
<label for="channel-name">LBRY Channel ID</label>
<input type="text" id="channel-name" name="new_preferred_channel"
placeholder="@YourPreferredChannelName"
value="<?php echo $statusData['lbry_channel_name']; ?>" <?php echo $statusData['editable'] ? "" : "disabled" ?> >
<div hidden id="channel-name-error" class="error">Channel is invalid or blank</div>
</div>
<div class="block">
<label for="email">Preferred Email</label>
<input type="text" id="email" name="new_email" placeholder="bill@gmail.com"
value="<?php echo $statusData['email']; ?>">
<div hidden id="email-error" class="error">Email is invalid or blank</div>
<div hidden id="email-google-plus-error" class="error">Google plus email addresses cannot be
used
</div>
</div>
<p <?php echo $statusData['has_verified_email'] ? "hidden" : "" ?> class="block full error">You need
to verify your email before continuing!</p>
<label for="sync-consent"
class="block full" <?php echo !$statusData['has_verified_email'] ? "hidden" : "" ?>>
<input name="sync_consent" id="sync-consent" type="checkbox"
<?php echo $isSyncAgreed ? "checked" : "" ?> <?php echo (($statusData['status'] == 'pending' || $statusData['status'] == 'queued') && !$statusData['transferred']) ? "" : "disabled "; ?>>I
want to sync my content to the LBRY network and agree to <a href="/faq/youtube-terms">these
terms</a>.
<p hidden id="sync-consent-error" class="error">In order to continue, you must agree to
sync.</p>
</label>
<div class="block">
<button type="submit" onClick="return submitEditForm()">Save Changes</button>
</div>
</form>
</div>
<h2><?php echo $isSyncAgreed && $isRewardClaimed ? "You're all set!" : "Almost done!" ?></h2>
<div class="confirmation-steps">
<ul class="bulletless">
<li>
<span>✓</span>
<p>Confirm your channel</p>
</li>
<li class="<?php echo $isSyncAgreed ? "" : "disabled" ?>">
<span><?php echo $isSyncAgreed ? "✓" : "·" ?></span>
<p>Agree to sync</p>
</li>
<li class="<?php echo $isRewardClaimed && $isSyncAgreed ? "" : "disabled" ?>">
<span><?php echo $isRewardClaimed ? "✓" : "·" ?></span>
<p>Claim your credits</p>
<p <?php echo ($isRewardClaimed === false && $isSyncAgreed === true) ? "" : "hidden" ?>>(to get your credits, <a href="/get">download the app</a> and <a href="/faq/youtube">follow these instructions</a>)</p>
</li>
</ul>
<hr/>
</div>
<table>
<thead>
<tr>
<th>Your Sync Status</th>
<th>Subscribers</th>
<th>Videos</th>
<th>Expected Rewards</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<?php switch ($statusData['status']) {
case "pending":
echo __("Pending Agreement");
break;
case "pendingemail":
echo __("Pending Email Confirmation");
break;
case "queued":
echo __("Queued");
break;
case "syncing":
echo __("Sync in Progress!");
break;
case "synced":
echo __("Content is Live!");
break;
case "failed":
echo __("Something went wrong, check back later!");
break;
case "finalized":
echo __("The content is in your control!");
break;
case "abandoned":
echo __("Cannot sync anymore!");
break;
default:
echo __("—");
break;
} ?>
</td>
<td>
<?php echo $statusData['subscribers'] === 0 ? "—" : $statusData['subscribers'] ?>
</td>
<td>
<?php echo $statusData['videos'] === 0 ? "—" : $statusData['videos'] ?>
</td>
<td>
<?php echo $statusData['expected_reward'] === 0 ? "—" : $statusData['expected_reward'] ?>
</td>
</tr>
</tbody>
</table>
</div>
</section>
<section class="section settings">
<div class="inner-wrap">
<form id="youtube_settings" action="/youtube/edit" method="post">
<div>
<input type="hidden" name="status_token" id="status_token" value="<?php echo $token ?>"/>
</div>
<?php if ($error_message): echo "<p class='error-block'>" . "The following error occurred: <strong>" . $error_message . "</strong> For support please send an email to hello@lbry.com" . "</p>"; endif; ?>
<fieldset>
<legend>Confirm your preferences</legend>
<p <?php echo $statusData['has_verified_email'] ? "hidden" : "" ?> class="error-block">
You need to verify your email
</p>
<fieldset-group>
<fieldset-section>
<label for="channel-name">LBRY Channel ID</label>
<input
type="text" id="channel-name" name="new_preferred_channel"
placeholder="@YourPreferredChannelName"
value="<?php echo $statusData['lbry_channel_name']; ?>" <?php echo $statusData['editable'] ? "" : "disabled" ?>
/>
<div hidden id="channel-name-error" class="error">Channel is invalid or blank</div>
</fieldset-section>
<fieldset-section>
<label for="email">Preferred Email</label>
<input
type="text"
id="email"
name="new_email"
placeholder="bill@gmail.com"
value="<?php echo $statusData['email']; ?>"
/>
<div hidden id="email-error" class="error">Email is invalid or blank</div>
<div hidden id="email-google-plus-error" class="error">Google plus email addresses cannot be used</div>
</fieldset-section>
</fieldset-group>
<checkbox-element
<?php echo (($statusData['status'] === 'pending' || $statusData['status'] === 'queued') && !$statusData['transferred']) ? "" : "disabled "; ?>
<?php echo !$statusData['has_verified_email'] ? "hidden" : "" ?>
>
<input
id="sync_consent"
name="sync_consent"
type="checkbox"
<?php echo $isSyncAgreed ? "checked" : "" ?> <?php echo (($statusData['status'] === 'pending' || $statusData['status'] === 'queued') && !$statusData['transferred']) ? "" : "disabled "; ?>
/>
<label for="sync_consent" <?php echo !$statusData['has_verified_email'] ? "hidden" : "" ?>>
I want to sync my content to the LBRY network and agree to <a href="/faq/youtube-terms" target="_blank">these terms</a>
<p hidden id="sync-consent-error" class="error">In order to continue, you must agree to sync.</p>
</label>
<checkbox-toggle/>
</checkbox-element>
<div>
<button type="submit" onClick="return submitEditForm()">Save Changes</button>
</div>
</fieldset>
</form>
</div>
</section>
</main>
@@ -1,11 +1,9 @@
<?php js_start() ?>
if (localStorage.getItem('status_token')) {
var status_token = localStorage.getItem('status_token');
url = '/youtube/status/' + status_token;
$(location).attr('href', url);
}
else {
$(location).attr('href', '/youtube');
}
if (localStorage.getItem("status_token")) {
const status_token = localStorage.getItem("status_token");
url = "/youtube/status/" + status_token;
$(location).attr("href", url);
} else {
$(location).attr("href", "/youtube");
}
<?php js_end() ?>
@@ -1,8 +0,0 @@
<?php
$desired_lbry_channel_name = Request::encodeStringFromUser($_POST['desired_lbry_channel_name']);
if (!preg_match("/@[A-Za-z0-9_-]+$/", $desired_lbry_channel_name)) {
$desired_lbry_channel_name = "@" . $desired_lbry_channel_name;
}
AcquisitionActions::actionYoutubeToken($desired_lbry_channel_name);
+1 -1
View File
@@ -2,7 +2,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1><?php echo htmlentities($post->getTitle()) ?></h1>
</div>
</section>
+1 -1
View File
@@ -2,7 +2,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Quarterly Credit Reports</h1>
</div>
</section>
+1 -1
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Frequently Asked Questions</h1>
</div>
</section>
+1 -1
View File
@@ -2,7 +2,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{page.faq.header}}</h1>
</div>
</section>
+1 -1
View File
@@ -6,7 +6,7 @@
<section
class="hero hero--news<?php echo $post->getCover() ? '' : ' hero--half-height'?>"<?php echo $post->getCover() ? ' style="background-image: url(\'/img/blog-covers/' . $post->getCover() . '\')"' : ''?>
>
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1><?php echo htmlentities($post->getTitle()) ?></h1>
<h2>
<?php echo $post->getAuthorName() ?>
+2 -2
View File
@@ -2,7 +2,7 @@
<main class="news ancillary">
<section class="hero hero--news" style="background-image: url(/img/bangalore.jpg); background-position: center 15%;">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{news.desk}}</h1>
<h2>{{news.musings}}</h2>
</div>
@@ -10,7 +10,7 @@
<section>
<div class="inner-wrap">
<ul class="news-items">
<ul class="news-items bulletless">
<?php foreach ($posts as $post): ?>
<li class="news-item">
<h3>
+1 -1
View File
@@ -2,7 +2,7 @@
<main class="ancillary">
<section class="hero hero--half-height" style="background-image: url(/img/here-be-dragons.jpg); background-position: center;">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{roadmap.title}}</h1>
<h2>Future plans for the journey into the land of dragons</h2>
</div>
+1 -1
View File
@@ -15,7 +15,7 @@
<?php $buckets[floor($index++ / $columns)][] = ob_get_clean() ?>
<?php endforeach ?>
<ul class="download-cards">
<ul class="download-cards bulletless">
<?php foreach (array_filter($buckets) as $bucketRow): ?>
<li class="download-card"><?php echo implode("</li> <li class='download-card'>", $bucketRow) ?></li>
<?php endforeach ?>
+1 -1
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Use LBRY on your preferred platform</h1>
</div>
</section>
+8 -2
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>
<?php echo __('download.for-os2', ['%os%' => OS::OS_DETAIL($os)[5]]) ?>
</h1>
@@ -30,7 +30,13 @@
</div>
<figure>
<img src="<?php echo $osScreenshotSrc ?>" alt="Screenshot of LBRY"/>
<img
alt="Screenshot of LBRY"
src="<?php echo $osScreenshotSrc ?>"
<?php if ($os === OS::OS_ANDROID): ?>
class="tall"
<?php endif ?>
/>
</figure>
<?php else: ?>
+3 -4
View File
@@ -3,7 +3,7 @@
<head prefix="og: http://ogp.me/ns#">
<meta name="google-site-verification" content="QEyIHPbSKR2Z9ZNkfVHGdGv5EE7tTM7FE0Wt8tmcH50"/>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"/>
<?php $title = Response::getMetaTitle() ?: Response::guessMetaTitle($content) ?>
<?php $title = $title ?
@@ -13,10 +13,7 @@
<link rel="stylesheet" href="https://rsms.me/inter/inter.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tonsky/FiraCode@master/distr/fira_code.css"/>
<?php if (!strpos($_SERVER['REQUEST_URI'], 'youtube/')): ?>
<link rel="stylesheet" href="/components/dist/index.css"/>
<?php endif ?>
<?php foreach (Response::getCssAssets() as $src): ?>
<link rel="stylesheet" href="<?php echo $src?>"/>
@@ -57,6 +54,8 @@
<meta property="og:description" content="<?php echo Response::getMetaDescription() ?>"/>
<?php foreach (Response::getMetaImages() as $image): ?>
<meta property="og:image" content="<?php echo $image ?>"/>
<meta property="og:image:height" content="1125"/>
<meta property="og:image:width" content="2000"/>
<?php endforeach ?>
<meta property="og:site_name" content="LBRY"/>
<meta property="og:title" content="<?php echo $title ?>"/>
-19
View File
@@ -54,25 +54,6 @@
<checkbox-toggle/>
</checkbox-element>
<?php endforeach ?>
<?php js_start() ?>
document.querySelectorAll("checkbox-toggle").forEach(toggle => {
toggle.addEventListener("click", event => {
const siblings = event.target.parentElement.children;
for (const sibling of siblings) {
switch(true) {
case sibling.tagName.toLowerCase() === "label":
sibling.click();
break;
default:
break;
}
}
});
});
<?php js_end() ?>
</section>
</form>
<?php endif ?>
+1 -1
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{page.email_settings}}</h1>
</div>
</section>
+1 -1
View File
@@ -2,7 +2,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{page.unsubscribe}}</h1>
</div>
</section>
+1 -1
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(https://spee.ch/4/LBRYopoly)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Get paid to 3D print!</h1>
</div>
</section>
+1 -1
View File
@@ -1,6 +1,6 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{page.badrequest}}</h1>
</div>
</section>
+1 -1
View File
@@ -1,6 +1,6 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Page Not Found (404)</h1>
</div>
</section>
+1 -1
View File
@@ -1,6 +1,6 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{page.badmethod}}</h1>
</div>
</section>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/bangalore.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Welcomes You To The Blockchain Workshop</h1>
<h3>We're excited to share LBRY with you!</h3>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/droid1.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Testing... Testing...</h1>
<h3>LBRY needs alpha testers for our Android app!</h3>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/table2.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Welcomes You To The Bangalore Blockchain Application Development Meetup</h1>
<h3>We're excited to share about LBRY with you!</h3>
</div>
+1 -1
View File
@@ -2,7 +2,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Warrant Canary</h1>
</div>
</section>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/table2.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Wanna Meet Up?</h1>
<h3>LBRY is looking for ambassadors to spread the word to College campuses and Meetup groups worldwide!</h3>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Get in Touch</h1>
</div>
</section>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/clement-vit.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Welcomes Chandigarh University Students</h1>
<h3>We're excited to share LBRY with you!</h3>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Blockchain Fork Updates</h1>
</div>
</section>
+2 -2
View File
@@ -2,8 +2,8 @@
<?php Response::setMetaTitle(__('Level UP with LBRY Network')) ?>
<main class="ancillary">
<section class="hero" style="background-image: url(/img/pitv.jpg)">
<div class="inner-wrap inner-wrap--hero">
<section class="hero" style="background-image: url(/img/close-up-of-gaming-joystick.jpg)">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Level UP with LBRY Network</h1>
<h3>We're excited to share LBRY with you!</h3>
</div>
+12 -13
View File
@@ -2,8 +2,8 @@
<?php Response::addMetaImage('https://spee.ch/@lbryteam:6/everyone.jpg') ?>
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<section class="hero" style="background-image: url(https://spee.ch/@lbryteam:6/everyone-apr-2018.jpg); background-position: center;">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Join Team Content Freedom</h1>
</div>
</section>
@@ -12,11 +12,6 @@
<div class="inner-wrap">
<p>Changing the landscape of content distribution is no easy task. LBRY is growing rapidly, and we're always looking for great people to join us. If you're looking for a challenging and rewarding pursuit, if you want to work with a team that shares your passion and curiosity, you've come to the right place.</p>
<figure>
<img src="https://spee.ch/@lbryteam:6/everyone-apr-2018.jpg" alt="LBRY Team Photo from April 2018"/>
<figcaption>Fortunately, photo shoots are not a regular job activity.</figcaption>
</figure>
<h2 id="about">About LBRY</h2>
<p>Some things to know about working at LBRY:</p>
@@ -50,7 +45,7 @@
<li>A brief (30 minute max), non-technical, introductory phone call with either the CEO, CTO, or appropriate lead.</li>
<li>
<p>All technical hires are required to complete compensated code contribution on the repository they'd be working on. Non-technical hires will also be asked to complete a compensated trial task after they apply and complete step 1.</p>
<p class="join-us-fix">All technical hires are required to complete compensated code contribution on the repository they'd be working on. Non-technical hires will also be asked to complete a compensated trial task after they apply and complete step 1.</p>
<p>Issues tagged "good first issue" are suitable for this purpose, though you are welcome to work on another issue or even something not filed at all.</p>
@@ -70,17 +65,21 @@
</tr>
<tr>
<td>
- <a href="https://github.com/lbryio/lbry">lbry (daemon)</a><br/>
- <a href="https://github.com/lbryio/lbryum">lbryum (wallet)</a>
<ul>
<li><a href="https://github.com/lbryio/lbry">lbry (daemon)</a></li>
<li><a href="https://github.com/lbryio/lbryum">lbryum (wallet)</a></li>
</ul>
</td>
<td>Protocol Engineer</td>
<td><a href="https://github.com/lbryio/lbry/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22">good first issues</a></td>
</tr>
<tr>
<td>
- <a href="https://github.com/lbryio/lbry-desktop">lbry-desktop</a><br/>
- <a href="https://github.com/lbryio/lbry-android">lbry-android</a><br/>
- <a href="https://github.com/lbryio/spee.ch">spee.ch</a>
<ul>
<li><a href="https://github.com/lbryio/lbry-desktop">lbry-desktop</a></li>
<li><a href="https://github.com/lbryio/lbry-android">lbry-android</a></li>
<li><a href="https://github.com/lbryio/spee.ch">spee.ch</a></li>
</ul>
</td>
<td>Lead Application Engineer</td>
<td><a href="https://github.com/lbryio/lbry-desktop/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22">good first issues</a></td>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/blog-covers/censorship.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Independent Hosting for Independent Media</h1>
<h3>Don't leave your fate in the hands of Silicon Valley</h3>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/table2.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Welcomes LPU Students</h1>
<h3>We're excited to share about LBRY with you!</h3>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/table2.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Wanna Meet Up?</h1>
<h3>LBRY is looking for ambassadors to spread the word to College campuses and Meetup groups worldwide!</h3>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Join Our List for LBRY Updates</h1>
</div>
</section>
+1 -1
View File
@@ -9,6 +9,6 @@
'submitLabel' => 'Sign Me Up',
]) ?>
<p>Go back to <strong><a href="/">lbry.com</a></strong>.</p>
<p>Go back to <strong><a href="https://lbry.com">lbry.com</a></strong>.</p>
</section>
</main>
+1 -1
View File
@@ -5,7 +5,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{press.title}}</h1>
</div>
</section>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero hereo--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Inc. Privacy Policy</h1>
<style>
+1 -1
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(https://spee.ch/3cb82a81e95c147686dbf90e9983640939461c53/everyone-banner3.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>{{page.team.header}}</h1>
<h2>Teamwork makes the dream work.</h2>
</div>
+1 -1
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Terms of Service</h1>
</div>
</section>
+1 -1
View File
@@ -9,6 +9,6 @@
'submitLabel' => 'Sign Me Up',
]) ?>
<p>Go back to <strong><a href="/">lbry.com</a></strong>.</p>
<p>Go back to <strong><a href="https://lbry.com">lbry.com</a></strong>.</p>
</section>
</main>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/clement-vit.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Welcomes WomenTechies Hackathon Participants</h1>
<h3>We're excited to meet the next generation of problem solvers!</h3>
</div>
+13 -10
View File
@@ -4,7 +4,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/altamira-bison.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Art in the Internet Age</h1>
<h3>An introduction to LBRY</h3>
</div>
@@ -143,6 +143,7 @@ wonderfullife<span class="token punctuation">:</span> <span class="token punctua
<ol>
<li>LBRYNet issues a lookup for the name associated with the content. If the client does not have a local copy of the blockchain, this lookup is broadcast to miners or to a service provider. This lookup acquires the metadata associated with the name.</li>
<li>LBRYNet issues any required payments, as instructed by metadata entries.
<ol>
<li>If the content is set to free, nothing happens here.</li>
@@ -150,6 +151,7 @@ wonderfullife<span class="token punctuation">:</span> <span class="token punctua
<li>If the content is set to have another payment method, the seller must run or use a service that provides a private server enforcing payment and provisioning accessing keys.</li>
</ol>
</li>
<li>Simultaneous to #2, LBRYNet uses the metadata to download the content itself.
<ol>
<li>The metadata allows chunks to be discovered and assembled in a BitTorrent-like fashion. However, unlike BitTorrent, chunks do not individually identify themselves as part of a greater whole. Chunks are just arbitrary pieces of data.</li>
@@ -166,6 +168,7 @@ wonderfullife<span class="token punctuation">:</span> <span class="token punctua
<p>While the protocol is determined, open, and fixed, the service layer is much more flexible. It is far easier to redesign a website than it is to revise the HTTP protocol itself. The same is true here.</p>
<p>Additionally, just as in the early days of the internet, imagining the later direction of the web would have been unfathomable, so too may the best uses of LBRY's namespace or technology be undiscovered. However, there are some clear use cases:</p>
<h4>Applications and Devices</h4>
<p>A LBRY application is how a user would actually have meaningful interactions with the LBRY network. A LBRY client packages the power of the LBRY protocol into a simple application that allows the user to simply search for content, pay for it when necessary, download and enjoy.</p>
@@ -218,13 +221,13 @@ wonderfullife<span class="token punctuation">:</span> <span class="token punctua
<p>To evaluate a technology's effect, we must consider where it moves us from the current state of affairs, not judge against a Platonic ideal or past era. In assessing LBRY, we must compare it to a world in which BitTorrent already exists and is quite popular, not the 1950s. LBRY is an improvement over BitTorrent in combatting unsavory content in at least four ways:</p>
<ol>
<li><strong>More records.</strong>LBRY contains a public ledger of transactions recording name purchases and published content. As many purchases make it onto the ledger as well, this means infringing actions are frequently recorded <em>forever, </em>or are at a minimum, widely observable.</li>
<li><p><strong>More records.</strong></p><p>LBRY contains a public ledger of transactions recording name purchases and published content. As many purchases make it onto the ledger as well, this means infringing actions are frequently recorded <em>forever</em>, or are at a minimum, widely observable.</p></li>
<li><strong>Updatable URLs.</strong> Once a BitTorrent magnet hash is in the wild, there is no mechanism to update or alter its resolution whatsoever. If a LBRY name is pointing to infringing content, it can be updated or removed (but not by us). </li>
<li><p><strong>Updatable URLs.</strong></p><p>Once a BitTorrent magnet hash is in the wild, there is no mechanism to update or alter its resolution whatsoever. If a LBRY name is pointing to infringing content, it can be updated or removed (but not by us).</p></li>
<li><strong>Stiffer penalties. </strong>Penalties for profiting off of infringement are far stronger and can involve jail time, while infringement without profit only results in statutory damages. This serves as a far stronger deterrent for all infringing uses than BitTorrent provides.</li>
<li><p><strong>Stiffer penalties.</strong></p><p>Penalties for profiting off of infringement are far stronger and can involve jail time, while infringement without profit only results in statutory damages. This serves as a far stronger deterrent for all infringing uses than BitTorrent provides.</p></li>
<li><strong>Expensive or impossible. </strong>Off-chain settlement will be a requirement for efficient purchases at any significant network size. Settlement providers, ourselves included, will be able to block purchases for infringing content. At significant traffic volume, if infringing content can't be outright removed or blocked, transaction fees will make it prohibitively expensive.</li>
<li><p><strong>Expensive or impossible.</strong></p><p>Off-chain settlement will be a requirement for efficient purchases at any significant network size. Settlement providers, ourselves included, will be able to block purchases for infringing content. At significant traffic volume, if infringing content can't be outright removed or blocked, transaction fees will make it prohibitively expensive.</p></li>
</ol>
<p>And of course, let's not forget that LBRY users are still subject to the DMCA and other laws governing intellectual property. Users who publishing infringing content are still subject to penalties for doing so in exactly the same way they would be via BitTorrent. LBRY only adds to the suite of options available. This makes LBRY a strict improvement over BitTorrent with regards to illegal usages, which provides none of the mechanisms listed.</p>
@@ -237,15 +240,15 @@ wonderfullife<span class="token punctuation">:</span> <span class="token punctua
<p>We want to be the first digital content marketplace to:</p>
<ol>
<li><strong>Treat users like adults.</strong> LBRY doesn't play nanny. It encourages individual people to express their own preferences, rather than force our own onto them. We enable consumers to make their own choices about where and who they want to purchase digital content from.</li>
<li><p><strong>Treat users like adults.</strong></p><p>LBRY doesn't play nanny. It encourages individual people to express their own preferences, rather than force our own onto them. We enable consumers to make their own choices about where and who they want to purchase digital content from.</p></li>
<li><strong>Operate openly, inclusively, and transparently.</strong> Anyone can publish or interact with the LBRY network. No one needs permission from us or anyone else. LBRY encourages all parties to participate in the network, rather than the creation of walled gardens. LBRY is a completely open specification and all code is open source.</li>
<li><p><strong>Operate openly, inclusively, and transparently.</strong></p><p>Anyone can publish or interact with the LBRY network. No one needs permission from us or anyone else. LBRY encourages all parties to participate in the network, rather than the creation of walled gardens. LBRY is a completely open specification and all code is open source.</p></li>
<li><strong>Prove decentralization doesn't mean infringement.</strong> Existing decentralized publishing protocols offer no way for right holders to combat or capture profits from illegally shared content. LBRY's service layer, blacklisting mechanisms, and naming system all improve the status quo.</li>
<li><p><strong>Prove decentralization doesn't mean infringement.</strong></p><p>Existing decentralized publishing protocols offer no way for right holders to combat or capture profits from illegally shared content. LBRY's service layer, blacklisting mechanisms, and naming system all improve the status quo.</p></li>
<li><strong>Acknowledge modern digital realities and ethical norms.</strong> Prohibition has failed at every turn and in every iteration. Regulating human behavior only works when it aligns with moral norms that are shared by the majority of the population.<br/><br/>If it is impossible to keep drugs out of prisons, it will never be possible to enforce copyright via analogous tactics on the infinitely less-controlled internet. Instead, focus on enticement. While legal compliance is paramount, concentrate as much as possible on making a system that relies more on giving people no excuse to do the wrong thing.</li>
<li><p><strong>Acknowledge modern digital realities and ethical norms.</strong></p><p>Prohibition has failed at every turn and in every iteration. Regulating human behavior only works when it aligns with moral norms that are shared by the majority of the population.</p><p>If it is impossible to keep drugs out of prisons, it will never be possible to enforce copyright via analogous tactics on the infinitely less-controlled internet. Instead, focus on enticement. While legal compliance is paramount, concentrate as much as possible on making a system that relies more on giving people no excuse to do the wrong thing.</p></li>
<li><strong>Collect no rent.</strong> Whatever an artist or creator charges for their work should go to them. Distributing bits is exceedingly simple. There's no need to give 45% to YouTube or 30% to Apple. Collecting no rent isn't just a promise, it's hard coded. The nature of LBRY means this could never be done -- by us or anyone else.</li>
<li><p><strong>Collect no rent.</strong></p><p>Whatever an artist or creator charges for their work should go to them. Distributing bits is exceedingly simple. There's no need to give 45% to YouTube or 30% to Apple. Collecting no rent isn't just a promise, it's hard coded. The nature of LBRY means this could never be done -- by us or anyone else.</p></li>
</ol>
</div>
</section>
+1 -1
View File
@@ -3,7 +3,7 @@
<main class="ancillary">
<section class="hero" style="background-image: url(/img/hackysu2.jpg)">
<div class="inner-wrap inner-wrap--hero">
<div class="inner-wrap inner-wrap--center-hero">
<h1>LBRY Welcomes HackYSU</h1>
<h3>We're excited to share LBRY with you!</h3>
</div>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 893 KiB

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 656 KiB

+41
View File
@@ -93,6 +93,24 @@ $(document).ready(function() {
// Allow checkboxes to be checked, rather than just the label
document.querySelectorAll("checkbox-toggle").forEach(toggle => {
toggle.addEventListener("click", event => {
const siblings = event.target.parentElement.children;
for (const sibling of siblings) {
switch(true) {
case sibling.tagName.toLowerCase() === "label":
sibling.click();
break;
default:
break;
}
}
});
});
// Automatically open external links in new tabs
document.querySelectorAll("a[href]").forEach(link => {
if (link.href.indexOf(location.hostname) === -1) {
@@ -130,3 +148,26 @@ document.addEventListener("DOMContentLoaded", () => {
break;
}
});
// Fix for touchscreen devices
if ("ontouchstart" in window) {
const navigationLinks = document.querySelectorAll("drawer-title");
navigationLinks.forEach(navigationLink => {
navigationLink.ontouchstart = () => {
hideNavigationHelpers();
navigationLink.onhover.call(navigationLink);
};
});
document.querySelector("body").addEventListener("touchstart", event => {
if (event.target !== document.querySelector("drawer-navigation"))
document.querySelector("drawer-wrap").hide();
});
function hideNavigationHelpers() {
document.querySelectorAll("drawer-navigation-helper").forEach(navigationHelper => {
navigationHelper.style.display = "none";
});
}
}
-2
View File
@@ -1,2 +0,0 @@
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.3.1",w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&w.isPlainObject(n)?n:{},a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){m(e)},each:function(e,t){var n,r=0;if(C(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)(r=!t(e[o],o))!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function C(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),F=new RegExp("^"+M+"*,"+M+"*"),_=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)Line truncated
+2
View File
@@ -0,0 +1,2 @@
/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:f,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){b(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(d(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(d(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g.apply([],a)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var h=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,k="sizzle"+1*new Date,m=n.document,S=0,r=0,p=ue(),x=ue(),N=ue(),A=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",$=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+Line truncated
-12
View File
@@ -1,12 +0,0 @@
/*!
* VERSION: 1.7.5
* DATE: 2015-02-26
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=document.documentElement,e=window,i=function(i,r){var s="x"===r?"Width":"Height",n="scroll"+s,a="client"+s,o=document.body;return i===e||i===t||i===o?Math.max(t[n],o[n])-(e["inner"+s]||t[a]||o[a]):i[n]-i["offset"+s]},r=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,version:"1.7.5",init:function(t,r,s){return this._wdw=t===e,this._target=t,this._tween=s,"object"!=typeof r&&(r={y:r}),this.vars=r,this._autoKill=r.autoKill!==!1,this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=r.x?(this._addTween(this,"x",this.x,"max"===r.x?i(t,"x"):r.x,"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=r.y?(this._addTween(this,"y",this.y,"max"===r.y?i(t,"y"):r.y,"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var r=this._wdw||!this.skipX?this.getX():this.xPrev,s=this._wdw||!this.skipY?this.getY():this.yPrev,n=s-this.yPrev,a=r-this.xPrev;this._autoKill&&(!this.skipX&&(a>7||-7>a)&&i(this._target,"x")>r&&(this.skipX=!0),!this.skipY&&(n>7||-7>n)&&i(this._target,"y")>s&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[]))),this._wdw?e.scrollTo(this.skipX?r:this.x,this.skipY?s:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),s=r.prototype;r.max=i,s.getX=function(){return this._wdw?null!=e.pageXOffset?e.pageXOffset:null!=t.scrollLeft?t.scrollLeft:document.body.scrollLeft:this._target.scrollLeft},s.getY=function(){return this._wdw?null!=e.pageYOffset?e.pageYOffset:null!=t.scrollTop?t.scrollTop:document.body.scrollTop:this._target.scrollTop},s._kill=function(t){return t.scrollTo_x&&(this.skipX=!0),t.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,t)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();
+217 -183
View File
@@ -1,189 +1,179 @@
'use strict';
"use strict";
/**
* App
* Driving application.
*/
function App(api,parameters) {
this._elem = window;
this._html = document.getElementsByTagName('html')[0];
this._body = document.body;
this._elem.addEventListener('load',this._onLoad.bind(this),false);
function App(api, parameters) {
this._elem = window;
this._html = document.getElementsByTagName("html")[0];
this._body = document.body;
this._elem.addEventListener("load", this._onLoad.bind(this), false);
}
App.prototype._onLoad = function() {
// Hero button
this._button = document.getElementsByClassName('hero')[0].getElementsByClassName('button')[0];
// Header animation setup
this._points = [];
this._lines = [];
// To top button
this._toTop = document.getElementsByClassName('to-top')[0];
this._isVisible = false;
Array.prototype.slice.call(document.getElementsByClassName("shape")[0].getElementsByTagName("div"), 0).forEach(function(point, i) {
const p = new Point(point);
this._points.push(p);
// Header animation setup
this._points = [];
this._lines = [];
Array.prototype.slice.call(document.getElementsByClassName('shape')[0].getElementsByTagName('div'),0).forEach(function(point,i){
var p = new Point(point);
this._points.push(p);
var path = document.getElementsByTagName('path')[i];
var index = parseFloat(path.getAttribute('data-from'));
var origin = {x:window.innerWidth*0.4,y:0};
var from = index < 0 ? origin:this._points[index].getOffset();
var to = this._points[i].getOffset();
var l = new Line(path,from,to);
this._lines.push(l);
},this);
const path = document.getElementsByTagName("path")[i];
const index = parseFloat(path.getAttribute("data-from"));
// Section how
this._how = document.getElementsByClassName('how')[0];
this._percent = 0;
this._offset = 100;
this._journey = this._how.getElementsByClassName('journey')[0];
this._steps = Array.prototype.slice.call(this._how.getElementsByClassName('step'),0);
this._start = this._how.offsetTop - this._how.scrollTop - window.innerHeight / 2 - this._offset;
this._end = this._start + window.innerHeight / 2;
const origin = {
x: window.innerWidth * 0.4,
y: 0
};
// XHR request
this._getDataFromCoinMarketCap();
const from = index < 0 ?
origin :
this._points[index].getOffset();
// Binding events
this._bindEvents();
const to = this._points[i].getOffset();
const l = new Line(path, from, to);
this._lines.push(l);
}, this);
// Section how
this._how = document.getElementsByClassName("yt-how")[0];
this._percent = 0;
this._offset = 100;
this._journey = this._how.getElementsByClassName("journey")[0];
this._steps = Array.prototype.slice.call(this._how.getElementsByClassName("step"), 0);
this._start = this._how.offsetTop - this._how.scrollTop - window.innerHeight / 2 - this._offset;
this._end = this._start + window.innerHeight / 2;
// XHR request
this._getDataFromCoinMarketCap();
// Binding events
this._bindEvents();
};
App.prototype._getDataFromCoinMarketCap = function(e) {
this._xhr = new XMLHttpRequest();
this._xhr.addEventListener('readystatechange',this._onReadyStateChange.bind(this),false);
this._xhr.open('GET','https://api.lbry.com/lbc/exchange_rate');
this._xhr.send();
this._xhr = new XMLHttpRequest();
this._xhr.addEventListener("readystatechange", this._onReadyStateChange.bind(this), false);
this._xhr.open("GET", "https://api.lbry.com/lbc/exchange_rate");
this._xhr.send();
};
App.prototype._onReadyStateChange = function(e) {
if (this._xhr.readyState === 4) {
if (this._xhr.status === 200) {
const response = JSON.parse(this._xhr.responseText);
const lines = Array.prototype.slice.call(document.getElementsByClassName('line'),0);
const price = parseFloat(response.data.lbc_usd);
if (this._xhr.readyState === 4) {
if (this._xhr.status === 200) {
const response = JSON.parse(this._xhr.responseText);
const lines = document.querySelectorAll("[data-id*='amount-']");
const price = parseFloat(response.data.lbc_usd);
lines.forEach(function(line) {
const subscriber = line.getElementsByTagName('p')[0];
const monthly = line.getElementsByTagName('p')[1];
const amount = line.getElementsByTagName('p')[2];
const total = parseFloat(monthly.innerHTML.replace(new RegExp(',', 'g'), '')) * price;
lines.forEach(function(line) {
const amount = line.dataset.id.split("-")[1];
const total = amount * price;
amount.innerHTML = this._addCommas(total.toFixed(2)) + ' <i>USD</i>';
},this);
line.innerHTML = this._addCommas(total.toFixed(2)) + " <small class='meta'>USD</small>";
}, this);
document.getElementsByClassName('current-value')[0].innerHTML = "(" + price.toFixed(4) + " USD)";
}
document.getElementsByClassName("current-value")[0].innerHTML = `(${price.toFixed(4)} USD)`;
}
}
};
App.prototype._addCommas = function(nStr) {
nStr += '';
var x = nStr.split('.');
var x1 = x[0];
var x2 = x.length > 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
nStr += "";
const rgx = /(\d+)(\d{3})/;
const x = nStr.split(".");
const x2 = x.length > 1 ?
"." + x[1] :
"";
let x1 = x[0];
while (rgx.test(x1))
x1 = x1.replace(rgx, "$1" + "," + "$2");
return x1 + x2;
};
App.prototype._bindEvents = function() {
var click = 'ontouchstart' in document ? 'touchstart':'click';
this._button.addEventListener(click,this._goToContent.bind(this),false);
this._toTop.addEventListener(click,this._goToTop.bind(this),false);
TweenMax.ticker.addEventListener('tick',this._onTick.bind(this));
this._elem.addEventListener('resize',this._onResize.bind(this),false);
};
App.prototype._goToContent = function() {
TweenMax.to(this._elem,0.8,{scrollTo:window.innerHeight});
};
App.prototype._goToTop = function() {
TweenMax.to(this._elem,0.8,{scrollTo:0});
};
App.prototype._onTick = function() {
// Header animation
this._points.forEach(function(point,i) {
var line = this._lines[i];
var path = line.getElement();
var index = parseFloat(path.getAttribute('data-from'));
var origin = {x:window.innerWidth*0.4,y:0};
var from = index < 0 ? origin:this._points[index].getOffset();
var to = point.getOffset();
line.draw(from,to);
},this);
// Get current scroll y position
var current = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop;
// To top animation
if (current >= window.innerHeight) {
if (!this._isVisible) {
this._isVisible = true;
TweenMax.to(this._toTop,0.4,{autoAlpha:1,ease:Quint.easeOut});
}
} else {
if (this._isVisible) {
this._isVisible = false;
TweenMax.to(this._toTop,0.4,{autoAlpha:0,ease:Quint.easeOut});
}
}
// How section animation on scroll
if (window.innerWidth > 1024) {
var percent;
if (current <= this._start) {
percent = 0;
} else if (current >= this._end) {
percent = 100;
} else {
percent = (current-this._start) / (window.innerHeight / 2) * 100;
}
this._percent += (percent - this._percent) * 0.1;
if (this._percent < 0.1) {
this._percent = 0;
} else if (this._percent > 99.9) {
this._percent = 100;
}
TweenLite.set(this._journey,{width:this._percent+'%'});
this._steps.forEach(function(step) {
var enableAt = parseFloat(step.getAttribute('data-enable'));
if (this._percent > enableAt) {
if (step.className.indexOf('enabled') !== -1) {
step.className = step.className.replace(' enabled','');
}
} else {
if (step.className.indexOf('enabled') === -1) {
step.className += ' enabled';
}
}
},this);
} else {
this._steps.forEach(function(step) {
if (step.className.indexOf('enabled') === -1) {
step.className += ' enabled';
}
},this);
}
TweenMax.ticker.addEventListener("tick", this._onTick.bind(this));
this._elem.addEventListener("resize", this._onResize.bind(this), false);
};
App.prototype._onResize = function() {
this._points.forEach(function(point,i) {
point.resetOrigin();
},this);
this._start = this._how.offsetTop - this._how.scrollTop - window.innerHeight / 2 - this._offset;
this._end = this._start + window.innerHeight / 2;
this._points.forEach(function(point, i) {
point.resetOrigin();
}, this);
this._start = this._how.offsetTop - this._how.scrollTop - window.innerHeight / 2 - this._offset;
this._end = this._start + window.innerHeight / 2;
};
App.prototype._onTick = function() {
// Header animation
this._points.forEach(function(point, i) {
const line = this._lines[i];
const path = line.getElement();
const index = parseFloat(path.getAttribute("data-from"));
const origin = {
x: window.innerWidth * 0.4,
y: 0
};
const from = index < 0 ?
origin :
this._points[index].getOffset();
const to = point.getOffset();
line.draw(from, to);
}, this);
// Get current scroll y position
const current = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop;
// How section animation on scroll
if (window.innerWidth > 1024) {
let percent;
if (current <= this._start) {
percent = 0;
} else if (current >= this._end) {
percent = 100;
} else {
percent = (current-this._start) / (window.innerHeight / 2) * 100;
}
this._percent += (percent - this._percent) * 0.1;
if (this._percent < 0.1)
this._percent = 0;
else if (this._percent > 99.9)
this._percent = 100;
TweenLite.set(this._journey, {
width: this._percent + "%"
});
this._steps.forEach(function(step) {
const enableAt = parseFloat(step.getAttribute("data-enable"));
if (this._percent > enableAt) {
if (step.className.indexOf("enabled") !== -1)
step.className = step.className.replace(" enabled", "");
} else {
if (step.className.indexOf("enabled") === -1)
step.className += " enabled";
}
}, this);
} else {
this._steps.forEach(function(step) {
if (step.className.indexOf("enabled") === -1)
step.className += " enabled";
}, this);
}
};
@@ -193,57 +183,101 @@ App.prototype._onResize = function() {
* Header animation
*/
function Point(elem) {
this._elem = elem;
this._originX = this._elem.offsetLeft - this._elem.scrollLeft + this._elem.offsetWidth / 2;
this._originY = this._elem.offsetTop - this._elem.scrollTop + this._elem.offsetHeight / 2;
this._x = 0;
this._y = 0;
if (this._elem.className.indexOf('circle') !== -1) {
this._move();
}
this._elem = elem;
this._originX = this._elem.offsetLeft - this._elem.scrollLeft + this._elem.offsetWidth / 2;
this._originY = this._elem.offsetTop - this._elem.scrollTop + this._elem.offsetHeight / 2;
this._x = 0;
this._y = 0;
if (this._elem.className.indexOf("circle") !== -1)
this._move();
}
Point.prototype._move = function() {
var distance = 20;
TweenLite.to(this._elem,3+3*Math.random(),{x:-distance+Math.random()*(distance*2),y:-distance+Math.random()*(distance*2),ease:Power2.easeOutIn,onUpdate:this._onUpdate,onUpdateScope:this,onComplete:this._move,onCompleteScope:this});
const distance = 20;
TweenLite.to(this._elem, 3 + 3 * Math.random(), {
x: -distance + Math.random() * (distance * 2),
y: -distance + Math.random() * (distance * 2),
ease: Power2.easeOutIn,
onUpdate: this._onUpdate,
onUpdateScope: this,
onComplete: this._move,
onCompleteScope: this
});
};
Point.prototype._onUpdate = function() {
this._x = this._elem._gsTransform.x;
this._y = this._elem._gsTransform.y;
this._x = this._elem._gsTransform.x;
this._y = this._elem._gsTransform.y;
};
Point.prototype.getOffset = function() {
return {
x: this._originX + this._x,
y: this._originY + this._y
}
return {
x: this._originX + this._x,
y: this._originY + this._y
}
};
Point.prototype.resetOrigin = function() {
this._originX = this._elem.offsetLeft - this._elem.scrollLeft + this._elem.offsetWidth / 2;
this._originY = this._elem.offsetTop - this._elem.scrollTop + this._elem.offsetHeight / 2;
this._originX = this._elem.offsetLeft - this._elem.scrollLeft + this._elem.offsetWidth / 2;
this._originY = this._elem.offsetTop - this._elem.scrollTop + this._elem.offsetHeight / 2;
};
/**
* Line
* Header animation
*/
function Line(elem,from,to) {
this._elem = elem;
this.draw(from,to);
function Line(elem, from, to) {
this._elem = elem;
this.draw(from,to);
}
Line.prototype.getElement = function() {
return this._elem;
return this._elem;
};
Line.prototype.draw = function(from,to) {
this._elem.setAttribute('d','M '+from.x+','+from.y+' L '+to.x+','+to.y);
Line.prototype.draw = function(from, to) {
this._elem.setAttribute("d", "M " + from.x + "," + from.y + " L " + to.x + "," + to.y);
};
// Let's start :)
var app = new App();
new App();
// Clicking CTAs introduces a smooth scroll to the appropriate section
const youtubeCtas = document.querySelectorAll("[data-id='scroll-to-claim']");
youtubeCtas.forEach(cta => {
cta.onclick = () => {
const element = document.getElementById("claim-section");
const elementOffset = element.offsetTop - 2;
window.scroll({ top: elementOffset, behavior: "smooth" });
setTimeout(() => { // give the scroll time to finish before focusing
document.getElementById("lbry_channel_name").focus();
}, 300);
};
});
// Scroll to error messages if they exist
window.addEventListener("load", (event) => {
const youtubeErrors = document.querySelectorAll(".error-block");
youtubeErrors.forEach(error => {
if (!error.hidden) {
const errorDivOffset = error.offsetTop;
window.scroll({ top: errorDivOffset });
return;
}
});
});
+7 -5
View File
@@ -1,8 +1,10 @@
"use strict";
function playVideo(id) {
var myVideo = document.getElementById(id);
const video = document.getElementById(id);
myVideo.play();
$('#' + id).prop("controls", true);
$('#play-' + id).hide();
}
video.play();
video.controls = true;
}
+34 -3
View File
@@ -27,7 +27,13 @@ h2,
h3,
h4,
h5 {
font-weight: 600;
&:not(.weight-light):not(.weight-normal) {
font-weight: 600;
}
&.weight-light {
font-weight: 200;
}
}
h1 {
@@ -75,7 +81,7 @@ h4 {
font-size: 1rem;
}
margin-bottom: 1rem;
// margin-bottom: 1rem;
}
hr {
@@ -141,6 +147,10 @@ video {
width: 100%;
}
input::placeholder {
opacity: 0.4;
}
.button--google-play {
@@ -180,6 +190,18 @@ video {
display: none;
}
.align-text--center {
text-align: center;
}
.align-text--left {
text-align: left;
}
.align-text--right {
text-align: right;
}
.inner-wrap {
max-width: 1200px;
margin-right: auto;
@@ -191,7 +213,7 @@ video {
text-align: center;
}
&.inner-wrap--hero {
&.inner-wrap--center-hero {
align-items: center;
display: flex;
flex-direction: column;
@@ -200,6 +222,15 @@ video {
position: relative;
}
&.inner-wrap--center-left {
align-items: flex-start;
display: flex;
flex-direction: column;
height: 100%;
justify-content: center;
position: relative;
}
&.inner-wrap--footer-bottom {
padding-top: 0.75rem;
+1
View File
@@ -23,5 +23,6 @@
@import "pages/news";
@import "pages/roadmap";
@import "pages/soon";
@import "pages/youtube";
@import "layout";
+25
View File
@@ -3,3 +3,28 @@ checkbox-element {
color: initial;
}
}
input-submit {
position: relative;
}
label {
&.symbol-prefix {
width: 2rem; height: 100%;
color: var(--lbry-gray-4);
display: block;
line-height: 2.3;
padding-left: 0.3rem;
position: absolute;
text-align: center;
+ input {
padding-left: 2rem;
}
}
a {
font-weight: 600;
}
}
+9 -2
View File
@@ -5,7 +5,6 @@
background-size: cover;
color: var(--lbry-white);
position: relative;
text-align: center;
text-shadow: 0 0 0.2rem rgba($lbry-black, 0.7);
&::before {
@@ -19,7 +18,11 @@
}
}
&:not(.hero--half-height):not(.hero--plain) {
&:not(.hero--plain):not(.hero--youtube) {
text-align: center;
}
&:not(.hero--half-height):not(.hero--plain):not(.hero--youtube) {
@media (min-width: 951px) {
height: 500px;
}
@@ -47,6 +50,10 @@
padding-top: 2rem;
}
&.hero--youtube {
height: calc(100vh - 5rem);
}
[class*="icon-"].icon-fw {
width: 3rem;
}
+59 -7
View File
@@ -22,6 +22,7 @@
margin-top: 1.25rem;
}
+ footer,
+ form,
+ h1,
+ h2,
@@ -80,8 +81,43 @@
li {
list-style-position: inherit;
&:not(:first-of-type) {
padding-top: 0.5rem;
}
&:not(:last-of-type) {
p:last-of-type {
margin-bottom: 1rem;
}
}
ol,
ul {
padding-top: 1rem;
padding-left: 1rem;
li:not(:last-of-type) {
margin-bottom: 0.5rem;
}
}
p {
display: inline;
display: inline-block;
&.join-us-fix {
margin-top: -2rem;
padding-left: 1.25rem;
}
&:not(:first-of-type) {
padding-top: 0.5rem;
padding-left: 1.25rem;
}
}
table {
display: inline-block;
padding-left: 1.25rem;
}
}
}
@@ -95,12 +131,9 @@
}
ul {
&:not(.download-cards) {
padding-left: 1.3rem;
}
&:not(.download-cards):not(.news-items) {
&:not(.bulletless) {
list-style-type: disc;
padding-left: 1.3rem;
}
}
@@ -126,6 +159,10 @@
width: 100%;
}
pre {
margin-top: 1.25rem;
}
blockquote {
padding: 1rem 0 1rem 2rem;
position: relative;
@@ -175,8 +212,15 @@
min-width: 12rem; min-height: 12rem;
margin-bottom: 1rem;
max-height: 25rem;
object-fit: contain;
&:not(.tall) {
max-height: 25rem;
}
&.tall {
max-height: 50rem;
}
}
}
@@ -196,6 +240,14 @@
table {
margin-bottom: 1rem;
padding-top: 1rem;
ul {
margin: 0 !important; padding: 0 !important;
li {
margin: 0 !important; padding: 0 !important;
}
}
}
video {
+451
View File
@@ -0,0 +1,451 @@
$lbry-yt-blue: mix($lbry-blue-5, $lbry-black, 50%);
.ytsync-previews {
display: flex;
justify-content: space-between;
padding-top: 1.25rem;
@media (max-width: 950px) {
flex-direction: column;
}
}
.ytsync-preview {
position: relative;
@media (min-width: 951px) {
width: 33%;
}
&:not(:hover) {
&::before {
opacity: 0;
}
}
&:hover {
&::before {
opacity: 1;
}
}
&::before {
width: 0; height: 0;
border-top: 2rem solid transparent;
border-bottom: 2rem solid transparent;
border-left: 3.5rem solid var(--lbry-white);
content: "";
pointer-events: none;
position: absolute;
top: calc(50% - 3rem);
transition: opacity 0.2s;
}
video {
cursor: pointer;
margin-bottom: 0.5rem;
}
}
.v-card {
display: flex;
figure {
margin-bottom: 0;
margin-right: 1.25rem;
width: 12rem;
}
info {
display: block;
padding-top: 4rem;
}
}
.error-block,
.sync-status {
margin: 0 auto 0.5rem; padding: 0.5rem 0.75rem;
border-style: solid;
border-width: 1px;
font-size: 0.8rem;
@media (min-width: 951px) {
max-width: 80%;
}
}
.error-block {
background-color: var(--lbry-red-4);
border-color: var(--lbry-red-5);
color: var(--lbry-white);
a {
color: inherit !important;
font-weight: 600;
}
}
.sync-status {
background-color: rgba($lbry-black, 0.05);
border-color: var(--lbry-gray-3);
}
.hero--youtube {
.shape {
width: 100%; height: 100%;
top: 0; left: 0;
position: absolute;
svg {
width: 100%; height: 100%;
path {
fill: none;
stroke: $lbry-yt-blue;
stroke-width: 0.3px;
}
}
.circle,
.dot {
width: 60px; height: 60px;
background-color: $lbry-yt-blue;
border-radius: 50%;
margin: -30px 0 0 -30px;
position: absolute;
}
.circle {
background-color: $lbry-yt-blue;
background-position: center;
background-repeat: no-repeat;
box-shadow: 0 10px 50px 0 rgba($lbry-black, 0.25);
&.one {
width: 76px; height: 76px;
top: 31%; left: 50%;
background-image: url("../img/youtube/core@2x.png");
background-size: 25px;
margin: -38px 0 0 -38px;
}
&.two {
top: 20%; left: 75%;
background-image: url("../img/youtube/video@2x.png");
background-size: 15px;
}
&.three {
top: 73%; left: 82%;
background-image: url("../img/youtube/music@2x.png");
background-size: 13px;
}
}
.dot {
width: 6px; height: 6px;
margin: -3px 0 0 -3px;
&.a {
top: 34%; left: 72%;
}
&.b {
top: 27%; left: 80%;
}
&.c {
top: 81%; left: 75%;
}
&.d {
top: 92%; left: 76%;
}
&.e {
top: 81%; left: 93%;
}
&.f {
top: 109%; left: 90%;
}
}
}
button {
&:hover {
color: initial;
}
}
}
.youtube {
&.youtube--landing {
section {
&:nth-child(odd) {
background-color: rgba($lbry-black, 0.05);
}
}
input-submit {
margin-right: auto;
margin-left: auto;
@media (min-width: 951px) {
max-width: 80%;
}
}
}
.channel {
h2 {
@media (min-width: 951px) {
text-align: center;
}
}
}
.confirmation-steps {
padding-top: 1rem;
ul {
display: flex;
margin-bottom: 3rem;
@media (min-width: 951px) {
flex-direction: row;
}
@media (max-width: 950px) {
flex-direction: column;
}
}
li {
@media (min-width: 951px) {
text-align: center;
width: 33%;
}
@media (max-width: 950px) {
width: 100%;
&:not(:last-of-type) {
margin-bottom: 1rem;
}
}
&:not(.disabled) {
span {
background-color: var(--lbry-teal-3);
padding-top: 0.5rem;
}
}
&.disabled {
span {
background-color: var(--lbry-gray-3);
padding-top: 0.5rem;
// Mobile Safari override
@media not all and (min-resolution: 0.001dpcm) {
font-size: 1rem;
padding-top: 1rem;
}
}
}
p {
@media (max-width: 950px) {
display: inline-block;
position: relative;
top: -0.3rem;
}
}
span {
width: 3rem; height: 3rem;
border-radius: 50%;
color: var(--lbry-white);
cursor: default;
font-size: 2rem;
line-height: 1;
text-align: center;
@media (min-width: 951px) {
display: block;
margin: 0 auto 0.5rem;
}
@media (max-width: 950px) {
display: inline-block;
margin-right: 0.5rem;
}
}
}
}
section {
&.hero {
margin-bottom: 0;
}
&:not(.hero) {
margin-bottom: 0;
padding-top: 3rem;
padding-bottom: 3rem;
}
}
fieldset-group {
@media (max-width: 950px) {
flex-direction: column;
fieldset-section {
width: 100%;
}
}
}
checkbox-element {
&[disabled] {
checkbox-toggle {
border-color: initial;
opacity: 0.3;
}
label {
opacity: 0.3;
a {
pointer-events: initial;
}
}
}
&[hidden] {
display: none;
}
}
}
.yt-how {
ol {
@media (min-width: 951px) {
display: none;
}
}
.steps {
width: 100%; height: 260px;
margin-top: 80px;
position: relative;
@media (max-width: 950px) {
display: none;
}
.journey,
.path {
background-position: 0 0;
background-repeat: no-repeat;
background-size: 752px;
height: 287px;
position: absolute;
}
.journey {
top: 0; left: 0;
background-image: url("../img/youtube/path-complete@2x.png");
overflow: hidden;
width: 120px;
}
.path {
top: -52px; left: 0;
background-image: url("../img/youtube/path@2x.png");
width: 752px;
}
}
.step {
position: absolute;
&.enabled {
.circle {
background-color: var(--lbry-gray-5);
}
.text {
color: var(--lbry-gray-5);
}
}
&.one {
top: 0; left: 60px;
.text {
width: 226px;
}
}
&.two {
top: 160px; left: 225px;
.text {
width: 552px;
}
}
&.three {
top: 0; left: 550px;
.text {
width: 390px;
}
}
.circle {
width: 62px; height: 62px;
top: 0; left: 0;
background-color: $lbry-yt-blue;
border-radius: 50%;
box-shadow: 0 20px 50px 0 rgba($lbry-black, 0.15);
color: var(--lbry-white);
font-size: 24px;
font-weight: 600;
line-height: 62px;
position: absolute;
text-align: center;
transition: background-color 0.4s;
}
.text {
top: 0; left: 82px;
color: $lbry-yt-blue;
font-size: 18px;
font-weight: 600;
line-height: 3.4;
position: absolute;
transition: color 0.4s;
}
}
}
File diff suppressed because it is too large. Load diff