Skip to content

Commit

Permalink
Added Plan Sharing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
VlasovAlexey committed Mar 13, 2024
1 parent 0011d0c commit 3f44d2d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 418 deletions.
1 change: 1 addition & 0 deletions HTML_SRC/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1751,6 +1751,7 @@
<div class="div_block_bottom">
<div id="profile_chart" class="profile_chart"></div>
<button type="button" id="btn_export_pdf_profile" class="btn_export_pdf_profile" onClick="btn_export_pdf();">Export PDF!</button>
<button type="button" onClick="btn_link();" id="btn_link" class="btn_link">Share Your Plan</button>
</div>
<div class="div_block_bottom">
<div id="t_table" class="t_table"></div>
Expand Down
16 changes: 16 additions & 0 deletions HTML_SRC/lng_fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@
lang = {
1: {
//Eng
".btn_link" : "Share Your Plan",

".btn_bailout" : "Bailout",
".btn_diluent" : "Diluent",

Expand Down Expand Up @@ -399,6 +401,7 @@

//Rus
2: {
".btn_link" : "Поделиться свои планом",
".btn_bailout" : "Бейлаут",
".btn_diluent" : "Дилуэнт",

Expand Down Expand Up @@ -611,6 +614,8 @@

//Spa
3: {
".btn_link" : "Comparta su Plan",

".btn_bailout" : "Rescate",
".btn_diluent" : "Diluyente",

Expand Down Expand Up @@ -817,6 +822,8 @@
},
4: {
//Prt
".btn_link" : "Partilhar o Plano",

".btn_bailout" : "Bailout",
".btn_diluent" : "Diluente",

Expand Down Expand Up @@ -1024,6 +1031,7 @@
},
5 : {
//China
".btn_link" : "分享你的计划",

".btn_bailout" : "逃生气体",
".btn_diluent" : "稀释气体",
Expand Down Expand Up @@ -1231,6 +1239,8 @@
},
6 : {
//Bulgarian
".btn_link" : "Споделете вашия план",

".btn_bailout" : "Аварийна",
".btn_diluent" : "Смесителна",
".tn_plan_oc" : "Отворен цикъл",
Expand Down Expand Up @@ -1410,6 +1420,8 @@
},
7: {
//Fr
".btn_link" : "Partager votre plan",

".btn_bailout" : "Bailout",
".btn_diluent" : "Diluant",
".tn_plan_oc" : "Circuit ouvert",
Expand Down Expand Up @@ -1589,6 +1601,8 @@
},
8: {
//Korean
".btn_link" : "계획 공유",

".btn_bailout" : "Bailout",
".btn_diluent" : "Diluent",
".tn_plan_oc" : "Open Circuit",
Expand Down Expand Up @@ -1768,6 +1782,8 @@
},
9: {
//Italian
".btn_link" : "Condividi il tuo Piano",

".btn_bailout" : "Bailout",
".btn_diluent" : "Diluente",
".tn_plan_oc" : "Circuito Aperto",
Expand Down
5 changes: 5 additions & 0 deletions HTML_SRC/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
var dive = require("/dive_comp.js");
init_global();

function btn_link() {

//put to clipboard plan
navigator.clipboard.writeText("test_text");
}

function upd_altitide() {
abs_press[0] = height_to_bar();
Expand Down
Loading

0 comments on commit 3f44d2d

Please sign in to comment.