Skip to content

Commit

Permalink
upd share
Browse files Browse the repository at this point in the history
  • Loading branch information
14zy committed May 29, 2024
1 parent f871190 commit 67eff2a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
9 changes: 5 additions & 4 deletions clicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ <h5 class="currentSetTitle"></h5>
<!-- Banner Section -->
<div class="container">
<div class="col-md-12 banner-inner-wrapper p-0 m-0" >
Guess the painters to earn tokens

<div class="banner-text">
<div class='row'>

Expand All @@ -251,7 +251,7 @@ <h5 class="currentSetTitle"></h5>
<img id="art">

<div class="top-icons">
<!-- <span id="icon1" class="glyphicon glyphicon-ok-circle"></span>
<span id="icon1" class="glyphicon glyphicon-ok-circle"></span>
<span id="icon2" class="glyphicon glyphicon-ok-circle"></span>
<span id="icon3" class="glyphicon glyphicon-ok-circle"></span>
<span id="icon4" class="glyphicon glyphicon-ok-circle"></span>
Expand All @@ -260,13 +260,14 @@ <h5 class="currentSetTitle"></h5>
<span id="icon7" class="glyphicon glyphicon-ok-circle"></span>
<span id="icon8" class="glyphicon glyphicon-ok-circle"></span>
<span id="icon9" class="glyphicon glyphicon-ok-circle"></span>
<span id="icon10" class="glyphicon glyphicon-gift"></span> -->
<span id="icon10" class="glyphicon glyphicon-gift"></span>

<br>

Rewards: 0.0<span id="iconNumber" class="">0</span> RubeTON
<br>
<!-- <div id="ton-connect"></div> -->
Register at <a href="https://wallet.rubeton.app">wallet.rubeton.app</a> to receive
<!-- Register <a href="https://wallet.rubeton.app">wallet.rubeton.app</a> to receive it -->
<!-- <img src="images/Screenshot 2567-05-25 at 14.50.26.png" width="50%" style=> </a> -->
</div>

Expand Down
41 changes: 23 additions & 18 deletions js/engine-clicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,10 @@ function getShares() {
case "ru":
shares = "<div style='padding: 0px'>\
<button type='button' class='btn btn-info btn-share' aria-label='Facebook' onclick='ShareFB();'>\
<span class='glyphicon glyphicon-share-alt' aria-hidden='true'></span> Facebook\
<span class='glyphicon glyphicon-share-alt' aria-hidden='true'></span> Mint NFT Medal\
</button>\
<button type='button' class='btn btn-info btn-share' aria-label='ВКонтакте' onclick='ShareVK();'>\
<span class='glyphicon glyphicon-share-alt' aria-hidden='true'></span> ВКонтакте\
<span class='glyphicon glyphicon-share-alt' aria-hidden='true'></span> Register RubeTON Wallet \
</button>\
</div>";
break;
Expand All @@ -707,15 +707,18 @@ function getShares() {
}

function ShareFB() {
url = "https://www.facebook.com/dialog/feed?app_id=478531102278887&display=popup&link=https://artchallenge.ru/?utm_source=fb-win&redirect_uri=https://artchallenge.ru/1.html&picture=" + "https://artchallenge.ru/share.jpg" + "&source=" + "https://artchallenge.ru/share.jpg"+"&name=" + i18n.t("shares.title", {
lng: window.lang
}) + "&caption=" + i18n.t("shares.caption", {
lng: window.lang
}) + "&description=" + i18n.t("shares.description", {
lng: window.lang
});
window.open(url, 'targetWindow', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=604,height=401');
yaCounter24594722.reachGoal('WINNER-SHARE-FB');

window.location.href = "https://getgems.io/rubeton";

// url = "https://www.facebook.com/dialog/feed?app_id=478531102278887&display=popup&link=https://artchallenge.ru/?utm_source=fb-win&redirect_uri=https://artchallenge.ru/1.html&picture=" + "https://artchallenge.ru/share.jpg" + "&source=" + "https://artchallenge.ru/share.jpg"+"&name=" + i18n.t("shares.title", {
// lng: window.lang
// }) + "&caption=" + i18n.t("shares.caption", {
// lng: window.lang
// }) + "&description=" + i18n.t("shares.description", {
// lng: window.lang
// });
// window.open(url, 'targetWindow', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=604,height=401');
// yaCounter24594722.reachGoal('WINNER-SHARE-FB');
}
//
// function ShareTW() {
Expand All @@ -728,13 +731,15 @@ function ShareFB() {

function ShareVK() {

url = "https://vk.com/share.php?url=https://artchallenge.ru/?utm_source=vk-win&title=" + i18n.t("shares.description", {
lng: window.lang
}) + " %23ArtChallenge&description=" + i18n.t("shares.caption", {
lng: window.lang
}) + "&image=" + "https://artchallenge.ru/share.jpg" + "&noparse=true";
window.open(url, 'targetWindow', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=604,height=401');
yaCounter24594722.reachGoal('WINNER-SHARE-VK');
window.location.href = "https://wallet.rubeton.app";

// url = "https://vk.com/share.php?url=https://artchallenge.ru/?utm_source=vk-win&title=" + i18n.t("shares.description", {
// lng: window.lang
// }) + " %23ArtChallenge&description=" + i18n.t("shares.caption", {
// lng: window.lang
// }) + "&image=" + "https://artchallenge.ru/share.jpg" + "&noparse=true";
// window.open(url, 'targetWindow', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=604,height=401');
// yaCounter24594722.reachGoal('WINNER-SHARE-VK');
}
//
// function ShareOD() {
Expand Down

0 comments on commit 67eff2a

Please sign in to comment.