Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <br>
- <p style="text-align: center; margin-top:10px;"><a href="ts3server:5.39.54.196" class="VGB1" id="TS3Link">Click to join Teamspeak</a></p>
- <br>
- <p style="text-align: center; margin-top:10px;"><a href="#" class="VGB2" id="copyButton2">Copy Arma 3 Sync Link</a></p>
- <br>
- <p style="text-align: center; margin-top:10px;"><a href="#" class="VGB3" id="copyButton">Copy Arma 3 Server IP</a></p>
- <script>
- function copyText(text){
- function selectElementText(element) {
- if (document.selection) {
- var range = document.body.createTextRange();
- range.moveToElementText(element);
- range.select();
- } else if (window.getSelection) {
- var range = document.createRange();
- range.selectNode(element);
- window.getSelection().removeAllRanges();
- window.getSelection().addRange(range);
- }
- }
- var element = document.createElement('DIV');
- element.textContent = text;
- document.body.appendChild(element);
- selectElementText(element);
- document.execCommand('copy');
- element.remove();
- }
- var btn = document.getElementById('copyButton');
- btn.addEventListener('click', function(){
- copyText("5.39.54.196:2302");
- btn.innerHTML = "Copied to clipboard";
- })
- document.getElementById("copyButton").onmouseover = function() {mouseOver()};
- document.getElementById("copyButton").onmouseout = function() {mouseOut()};
- function mouseOver() {
- document.getElementById("copyButton").innerHTML = "Copy IP";
- }
- }
- </script>
- <script>
- function copyText(text){
- function selectElementText(element) {
- if (document.selection) {
- var range = document.body.createTextRange();
- range.moveToElementText(element);
- range.select();
- } else if (window.getSelection) {
- var range = document.createRange();
- range.selectNode(element);
- window.getSelection().removeAllRanges();
- window.getSelection().addRange(range);
- }
- }
- var element = document.createElement('DIV');
- element.textContent = text;
- document.body.appendChild(element);
- selectElementText(element);
- document.execCommand('copy');
- element.remove();
- }
- var btn = document.getElementById('copyButton2');
- btn.addEventListener('click', function(){
- copyText("ftp://31.3.230.52/.a3s/autoconfig");
- btn.innerHTML = "Copied to clipboard.";
- })
- document.getElementById("copyButton2").onmouseover = function() {mouseOver()};
- document.getElementById("copyButton2").onmouseout = function() {mouseOut()};
- function mouseOver() {
- document.getElementById("copyButton2").innerHTML = "Copy Arma 3 Sync Link";
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement