diff --git a/helpers.js b/helpers.js
index 9e7faee..372e9f1 100644
--- a/helpers.js
+++ b/helpers.js
@@ -36,4 +36,12 @@ function nl2br(str, is_xhtml) {
function scrollWindowDown() {
window.scrollTo(0, document.body.scrollHeight)
+}
+
+function inIframe() {
+ try {
+ return window.self !== window.top;
+ } catch (e) {
+ return true;
+ }
}
\ No newline at end of file
diff --git a/index.php b/index.php
index af20566..1d2f6bc 100644
--- a/index.php
+++ b/index.php
@@ -16,6 +16,9 @@
+
diff --git a/main.css b/main.css
index 9836aa4..d6116a7 100644
--- a/main.css
+++ b/main.css
@@ -135,6 +135,15 @@ body {
background: none;
}
+.modal__info_url {
+ text-align: center;
+ visibility: hidden;
+}
+
+.modal__info_url a {
+ color: white;
+}
+
@media (max-width: 640px) {
.chat {
padding: 10px 10px 50px 10px;
diff --git a/main.js b/main.js
index 5067df2..d664656 100644
--- a/main.js
+++ b/main.js
@@ -110,3 +110,7 @@ getMessages()
setInterval(function () {
getMessages()
}, 2000)
+
+if (inIframe()) {
+ document.querySelector('.modal__info_url').style.visibility = 'visible';
+}
\ No newline at end of file