-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66304fd
commit 8f4b012
Showing
8 changed files
with
2,579 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><title></title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
var SloginTelegram = { | ||
url: '', | ||
auth: function (data){ | ||
var json = JSON.stringify(data); | ||
var form = document.createElement('form'); | ||
form.setAttribute("id", "telegramAuthForm"); | ||
form.setAttribute("method", "post"); | ||
form.setAttribute("action", SloginTelegram.url); | ||
var input = document.createElement('input'); | ||
input.setAttribute("type", "hidden"); | ||
input.setAttribute("name", "data"); | ||
input.setAttribute("value", json); | ||
form.appendChild(input); | ||
document.getElementsByTagName("body")[0].appendChild(form); | ||
document.getElementById('telegramAuthForm').submit(); | ||
} | ||
}; |
Oops, something went wrong.