Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ZARP = ZARP || {};
- var Properties = function() {
- // Private fields.
- var banAppealTemplate = `Hi
- You will need to appeal the ban for this account using the following template:
- [code]
- [b]Name -[/b] What is your in-game name?
- [b]STEAM-ID -[/b] What is your STEAM-ID?
- [b]Admins Name -[/b] Who banned you/who might it be?
- [b]Reason -[/b] What is/might be the reason that you got banned?
- [b]Server -[/b] What server did you get banned from?
- [b]Time -[/b] How long were you banned for?
- [b]Story -[/b] What happened?
- [b]Proof -[/b] Any proof on a video/screenshot that clearly show what happened?
- [b]Extra Information -[/b] Any thing you think may be relevant to your ban.
- [/code]
- Copy this template and create a topic in the [url=https://zarpgaming.com/index.php/forum/appeals]Appeals[/url] section. Make sure to fill out all the information correctly!`
- var punishmentRequestTemplate = `Hi
- You will need to create a punishment request using the following template:
- [code]
- [b]Name[/b] - (What is the accused person's name?)
- [b]Steam-ID[/b] - (What is the accused person's Steam-ID?)
- [b]Evidence Of Steam-ID[/b] - (Screenshot or video of the accused players Steam-ID)
- [b]Server[/b] - (What server was this on?)
- [b]Time And Date (CET)[/b] - (When did it happen?)
- [b]Other Comments[/b] - (Anything else you want to add?)
- [b]Reason[/b] - (What rules did the person break?)
- [b]Story[/b] - (What happened?)
- [b]Proof[/b] - (Any proof (video or screenshot) that clearly shows what happened.)
- [/code]
- Copy this template and create a topic in the [url=https://zarpgaming.com/index.php/forum/report-abuse]Report Abuse[/url] section. Make sure to fill out all the information correctly!`
- var demoteRequestTemplate = `Hi
- You will need to create a demote request using the following template:
- [code]
- [b]Staff Member(s) Name:[/b]
- [b]Staff Member(s) SteamID:[/b]
- [b]What Did The Staff Member(s) do?:[/b]
- [b]What Server(s) Was This On?:[/b]
- [b]Evidence:[/b]
- [/code]
- Copy this template and create a topic in the [url=https://zarpgaming.com/index.php/forum/report-abuse]Report Abuse[/url] section. Make sure to fill out all the information correctly!`
- var banAppealTemplateClickEvent = function(){ document.getElementById("kbbcode-message").value = banAppealTemplate }
- var punishmentRequestClickEvent = function(){ document.getElementById("kbbcode-message").value = punishmentRequestTemplate }
- var servers = [
- "play.zarpgaming.com:27015",
- "play.zarpgaming.com:27025",
- "play.zarpgaming.com:27030",
- "play.zarpgaming.com:27040",
- "play.zarpgaming.com:27035",
- "play.zarpgaming.com:27100",
- "usa.zarpgaming.com:27015"
- ];
- var updateInterval = 10
- // Public properties.
- return {
- BanAppealTemplate: banAppealTemplate,
- PunishmentRequestTemplate: punishmentRequestTemplate,
- DemoteRequestTemplate: demoteRequestTemplate,
- BanAppealButtonEvent: banAppealTemplateClickEvent,
- PunishmentRequestButtonEvent: punishmentRequestClickEvent,
- Servers: servers,
- UpdateInterval: updateInterval
- };
- }
- ZARP.Properties = ZARP.Properties || Properties;
- var CSRenderingFunctions = function() {
- // Private functions.
- var changeBackgroundImage = function() {
- document.body.style.backgroundImage = "url('https://htmlcolorcodes.com/assets/images/html-color-codes-color-tutorials-hero-00e10b1f.jpg')";
- document.body.style.backgroundAttachment = "fixed";
- document.body.style.backgroundPosition = "center";
- document.body.style.backgroundRepeat = "no-repeat";
- document.body.style.backgroundSize = "cover";
- document.getElementsByClassName("rt-header-border")[0].style.backgroundColor = "rgba(0,0,0,0)";
- }
- var createBanAppealTemplateButton = function() {
- createButton('Ban Appeal Template', ZARP.Properties.BanAppealButtonEvent);
- }
- var createPunishmentRequestButton = function() {
- createButton('Report Abuse Template', ZARP.Properties.PunishmentRequestButtonEvent);
- }
- var createButton = function(buttonLabel, onclickEvent) {
- var btn = document.createElement("INPUT");
- var t = document.createTextNode("CLICK ME");
- btn.appendChild(t);
- btn.className = "kbutton";
- btn.type = "Button";
- btn.value = buttonLabel;
- btn.onclick = onclickEvent;
- if (document.getElementById("kpost-buttons") != null) {
- document.getElementById("kpost-buttons").getElementById("kpost-buttons").appendChild(btn)
- }
- }
- var updateWhosPlaying = function() {
- var randServrint = Math.floor((Math.random() * ZARP.Properties.Servers.length) + 1);
- var server = ZARP.Properties.Servers[randServrint - 1];
- document.getElementsByClassName("rt-block title4 box4 visible-desktop")[0].getElementsByClassName("module-surround")[0].getElementsByClassName("module-content")[0].getElementsByClassName("customtitle4 box4 visible-desktop")[0].getElementsByClassName("visible-large")[0].getElementsByTagName("iframe")[0].src='http://cache.www.gametracker.com/components/html0/?host='+server+'&bgColor=1F2642&fontColor=8790AE&titleBgColor=11172D&titleColor=FFFFFF&borderColor=333333&linkColor=FF9900&borderLinkColor=999999&showMap=0&showCurrPlayers=0&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=250';
- }
- var init = function() {
- changeBackgroundImage();
- setInterval(function(){ changeWhosPlaying();}, serverUpdateInterval *1000);
- // Only call these functions if we're on the reply page.
- if (window.location.pathname.indexOf('/reply') > 0) {
- createBanAppealTemplateButton();
- createPunishmentRequestButton();
- }
- }
- // Public accessors for private functions.
- return {
- Initialise: init
- };
- }();
- ZARP.CSRendering = ZARP.CSRendering || CSRenderingFunctions;
- ZARP.CSRendering.Initialise();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement