<commit_before><!doctype html>
<html class="no-js" lang="en" dir="ltr">
  <head>
    <base href=".."/>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="images/favicon/favicon.png" rel="shortcut icon">
    <title>Zom Mobile Messenger</title>
    <link rel="stylesheet" href="css/foundation.min.css">
    <link rel="stylesheet" href="css/app.css">
<style>
#buttonaddfriend
{
margin:6px;
margin-left:36px;
background-color:#FFD700;
color:#FF0000;
font-size:12pt;
font-style:bold;
padding:12px;
 -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
</style>
  <link href="css/zmcs.css" rel="stylesheet" type="text/css">
    <!-- Modernizr Scripts -->
    <script src="javascript/vendor/modernizr-2.7.1.min.js"></script>
    <script src="javascript/wechat.js"></script>
  </head>
  <body>

<div class="back-top">
<div class="row">
  <div class="small-12 medium-6 large-5 columns" > 
    <p class="invited">Come Zom with me!</p>
<p class="white2">
      <a href="i/index_tibetan.html" id="linktibetan" class="white2">བོད་ཡིག</a> | <a href="i/index_chinese.html" id="linkchinese" class="white2">中文</a>
</p>
<p class="white2"><span id="contactinfo"></span> has invited you to Zom.</p>
<input type="button" id="buttonaddfriend" value="Add Friend"/>
<div id="invitelink"></div>
<p class="white2">If you don't have the app, first download &amp; install:</p>
<div>
<a href="https://itunes.apple.com/us/app/zom-mobile-messenger/id1059530167?mt=8" target="_blank"><img src="images/macdown.png"  alt="download zom" style="width:125px"></a>
<a href="https://play.google.com/store/apps/details?id=im.zom.messenger"><img src="images/androdown.png"  alt="download zom" style="width:125px"></a>
<a href="download/zom.apk" target="_blank"><img src="images/apkdown.png"  alt="download zom" style="width:125px"></a></div>
<br/>
<p class="white2">Want to see the future? <a href="https://zom.im/beta" style="color:white;"><u>Try our Zom 2.0 beta today!</u></a></p>
<p></p>
<p class="white2">
If or when you do have Zom, tap on or scan the QR code below to add your friend.
</p>
<div id="qrcode"></div>
</div>    

<div class="small-12 medium-6 large-7 columns"> 
    <img src="images/sl2.png" width="80%" style="margin-top:40px" ></div>
  </div>
</div>
 
 
 
  </div>
</div>
 
 




<div class="b3">

<div class="cont-cel">
<div class="row centered">
<p>Learn more about Zom at <a href="https://zom.im">https://zom.im</a></p>
<p>Copyright © 2018 <span class="contfeat">Zom</span>. All screenshots © their respective owners. <br>
  Privacy Policy</p>
</div>
</div>
</div>



  <script src="js/vendor/jquery.js"></script>
  <script src="js/vendor/what-input.js"></script>
  <script src="js/vendor/foundation.js"></script>
   <script src="js/app.js"></script>
<script src="js/base64.js"></script>
   <script src="javascript/qrcode/qrcode.js"></script>
<script type="text/javascript">

var language = navigator.languages && navigator.languages[0] ||
               navigator.language ||
               navigator.userLanguage;

var inviteLink = document.location.href;
inviteLink = decodeURIComponent(inviteLink.substring(inviteLink.indexOf("#")+1));

document.getElementById("linktibetan").href = "i/index_tibetan.html#" + encodeURIComponent(inviteLink);
document.getElementById("linkchinese").href = "i/index_chinese.html#" + encodeURIComponent(inviteLink);

if (language.includes("bo"))
        window.location.href = "i/index_tibetan.html#" + inviteLink;
else if (language.includes("zh"))
        window.location.href = "i/index_chinese.html#" + inviteLink;

var xmppLink = "";
var inviteUser = "";
var inviteKey = "";

if (inviteLink.startsWith("@"))
{
	inviteUser = inviteLink.substring(1).split(":")[0];
	xmppLink = "zom://invite?id=" + inviteLink;

}
else if (inviteLink.startsWith("#")||inviteLink.startsWith("!"))
{
	inviteUser = inviteLink.substring(1).split(":")[0];
	xmppLink = "zom://invite?id=" + inviteLink;
	document.getElementById("buttonaddfriend").value = "Join Group";
}
else
{
inviteLink = Base64.decode(inviteLink);

//handle safe encoding; for some reason our library doesn't
inviteLink = inviteLink.replace("_","\\");


if (inviteLink.indexOf("?")!=-1)
{
	inviteUser = inviteLink.substring(0,inviteLink.indexOf("?"));
        
//        if (inviteLink.indexOf("otr=")!=-1)
//		inviteKey = inviteLink.substring(inviteLink.indexOf("otr=")+4).substring(0,40);

	nxmppLink = "xmpp:" + inviteUser + "?subscribe&otr-fingerprint=";
//&otr-fingerprint=" + inviteKey;
}
else
{
	xmppLink = "xmpp:" + inviteLink + "?subscribe&otr-fingerprint=";
	inviteUser = inviteLink;
}
}

	document.getElementById("contactinfo").innerHTML="<a style=\"color:white\" href=\"" + xmppLink + "\">" + inviteUser + "</a>";
//	document.getElementById("invitelink").innerHTML=xmppLink;<commit_msg>support group invite links better<commit_after><!doctype html>
<html class="no-js" lang="en" dir="ltr">
  <head>
    <base href=".."/>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="images/favicon/favicon.png" rel="shortcut icon">
    <title>Zom Mobile Messenger</title>
    <link rel="stylesheet" href="css/foundation.min.css">
    <link rel="stylesheet" href="css/app.css">
<style>
#buttonaddfriend
{
margin:6px;
margin-left:36px;
background-color:#FFD700;
color:#FF0000;
font-size:12pt;
font-style:bold;
padding:12px;
 -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
</style>
  <link href="css/zmcs.css" rel="stylesheet" type="text/css">
    <!-- Modernizr Scripts -->
    <script src="javascript/vendor/modernizr-2.7.1.min.js"></script>
    <script src="javascript/wechat.js"></script>
  </head>
  <body>

<div class="back-top">
<div class="row">
  <div class="small-12 medium-6 large-5 columns" > 
    <p class="invited">Come Zom with me!</p>
<p class="white2">
      <a href="i/index_tibetan.html" id="linktibetan" class="white2">བོད་ཡིག</a> | <a href="i/index_chinese.html" id="linkchinese" class="white2">中文</a>
</p>
<p class="white2"><span id="contactinfo"></span> has invited you to Zom.</p>
<input type="button" id="buttonaddfriend" value="Add Friend"/>
<div id="invitelink"></div>
<p class="white2">If you don't have the app, first download &amp; install:</p>
<div>
<a href="https://itunes.apple.com/us/app/zom-mobile-messenger/id1059530167?mt=8" target="_blank"><img src="images/macdown.png"  alt="download zom" style="width:125px"></a>
<a href="https://play.google.com/store/apps/details?id=im.zom.messenger"><img src="images/androdown.png"  alt="download zom" style="width:125px"></a>
<a href="download/zom.apk" target="_blank"><img src="images/apkdown.png"  alt="download zom" style="width:125px"></a></div>
<br/>
<p class="white2">Want to see the future? <a href="https://zom.im/beta" style="color:white;"><u>Try our Zom 2.0 beta today!</u></a></p>
<p></p>
<p class="white2">
If or when you do have Zom, tap on or scan the QR code below to add your friend.
</p>
<div id="qrcode"></div>
</div>    

<div class="small-12 medium-6 large-7 columns"> 
    <img src="images/sl2.png" width="80%" style="margin-top:40px" ></div>
  </div>
</div>
 
 
 
  </div>
</div>
 
 




<div class="b3">

<div class="cont-cel">
<div class="row centered">
<p>Learn more about Zom at <a href="https://zom.im">https://zom.im</a></p>
<p>Copyright © 2018 <span class="contfeat">Zom</span>. All screenshots © their respective owners. <br>
  Privacy Policy</p>
</div>
</div>
</div>



  <script src="js/vendor/jquery.js"></script>
  <script src="js/vendor/what-input.js"></script>
  <script src="js/vendor/foundation.js"></script>
   <script src="js/app.js"></script>
<script src="js/base64.js"></script>
   <script src="javascript/qrcode/qrcode.js"></script>
<script type="text/javascript">

var language = navigator.languages && navigator.languages[0] ||
               navigator.language ||
               navigator.userLanguage;

var inviteLink = document.location.href;
inviteLink = decodeURIComponent(inviteLink.substring(inviteLink.indexOf("#")+1));

document.getElementById("linktibetan").href = "i/index_tibetan.html#" + encodeURIComponent(inviteLink);
document.getElementById("linkchinese").href = "i/index_chinese.html#" + encodeURIComponent(inviteLink);

if (language.includes("bo"))
        window.location.href = "i/index_tibetan.html#" + inviteLink;
else if (language.includes("zh"))
        window.location.href = "i/index_chinese.html#" + inviteLink;

var xmppLink = "";
var inviteUser = "";
var inviteKey = "";

if (inviteLink.startsWith("@"))
{
	inviteUser = inviteLink.substring(1).split(":")[0];
	xmppLink = "zom://invite?id=" + inviteLink;
	document.getElementById("contactinfo").innerHTML="<a style=\"color:white\" href=\"" + xmppLink + "\">" + inviteUser + "</a>";
}
else if (inviteLink.startsWith("#")||inviteLink.startsWith("!"))
{
	inviteUser = inviteLink.substring(1).split(":")[0];
	xmppLink = "zom://invite?id=" + inviteLink;
	document.getElementById("buttonaddfriend").value = "Join Group";
	document.getElementById("contactinfo").innerHTML="<a style=\"color:white\" href=\"" + xmppLink + "\">A group</a>";
}
else
{
inviteLink = Base64.decode(inviteLink);

//handle safe encoding; for some reason our library doesn't
inviteLink = inviteLink.replace("_","\\");


if (inviteLink.indexOf("?")!=-1)
{
	inviteUser = inviteLink.substring(0,inviteLink.indexOf("?"));
        
//        if (inviteLink.indexOf("otr=")!=-1)
//		inviteKey = inviteLink.substring(inviteLink.indexOf("otr=")+4).substring(0,40);

	nxmppLink = "xmpp:" + inviteUser + "?subscribe&otr-fingerprint=";
//&otr-fingerprint=" + inviteKey;
}
else
{
	xmppLink = "xmpp:" + inviteLink + "?subscribe&otr-fingerprint=";
	inviteUser = inviteLink;
}
}

//	document.getElementById("invitelink").innerHTML=xmppLink;
{'fraction_non_alphanumeric': 0.20523623232019259, 'fraction_numerical': 0.017454107733975325, 'mean_word_length': 4.899408284023669, 'pattern_counts': {'":': 4, '<': 213, '<?xml version=': 0, '>': 213, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '856905', 'n_tokens_mistral': 3753, 'n_tokens_neox': 3614, 'n_words': 659}