diff --git a/view/template/acquisition/youtube.php b/view/template/acquisition/youtube.php index a747cb3f..53bb706c 100644 --- a/view/template/acquisition/youtube.php +++ b/view/template/acquisition/youtube.php @@ -5,6 +5,7 @@ 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'); $reward = LBRY::youtubeReward(); Response::setMetaTitle("LBRY YouTube Partner Program"); Response::setMetaDescription("Put your content on the blockchain, experience true content freedom, and earn rewards."); @@ -75,28 +76,30 @@ Response::setMetaDescription("Put your content on the blockchain, experience tru

Take your peers and your audience with you. Create without limits.

- - -
-
+
+
+ +
+

@3Blue1Brown

- - -
-
+
+
+ +
+

@CasuallyExplained

- - -
-
+
+
+ +

@ColinsLastStand

@@ -136,6 +139,7 @@ Response::setMetaDescription("Put your content on the blockchain, experience tru

Sync & Earn

LBRY offers a single-click sync process
for existing YouTubers

+ diff --git a/view/template/acquisition/youtube_status.php b/view/template/acquisition/youtube_status.php index 08ddf135..f1278126 100644 --- a/view/template/acquisition/youtube_status.php +++ b/view/template/acquisition/youtube_status.php @@ -2,17 +2,19 @@ + + - +
- -
Your email address is set as xxx@plusgoogle.com.
If this is not your email address, please change it below.
+ +
Your email address is set as .
If this is not your email address, please change it below.

@@ -22,14 +24,15 @@

Confirm your channel

-
  • +
  • ">

    Agree to sync

    +

    >click here to agree to sync your content

  • -
  • +
  • ">

    Claim your credits

    -

    To get your credits, download the app and follow these instructions.

    +

    >To get your credits, download the app and follow these instructions.

  • @@ -49,17 +52,17 @@

    Subscribers
    - +

    Videos
    - +

    Expected Rewards
    - +

    @@ -89,10 +92,10 @@
    -
    +
    +
    diff --git a/web/js/yt2/FormValidation.js b/web/js/yt2/FormValidation.js index bda85b75..0d5016e5 100644 --- a/web/js/yt2/FormValidation.js +++ b/web/js/yt2/FormValidation.js @@ -23,7 +23,7 @@ function submitEditForm(){ $('#email-error').show(); event.preventDefault(); } - else(!validateEmailIsNotGooglePlus(email)){ + else if(!validateEmailIsNotGooglePlus(email)){ $('#email').addClass('error_form'); if(is_first_time){ @@ -73,6 +73,6 @@ function validateYoutubeChannelUrl(youtube_channel_url){ } function validateEmailIsNotGooglePlus(email){ - var re = /^[A-Za-z0-9._%+-]+@(?!plusgoogle.com)[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/+g; + var re = /^[A-Za-z0-9._%+-]+@(?!plusgoogle.com)[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/; return re.test(email); } \ No newline at end of file diff --git a/web/js/yt2/youtube_status.js b/web/js/yt2/youtube_status.js new file mode 100644 index 00000000..a6ad990c --- /dev/null +++ b/web/js/yt2/youtube_status.js @@ -0,0 +1,14 @@ +$("#scroll_email").click(function () { + $('html, body').animate({ + scrollTop: $("#email").offset().top + }, 2000); + $('#email').select(); + $("#email").focus(); + +}); + +$("#scroll-sync").click(function () { + $('html, body').animate({ + scrollTop: $("#sync-consent").offset().top + }, 2000); +}); \ No newline at end of file diff --git a/web/js/yt2/youtube_video.js b/web/js/yt2/youtube_video.js new file mode 100644 index 00000000..0a36d2af --- /dev/null +++ b/web/js/yt2/youtube_video.js @@ -0,0 +1,31 @@ + +function playVideo1(){ + var myVideo = document.getElementById("video1"); + if (myVideo.paused){ + myVideo.play(); + } + else{ + myVideo.pause(); + } +} + +function playVideo2(){ + var myVideo = document.getElementById("video2"); + if (myVideo.paused){ + myVideo.play(); + } + else{ + myVideo.pause(); + } +} + +function playVideo3() { + var myVideo = document.getElementById("video3"); + if (myVideo.paused) { + myVideo.play(); + } + else { + myVideo.pause(); + } + +} \ No newline at end of file