1( function( $ ) { 2 function findGetParameter(parameterName) { 3 var result = null, 4 tmp = []; 5 var items = location.search.substr(1).split("&"); 6 for (var index = 0; index < items.length; index++) { 7 tmp = items[index].split("="); 8 if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]); 9 } 10 return result; 11 } 12 $(document).ready(function(){ 13 if($(".support_list").length > 0) { 14 if($(".game_icon").length > 0) { 15 $(".game_icon").each(function(){ 16 var lnkget = ''; 17 lnkget = $(this).text(); 18 var lnkurl = $(this).attr("href"); 19 if (lnkurl.includes("support/")) { 20 $(this).attr("href", lnkurl+"?gamesup="+lnkget); 21 } 22 }); 23 } 24 } 25 var supget = findGetParameter("gamesup"); 26 if (supget != null) { 27 if ($("#wpas_department").length > 0) { 28 $("#wpas_department").find("option").each(function(){ 29 if ($(this).text() == supget) { 30 $(this).attr("selected","selected"); 31 } 32 }); 33 } 34 } 35 }); 36 37 // модиÑикаÑиÑ_ÑÑилизаÑÐ¸Ñ ÑоÑÐ¼Ñ Ð·Ð°Ñвки 38 $(document).ready(function(){ 39 $("#post-4772").find(".wpas-submit-ticket").fadeOut(1); 40 $("#post-163").find(".wpas-submit-ticket").fadeOut(1); 41 $("#post-97").find(".wpas-submit-ticket").fadeOut(1); 42 $("#post-10").find(".wpas-submit-ticket").fadeOut(1); 43 44 //$("#post-228").find(".wpas-submit-ticket").fadeIn(1); 45 function hbf(n){ 46 var nt = n; 47 $(".wpas-submission-form-inside-after-subject").find(".ch_type_x").each(function(){ 48 $(this).fadeOut(1); 49 }); 50 $(".wpas-submission-form-inside-after-subject").find(".ch_type_"+nt).each(function(){ 51 $(this).fadeIn(1); 52 }); 53 } 54 55 var parts = location.pathname.match(/([a-z0-9_-]+)/ig); 56 if(parts != null && parts != "null"){ 57 if(parts[0] == "de"){ 58 $("#wpas_message_wrapper").find("label").append("<small>
58 (was ist passiert / was sollte passieren)</small>"); 59 $("#post-4772").find(".entry-content").prepend('<div class="our_ch_form"><div class="inner_ch_form"><p>Anfragetyp wählen:</p><a class="ch_one" data-type="1">Zahlung</a><a class="ch_one" data-type="2">Bei Event</a><a class="ch_one" data-type="3">Andere</a></div></div>'); 60 var n = 0; 61 $("#post-4772").find(".our_ch_form").find(".ch_one").click(function(){ 62 $(".wpas-submit-ticket").fadeIn(1); 63 $(".our_ch_form").addClass("closed"); 64 $("#post-4772").find(".wpas-form").find("#wpas_department_wrapper").find("label").text("Produkt"); 65 n = $(this).data("type"); 66 hbf(n); 67 switch(n){ 68 case 1: 69 $("#post-4772").find("#wpas_files_wrapper").find("label").text("Screenshot der Zahlung"); 70 $("#post-4772").find(".wpas-form").find("#wpas_date_de").attr("required", true); 71 $("#post-4772").find(".wpas-form").find("#wpas_payment_system_de").attr("required", true); 72 $("#post-4772").find(".wpas-form").find("#wpas_betrag").attr("required", true); 73 $("#post-4772").find(".wpas-form").find("#wpas_department").attr("required", true); 74 $("#post-4772").find(".wpas-form").find("#wpas_files").attr("required", true); 75 break; 76 case 2: 77 $("#post-4772").find("#wpas_files_wrapper").find("label").text("Screenshot der Event mit Belohnungen"); 78 $("#post-4772").find(".wpas-form").find("#wpas_error_time").attr("required", true); 79 $("#post-4772").find(".wpas-form").find("#wpas_department").attr("required", true); 80 $("#post-4772").find(".wpas-form").find("#wpas_event").attr("required", true); 81 $("#post-4772").find(".wpas-form").find("#wpas_files").attr("required", true); 82 break; 83 case 3: 84 $("#post-4772").find("#wpas_files_wrapper").find("label").text("Screenshot"); 85 $("#post-4772").find(".wpas-form").find("#wpas_error_time").attr("required", true); 86 $("#post-4772").find(".wpas-form").find("#wpas_department").attr("required", true); 87 $("#post-4772").find(".wpas-form").find("#wpas_files").attr("required", true); 88 break; 89 default: 90 $("#post-4772").find("#wpas_files_wrapper").find("label").text("Anhänge"); 91 } 92 }); 93 } 94 if(parts[0] == "fr"){ 95 $("#wpas_message_wrapper").find("label").append("<small> (ce qui est arrivé et ce qui était à venir)</small>"); 96 $("#post-163").find(".entry-content").prepend('<div class="our_ch_form"><div class="inner_ch_form"><p>Choisissez un type de demande:</p><a class="ch_one" data-type="1">Problème de paiement</a><a class="ch_one" data-type="2">Bug événement</a><a class="ch_one" data-type="3">Autres</a></div></div>'); 97 $("#post-163").find("#wpas_department_wrapper").find("label").text("Produit"); 98 99 var n = 0; 100 $("#post-163").find(".our_ch_form").find(".ch_one").click(function(){ 101 $(".wpas-submit-ticket").fadeIn(1); 102 $(".our_ch_form").addClass("closed"); 103 n = $(this).data("type"); 104 hbf(n); 105 switch(n){ 106 case 1: 107 $("#post-163").find("#wpas_files_wrapper").find("label").text("Capture d'écran"); 108 $("#post-163").find(".wpas-form").find("#wpas_date_heure_1").attr("required", true); 109 $("#post-163").find(".wpas-form").find("#wpas_systeme_paiement").attr("required", true); 110 $("#post-163").find(".wpas-form").find("#wpas_montant").attr("required", true); 111 $("#post-163").find(".wpas-form").find("#wpas_files").attr("required", true); 112 break; 113 case 2: 114 $("#post-163").find("#wpas_files_wrapper").find("label").text("Capture d'écran avec les récompenses"); 115 $("#post-163").find(".wpas-form").find("#wpas_date_heure").attr("required", true); 116 $("#post-163").find(".wpas-form").find("#wpas_nom_evenement").attr("required", true); 117 $("#post-163").find(".wpas-form").find("#wpas_files").attr("required", true); 118 break; 119 case 3: 120 $("#post-163").find("#wpas_files_wrapper").find("label").text("Capture d'écran"); 121 $("#post-163").find(".wpas-form").find("#wpas_date_heure").attr("required", true); 122 $("#post-163").find(".wpas-form").find("#wpas_files").attr("required", true); 123 break; 124 default: 125 $("#post-163").find("#wpas_files_wrapper").find("label").text("Pièces jointes"); 126 } 127 }); 128 } 129 if(parts[0] == "pl"){ 130 $("#wpas_message_wrapper").find("label").append("<small> (co siÄ staÅo, i co powinno byÅo siÄ wydarzyÄ )</small>"); 131 $("#post-97").find(".entry-content").prepend('<div class="our_ch_form"><div class="inner_ch_form"><p>Wybierz rodzaj zgÅoszenia:</p><a class="ch_one" data-type="1">PÅatnoÅci</a><a class="ch_one" data-type="2">Wydarzenia</a><a class="ch_one" data-type="3">Inne</a></div></div>'); 132 133 var n = 0; 134 $("#post-97").find(".our_ch_form").find(".ch_one").click(function(){ 135 $(".wpas-submit-ticket").fadeIn(1); 136 $(".our_ch_form").addClass("closed"); 137 n = $(this).data("type"); 138 hbf(n); 139 switch(n){ 140 case 1: 141 $("#post-97").find("#wpas_files_wrapper").find("label").text("Zrzut z ekranu z pÅatnoÅciÄ , lub potwierdzenie przelewu"); 142 $("#post-97").find(".wpas-form").find("#wpas_data_godzina").attr("required", true); 143 $("#post-97").find(".wpas-form").find("#wpas_system_platnosci").attr("required", true); 144 $("#post-97").find(".wpas-form").find("#wpas_kwota").attr("required", true); 145 $("#post-97").find(".wpas-form").find("#wpas_files").attr("required", true); 146 break; 147 case 2: 148 $("#post-97").find("#wpas_files_wrapper").find("label").text("Zrzut z ekranu wydarzenia z nagrodami"); 149 $("#post-97").find(".wpas-form").find("#wpas_data_czas").attr("required", true); 150 $("#post-97").find(".wpas-form").find("#wpas_nazwa_wydarzenia").attr("required", true); 151 $("#post-97").find(".wpas-form").find("#wpas_files").attr("required", true); 152 break; 153 case 3: 154 $("#post-97").find("#wpas_files_wrapper").find("label").text("Zrzut z ekranu z problemem"); 155 $("#post-97").find(".wpas-form").find("#wpas_data_czas").attr("required", true); 156 $("#post-97").find(".wpas-form").find("#wpas_files").attr("required", true); 157 break; 158 default: 159 $("#post-97").find("#wpas_files_wrapper").find("label").text("ZaÅÄ czniki"); 160 } 161 }); 162 } 163 if(parts[0] == "es"){ 164 var n = 0; 165 $("#post-10").find(".wpas-submit-ticket").fadeOut(1); 166 $("#post-10").find(".entry-content").prepend('<div class="our_ch_form"><div class="inner_ch_form"><p>Tipo de ticket:</p><a class="ch_one" data-type="1">Problemas de pago</a><a class="ch_one" data-type="2">Problemas de eventos</a><a class="ch_one" data-type="3">Otros asuntos</a></div></div>'); 167 $("#post-10").find("#wpas_department_wrapper").find("label").text("Producto"); 168 $("#post-10").find(".entry-header").find(".entry-title").text("SOPORTE"); 169 170 $("#post-10").find(".our_ch_form").find(".ch_one").click(function(){ 171 $(".wpas-submit-ticket").fadeIn(1); 172 $(".our_ch_form").addClass("closed"); 173 n = $(this).data("type"); 174 hbf(n); 175 switch(n){ 176 case 1: 177 $("#post-10").find("#wpas_message_wrapper").find("label").text("Descripción del problema (qué pasó y qué supuestamente tenÃa que suceder)"); 178 $("#post-10").find(".wpas-form").find("#wpas_date").attr("required", true); 179 $("#post-10").find(".wpas-form").find("#wpas_department").attr("required", true); 180 $("#post-10").find(".wpas-form").find("#wpas_amount_payment").attr("required", true); 181 $("#post-10").find(".wpas-form").find("#wpas_payment_system").attr("required", true); 182 $("#post-10").find(".wpas-form").find("#wpas_files").attr("required", true); 183 break; 184 case 2: 185 $("#post-10").find("#wpas_message_wrapper").find("label").text("Descripción del problema (qué pasó y qué supuestamente tenÃa que suceder)"); 186 $("#post-10").find(".wpas-form").find("#wpas_date_error").attr("required", true); 187 $("#post-10").find(".wpas-form").find("#wpas_name_event").attr("required", true); 188 $("#post-10").find(".wpas-form").find("#wpas_department").attr("required", true); 189 $("#post-10").find(".wpas-form").find("#wpas_files").attr("required", true); 190 break; 191 case 3: 192 $("#post-10").find("#wpas_message_wrapper").find("label").text("Descripción del problema (qué pasó y qué supuestamente tenÃa que suceder)"); 193 $("#post-10").find(".wpas-form").find("#wpas_date_time_error").attr("required", true); 194 $("#post-10").find(".wpas-form").find("#wpas_department").attr("required", true); 195 $("#post-10").find(".wpas-form").find("#wpas_files").attr("required", true); 196 break; 197 default: 198 $("#post-10").find("#wpas_message_wrapper").find("label").text("Description"); 199 } 200 }); 201 } 202 if(parts[0] == "cz"){ 203 var n = 0; 204 $("#post-9").find(".wpas-submit-ticket").fadeOut(1); 205 $("#post-9").find(".entry-content").prepend('<div class="our_ch_form"><div class="inner_ch_form"><p>Ticket type:</p><a class="ch_one" data-type="1">Payment issue</a><a class="ch_one" data-type="2">Events issues</a><a class="ch_one" data-type="3">Other issues</a></div></div>'); 206 $("#post-9").find("#wpas_department_wrapper").find("label").text("Product"); 207 $("#post-9").find(".entry-header").find(".entry-title").text("SOPORTE"); 208 209 $("#post-9").find(".our_ch_form").find(".ch_one").click(function(){ 210 $(".wpas-submit-ticket").fadeIn(1); 211 $(".our_ch_form").addClass("closed"); 212 n = $(this).data("type"); 213 hbf(n); 214 switch(n){ 215 case 1: 216 $("#post-9").find("#wpas_message_wrapper").find("label").text("Description of the problem (as detailed as it possible)"); 217 $("#post-9").find(".wpas-form").find("#wpas_date").attr("required", true); 218 $("#post-9").find(".wpas-form").find("#wpas_department").attr("required", true); 219 $("#post-9").find(".wpas-form").find("#wpas_amount_payment").attr("required", true); 220 $("#post-9").find(".wpas-form").find("#wpas_payment_system").attr("required", true); 221 $("#post-9").find(".wpas-form").find("#wpas_files").attr("required", true); 222 break; 223 case 2: 224 $("#post-9").find("#wpas_message_wrapper").find("label").text("Description of the problem (what happened and what was supposed to happen)"); 225 $("#post-9").find(".wpas-form").find("#wpas_date_error").attr("required", true); 226 $("#post-9").find(".wpas-form").find("#wpas_name_event").attr("required", true); 227 $("#post-9").find(".wpas-form").find("#wpas_department").attr("required", true); 228 $("#post-9").find(".wpas-form").find("#wpas_files").attr("required", true); 229 break; 230 case 3: 231 $("#post-9").find("#wpas_message_wrapper").find("label").text("Description of the problem (what happened and what was supposed to happen)"); 232 $("#post-9").find(".wpas-form").find("#wpas_date_time_error").attr("required", true); 233 $("#post-9").find(".wpas-form").find("#wpas_department").attr("required", true); 234 $("#post-9").find(".wpas-form").find("#wpas_files").attr("required", true); 235 break; 236 default: 237 $("#post-9").find("#wpas_message_wrapper").find("label").text("Description"); 238 } 239 }); 240 } 241 } 242 var params = window.location.search.replace('?','').split('&').reduce( 243 function(p,e){ 244 var a = e.split('='); 245 p[ decodeURIComponent(a[0])] = decodeURIComponent(a[1]); 246 return p; 247 }, 248 {} 249 ); 250 //console.log(params['a']); 251 //if(params['a'] == "1"){ 252 if ($('#post-228').length > 0){ 253 $("#post-228").find(".wpas-submit-ticket").fadeOut(1); 254 if ($("#page").hasClass("site_10")) { 255 $("#post-228").find(".entry-content").prepend('<div class="our_ch_form"><div class="inner_ch_form"><p>Tipo di ticket:</p><a class="ch_one" data-type="1">Problemi con pagamenti</a><a class="ch_one" data-type="2">Problemi con eventi</a><a class="ch_one" data-type="3">Altri problemi</a></div></div>'); 256 $("#post-228").find("#wpas_department_wrapper").find("label").text("Prodotto"); 257 $("#post-228").find(".entry-title").text("INVIA TICKET"); 258 }else{ 259 $("#post-228").find(".entry-content").prepend('<div class="our_ch_form"><div class="inner_ch_form"><p>Ticket type:</p><a class="ch_one" data-type="1">Payment issue</a><a class="ch_one" data-type="2">Events issues</a><a class="ch_one" data-type="3">Other issues</a></div></div>'); 260 $("#post-228").find("#wpas_department_wrapper").find("label").text("Product"); 261 } 262 263 var n = 0; 264 $("#post-228").find(".our_ch_form").find(".ch_one").click(function(){ 265 $(".wpas-submit-ticket").fadeIn(1); 266 $(".our_ch_form").addClass("closed"); 267 n = $(this).data("type"); 268 hbf(n); 269 switch(n){ 270 case 1: 271 if ($("#page").hasClass("site_10")) { 272 $("#post-228").find("#wpas_message_wrapper").find("label").text("Descrizione del problema (il più dettagliata possibile)"); 273 }else{ 274 $("#post-228").find("#wpas_message_wrapper").find("label").text("Description of the problem (as detailed as it possible)"); 275 } 276 $("#post-228").find(".wpas-form").find("#wpas_date").attr("required", true); 277 $("#post-228").find(".wpas-form").find("#wpas_department").attr("required", true); 278 $("#post-228").find(".wpas-form").find("#wpas_amount_payment").attr("required", true); 279 $("#post-228").find(".wpas-form").find("#wpas_payment_system").attr("required", true); 280 $("#post-228").find(".wpas-form").find("#wpas_files").attr("required", true); 281 break; 282 case 2: 283 if ($("#page").hasClass("site_10")) { 284 $("#post-228").find("#wpas_message_wrapper").find("label").text("Descrizione del problema (cosâè accaduto e cosa invece sarebbe dovuto accadere)"); 285 }else{ 286 $("#post-228").find("#wpas_message_wrapper").find("label").text("Description of the problem (what happened and what was supposed to happen)"); 287 } 288 $("#post-228").find(".wpas-form").find("#wpas_date_error").attr("required", true); 289 $("#post-228").find(".wpas-form").find("#wpas_name_event").attr("required", true); 290 $("#post-228").find(".wpas-form").find("#wpas_department").attr("required", true); 291 $("#post-228").find(".wpas-form").find("#wpas_files").attr("required", true); 292 break; 293 case 3: 294 if ($("#page").hasClass("site_10")) { 295 $("#post-228").find("#wpas_message_wrapper").find("label").text("Descrizione del problema (cosâè accaduto e cosa invece sarebbe dovuto accadere)"); 296 }else{ 297 $("#post-228").find("#wpas_message_wrapper").find("label").text("Description of the problem (what happened and what was supposed to happen)"); 298 } 299 300 301 $("#post-228").find(".wpas-form").find("#wpas_date_time_error").attr("required", true); 302 $("#post-228").find(".wpas-form").find("#wpas_department").attr("required", true); 303 $("#post-228").find(".wpas-form").find("#wpas_files").attr("required", true); 304 break; 305 default: 306 $("#post-228").find("#wpas_message_wrapper").find("label").text("Description"); 307 } 308 }); 309 } 310 //} 311 }); 312 // модиÑикаÑÐ¸Ñ ÑоÑÐ¼Ñ Ð·Ð°Ñвки 313} )( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.