Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript">
- d=document;
- // Baza zmiennych od obrazków
- // ikonki od hostingów
- glownyhost = "http://www.fotoszok.pl/upload/acddcb4a.png"; // w tym przypadku główny host to (patrz nazwahost)
- freakshare = "http://www.fotoszok.pl/upload/4c4ace5b.png";
- rapidgator = "http://www.fotoszok.pl/upload/4e196033.png";
- turbobit = "http://www.fotoszok.pl/upload/eb5c9d9d.png";
- // lektor/napisy/dubbing/polski/hhd/wersja, info, tech, screens, download (obrazki upiększające)
- lektorpl = "http://www.fotoszok.pl/upload/67aa76de.png";
- napisypl = "http://www.fotoszok.pl/upload/3d1bab6a.png";
- dubbingpl = "http://www.fotoszok.pl/upload/b31407e9.png";
- polskipl = "http://www.fotoszok.pl/upload/0945e23c.png";
- hdob = "http://www.fotoszok.pl/upload/412ebc9e.png";
- wersjapl = "http://www.fotoszok.pl/upload/146a10ae.png";
- /* WŁASNA GRAFIKA AUTORA WSTAWEK */
- info = "http://www.fotoszok.pl/upload/b6d98889.png";
- danetechniczne = "http://www.fotoszok.pl/upload/d3f06c80.png";
- screens = "http://www.fotoszok.pl/upload/b794c184.png";
- download = "http://www.fotoszok.pl/upload/9801d9b2.png"; // koniec grafiki...
- // Koniec
- taglektor = "[Lektor PL]"; // tagi dodawane do tytułu, jeżeli zaznaczymy daną opcję
- tagnapisy = "[Napisy PL]";
- tagdubbing = "[Dubbing PL]";
- tagpolski = "[Film polski]";
- taghd = "[Wersja HD]";
- tagwersja = "[Wersja PL]"; // tag dot. tylko gier
- /* Ustawienia czcionki (tytuł) */
- pogrubieniet = true; // 'true' włączone, 'false' wyłączone
- kolort = "0076ff"; // nie wpisuj znaku "#"
- /* koniec tytuł */
- // kolor (obramowanie) true/false (nieuzupełnione pola)
- kolordlabledu = "red"; // nie pisać znaku "#" (jedyna wartość słowna to "red")
- kolordlaprawdy = "abadb3"; // -||- i kolor ZMIENIĆ również w stylach
- /* Download (linki) */
- glownyguzik = "guzikglowny"; // id głównego guzika od hostingu obowiązkowego
- glownelinkiukryj = "linkiglownukryj"; // id diva ukrywającego textarea głównych linków (nie zmieniać)
- nazwahost = "Bitshare"; // Nazwa hostingu, na który zawsze będą podawane przez nas linki
- pollinhost = "glownyhostarea"; // id pola, do którego wklejamy linki (nie zmieniać)
- /* TABLICE globalne (ilość hostingów to długość tablicy "hostnazwy") */
- var hostnazwyfavourite = [ glownyguzik, "freakshare", "rapidgator" ]; // lista ulubionych (względem guzików)
- var hostnazwy = [ glownyguzik, "freakshare", "rapidgator", "turbobit" ]; // guziki
- var hostareatext = [ pollinhost, "linksfre", "linksrap", "linkstur" ]; // textarea
- var hostareablock = [ glownelinkiukryj, "linkfre", "linkrap", "linktur" ]; // pola chowane
- iloschostingow = hostnazwy.length;
- iloscznwkom = 1000; // maksymalna ilość znaków w komentarzach
- upiekszacze = 1; // do obrazków - tekst może być, ale juz obrazki nie koniecznie (radio)
- /* koniec download */
- // Wprowadzanie ustawień (nie ruszać)
- czyscdanetech=0; // pokazUkryj()
- blednie=0;
- iloscele = 2; // WPISAĆ ilość tytułów (rzeczywista ilość elementów); generowane do "result1" i tytulsend1...,
- if(kolort==""){kolort="000000";}
- kolortwst="[color=#"+kolort+"]";
- if(pogrubieniet){bolder1="[b]";bolder2="[/b]";}else{bolder1="";bolder2="";}
- if(nazwahost != ""){lacznik = "'a"; nazwaobhost = nazwahost + lacznik;}
- else{alert("Musisz podać nazwę obowiązkowego hosta!");
- document.write("<font color=\"red\">nazwahost = \"nie podano\"</font>");nazwaobhost="Nie podano";}
- if (kolordlabledu != "" && kolordlabledu != "red"){kolorbordererr = "#"+kolordlabledu;}
- else{kolorbordererr="red";}
- if (kolordlaprawdy != ""){kolorbordertru = "#"+kolordlaprawdy;}
- else{kolorbordertru="#abadb3";}
- // Komentarz dodatkowy
- komentarz = "";
- licznik="";
- function podpowiedz(wypisz,pod){
- for (i=1;i<8;i++){
- d.getElementById("podpowiedz"+i).innerHTML = "";}
- tekst = d.getElementById("podpowiedz"+pod);
- if((d.getElementById("zwersja").checked==false)&&(wypisz.indexOf("Pole zablokowane,")!=-1)) wypisz="Pole odblokowane";
- tekst.innerHTML = wypisz;
- /* Sprawdzanie dlugosci zmiennej "wypisz" */
- if(wypisz.length < 10)
- czas = 3;
- if(wypisz.length > 10)
- czas = 4;
- if(wypisz.length > 15)
- czas = 6;
- if(wypisz.length > 20)
- czas = 8;
- clearTimeout(licznik);licznik = setTimeout("tekst.innerHTML = '';", czas*1000);/* czyszczenie tekstu */}
- /* Sprawdzanie wybranych parametrów checkbox, licznik znaków z funkcją zapogiegającą przepełnieniu textarea */
- function weryfikacja(){weryf=(iloscznwkom-d.getElementById('txt3').value.length);if(weryf<=0){d.getElementById('licznikodznakow').innerHTML="Osiągnięto limit znaków ("+iloscznwkom+"/"+iloscznwkom+")";d.getElementById('txt3').disabled=true;}else d.getElementById('txt3').disabled=false;}
- setInterval("sprawdzajParametryTutul();pozostalo=iloscznwkom-(d.getElementById('txt3').value.length);d.getElementById('licznikodznakow').innerHTML = 'Pozostało '+pozostalo+'/'+iloscznwkom+' znaków';weryfikacja()",100);
- /* ### GŁÓWNA tablica generatora ### */
- var tableid = ['tytul', 'okladka','short',pollinhost,'long','danetech','nrsezonu','zlektorem','znapisami','zdubbingiem','zpolski','zhd','zwersja'];
- function sprawdzajParametryTutul(){
- lektor = d.getElementById(tableid[7]);
- napisy = d.getElementById(tableid[8]);
- dubbing = d.getElementById(tableid[9]);
- polski = d.getElementById(tableid[10]);
- hd = d.getElementById(tableid[11]);
- wersja = d.getElementById(tableid[12]);
- nrsezonu = d.getElementById(tableid[6]);
- if(lektor.checked || napisy.checked || dubbing.checked || polski.checked || hd.checked || nrsezonu.value !="") wersja.disabled=true;
- else wersja.disabled=false;
- if(wersja.checked){
- lektor.disabled=true;
- napisy.disabled=true;
- dubbing.disabled=true;
- polski.disabled=true;
- hd.disabled=true;
- nrsezonu.disabled=true;}
- else{
- lektor.disabled=false;
- napisy.disabled=false;
- dubbing.disabled=false;
- polski.disabled=false;
- hd.disabled=false;
- nrsezonu.disabled=false;}}
- function refreshchoice(){
- lektor.disabled=false;
- napisy.disabled=false;
- dubbing.disabled=false;
- wersja.disabled=false;
- polski.disabled=false;
- hd.disabled=false;
- nrsezonu.value="";}
- function addHost(numer){
- d.getElementById("czyscenter").style.display = "block";
- for (i=1;i<=iloschostingow;i++){
- z=i-1;
- if(numer==i){
- d.getElementById(hostnazwy[z]).disabled = "true"; // nazwa przycisku
- d.getElementById(hostareatext[z]).value = ""; // nazwa textarea, czyszczenie pola
- d.getElementById(hostareablock[z]).style.display = "block";}}} // -||-, pokazywanie/ukrywanie elementu
- function selectAll(){
- for(i=0;i<iloschostingow;i++){
- d.getElementById(hostnazwy[i]).disabled = true;
- d.getElementById(hostareablock[i]).style.display = "block";
- d.getElementById("czyscenter").style.display = "block";}}
- function selectFavourite(){
- d.getElementById("czyscenter").style.display = "block";
- specialtabfavourite = [];
- for(z=0;z<iloschostingow;z++){
- specialtabfavourite[z]=0;
- for(i=0;i<hostnazwyfavourite.length;i++){
- if (hostnazwy[z]==hostnazwyfavourite[i]){
- specialtabfavourite[z]+=1;}if(specialtabfavourite[z]==1){
- d.getElementById(hostnazwy[z]).disabled = true;
- d.getElementById(hostareablock[z]).style.display = "block";}
- else{d.getElementById(hostnazwy[z]).disabled = false;
- d.getElementById(hostareatext[z]).value = "";
- d.getElementById(hostareablock[z]).style.display = "none";}}}}
- function unselectAll(){
- for(i=0;i<iloschostingow;i++){
- d.getElementById(hostnazwy[i]).disabled = false;
- d.getElementById(hostareatext[i]).value = "";
- d.getElementById(hostareablock[i]).style.display = "none";}
- d.getElementById("czyscenter").style.display = "none";
- d.getElementById("result1").style.display = "none";
- d.getElementById("result2").style.display = "none";
- d.getElementById("footer").style.display = "block";}
- /* Pokazuje, bądź ukrywa div np. ('danetechukryj' z textarea 'danetech'); wywołane w kodzie HTML (zd. onclick) - pokazUkryj(wartości) */
- function pokazUkryj(checkbox, id, idclean){
- sprawdz = d.getElementById(checkbox).checked;
- pokazukryj = d.getElementById(id).style;
- if(sprawdz) pokazukryj.display = "block";
- else {pokazukryj.display = "none";}
- if(idclean==""){if (czyscdanetech==0) {wstawTekstWszystko();czyscdanetech++;} else{
- for(i=1;i<5;i++){d.getElementById("danetechwmin"+i).value="Miniaturka "+i+".";}czyscdanetech=0;}}
- else{d.getElementById(idclean).value="";}}
- // Więcej miniaturek i screenów
- function addThumb(){
- wiecejminiatur = document.getElementById('morethumb');
- guzik = document.getElementById('guzikthumb');
- view = wiecejminiatur.style.display;
- if (view == "block"){
- guzik.value = "Więcej miniatur";
- wiecejminiatur.style.display = "none";}
- else{
- guzik.value = "Mniej miniatur";
- wiecejminiatur.style.display = "block";}}
- function addScreen(){
- wiecejzdjec = document.getElementById('morescreen');
- guzik = document.getElementById('guzikscreen');
- view = wiecejzdjec.style.display;
- if (view == "block"){
- guzik.value = "Więcej screenów";
- wiecejzdjec.style.display = "none";}
- else{
- guzik.value = "Mniej screenów";
- wiecejzdjec.style.display = "block";}}
- /* Funkcja odpowiadająca za formatowanie kodu do miniaturek dla txt3 */
- miniaturki = ["miniaturka1", "miniaturka2", "miniaturka3", "miniaturka4"];
- odmminiaturekzdantech = ['danetechwmin1','danetechwmin2','danetechwmin3','danetechwmin4'];
- function wstawTekst(ktory){
- for(i=1;i<5;i++){
- if(ktory == i){
- kopiuj = d.getElementById("miniaturka"+i);
- wklej = d.getElementById("danetechwmin"+i);}}
- czyminspeldl = kopiuj.value.length;
- if(czyminspeldl>13){
- kopiuj.value = kopiuj.value.toLowerCase();
- poczatek = kopiuj.value.indexOf('=http');
- koniec = kopiuj.value.indexOf('][i');
- if((poczatek!=-1)&&(koniec!=-1)) wklej.value = kopiuj.value.substring(poczatek+1,koniec);}}
- function wstawTekstWszystko(){wstawTekst(1);wstawTekst(2);wstawTekst(3);wstawTekst(4);}
- function podNazMin(){for(i=1;i<5;i++){d.getElementById("danetechwmin"+i).value="Miniaturka "+i+".";}}
- function czyscEnter(){ // czyszczenie enterów z linków
- for(i=0;i<iloschostingow;i++){d.getElementById(hostareatext[i]).value = d.getElementById(hostareatext[i]).value.replace("\n","");}}
- function Fupiekszacze(chceNie){
- upiekszacze=chceNie;
- }
- function upiekszaczeLinki(){
- if (upiekszacze == 0) {if (hostGlw == 1) { dxd1="\n";dxd2="\n";}
- else {dxd1="\n\n";dxd2="\n\n";}}else{dxd1+=" ";dxd2+=" ";} // dla glownego hosta jeden odstep
- }
- function Generuj(){
- // Glowne zmienne
- txt0 = "";
- txt1 = "";
- txt0 += "[center]"
- txt2 = "";
- txt2 += "[center]";
- txt3 = "";
- txt3 += "[center]";
- /* tablica tableid na górze*/
- tytul = d.getElementById(tableid[0]).value;
- okladka = d.getElementById(tableid[1]).value;
- shorter = d.getElementById(tableid[2]).value;
- wartobowiazlinki = d.getElementById(tableid[3]).value; // glownyhostarea (w to pole trzeba wkleić linki)
- longer = d.getElementById(tableid[4]).value;
- danetech = d.getElementById(tableid[5]).value;
- nrsezonu = d.getElementById(tableid[6]).value;
- lektor = d.getElementById(tableid[7]).checked;
- napisy = d.getElementById(tableid[8]).checked;
- dubbing = d.getElementById(tableid[9]).checked;
- polski = d.getElementById(tableid[10]).checked;
- hhd = d.getElementById(tableid[11]).checked; // nazwa zmieniona, ze względu na brak pomysłu na normalną nazwę :D
- wersja = d.getElementById(tableid[12]).checked;
- // Sprawdzanie pól
- zliczam=0; // liczenie ilości wybranych hostów
- ileminiaturek=0;
- ilescreenow=0; // zachowanie kolejności (korekcja licznika)
- schowekhosty = ""; // pusty ciąg znaków w razie kilku prób generowania
- schowektexthosty = ""; // dla txt3
- sascreeny = ""; // dot. miniaturki + screenów
- odstepposcreenach1 = ""; // przekombinowany odstęp dla txt 3
- if(tytul != "" && wartobowiazlinki != ""){
- blednie = 0; // jeżeli glownyhostarea wraz z innymi
- if(tytul != ""){
- tytul = tytul.replace(/–/g,'-'); // zamiana długich myślników na krótkie
- // tekst wyświetlany, gdy film jest z lektorem pl, napisami pl lub dubbingiem pl...; zmiana w głównych zmiennych
- if(lektor || napisy || dubbing || wersja || polski || hhd){
- if(!wersja && nrsezonu != ""){
- if(nrsezonu.length < 3){
- tytul += " [Sezon " + nrsezonu + "]";
- }else{tytul += " [Sezony: " + nrsezonu + "]";}
- }
- if(lektor || napisy || dubbing || polski || hhd){
- txt0 += kolortwst + bolder1 + tytul;
- txt1 += kolortwst + bolder1 + tytul;
- txt2 += kolortwst + bolder1 + tytul;
- txt3 += kolortwst + bolder1 + tytul;
- if(lektor){
- txt0 += " " + taglektor;
- txt1 += " " + taglektor;
- txt2 += " " + taglektor;
- txt3 += " " + taglektor;
- tytul += " " + taglektor;}
- if(napisy){
- txt0 += " " + tagnapisy;
- txt1 += " " + tagnapisy;
- txt2 += " " + tagnapisy;
- txt3 += " " + tagnapisy;
- tytul += " " + tagnapisy;}
- if(dubbing){
- txt0 += " " + tagdubbing;
- txt1 += " " + tagdubbing;
- txt2 += " " + tagdubbing;
- txt3 += " " + tagdubbing;
- tytul += " " + tagdubbing;}
- if(polski){
- txt0 += " " + tagpolski;
- txt1 += " " + tagpolski;
- txt2 += " " + tagpolski;
- txt3 += " " + tagpolski;
- tytul += " " + tagpolski;}
- if(hhd){
- txt0 += " " + taghd;
- txt1 += " " + taghd;
- txt2 += " " + taghd;
- txt3 += " " + taghd;
- tytul += " " + taghd;}
- txt0 += bolder2 + "[/color]\n";
- txt1 += bolder2 + "[/color]\n";
- txt2 += bolder2 + "[/color]\n";
- txt3 += bolder2 + "[/color]\n";}
- if(wersja){
- txt0 += kolortwst + bolder1 + tytul + " " + tagwersja + bolder2 +"[/color]\n";
- txt1 += kolortwst + bolder1 + tytul + " " + tagwersja + bolder2 +"[/color]\n";
- txt2 += kolortwst + bolder1 + tytul + " " + tagwersja + bolder2 +"[/color]\n";
- txt3 += kolortwst + bolder1 + tytul + " " + tagwersja + bolder2 +"[/color]\n";
- tytul += " " + tagwersja;}}
- else{
- if(nrsezonu != ""){
- if(nrsezonu.length < 3){
- tytul += " [Sezon " + nrsezonu + "]";
- }else{tytul += " [Sezony: " + nrsezonu + "]";}
- }
- txt0 += kolortwst + bolder1 + tytul + bolder2 +"[/color]\n";
- txt1 += kolortwst + bolder1 + tytul + bolder2 +"[/color]\n";
- txt2 += kolortwst + bolder1 + tytul + bolder2 +"[/color]\n";
- txt3 += kolortwst + bolder1 + tytul + bolder2 +"[/color]\n";}
- for(i=1;i<=iloscele;i++){
- d.getElementById("stytulsend"+i).value = "";
- d.getElementById("stytulsend"+i).value += tytul;}
- d.getElementById("tytul").style.borderColor = kolorbordertru;}
- if (okladka != ""){
- txt0 += "\n[img]" + okladka + "[/img]\n";
- txt1 += "\n[img]" + okladka + "[/img]\n";
- txt2 += "\n[img]" + okladka + "[/img]\n";}
- // pod okładką obrazek lektor pl, napisy pl lub dubbing pl... jeżeli któryś z checkboxów został zaznaczony
- if((lektor || napisy || dubbing || polski || hhd) && upiekszacze==1){
- txt0 += "\n";
- txt1 += "\n";
- txt2 += "\n";
- if(lektor){
- txt0 += "[img]" + lektorpl + "[/img] ";
- txt1 += "[img]" + lektorpl + "[/img] ";
- txt2 += "[img]" + lektorpl + "[/img] ";}
- if(napisy){
- txt0 += "[img]" + napisypl + "[/img] ";
- txt1 += "[img]" + napisypl + "[/img] ";
- txt2 += "[img]" + napisypl + "[/img] ";}
- if(dubbing){
- txt0 += "[img]" + dubbingpl + "[/img] ";
- txt1 += "[img]" + dubbingpl + "[/img] ";
- txt2 += "[img]" + dubbingpl + "[/img] ";}
- if(polski){
- txt0 += "[img]" + polskipl + "[/img] ";
- txt1 += "[img]" + polskipl + "[/img] ";
- txt2 += "[img]" + polskipl + "[/img] ";}
- if(hhd){
- txt0 += "[img]" + hdob + "[/img] ";
- txt1 += "[img]" + hdob + "[/img] ";
- txt2 += "[img]" + hdob + "[/img] ";}
- txt0 += "\n";
- txt1 += "\n";
- txt2 += "\n";}
- if(wersja && upiekszacze==1){
- txt0 += "\n[img]" + wersjapl + "[/img]\n";
- txt1 += "\n[img]" + wersjapl + "[/img]\n";
- txt2 += "\n[img]" + wersjapl + "[/img]\n";}
- oxo = ""; // gdy checkbox false, wtedy txt3+=oxo
- if(shorter != "" || longer != ""){
- if(shorter != "" && longer == ""){
- oxo += "\n[b]INFORMACJE[/b]\n";
- if(upiekszacze==1){txt0 += "\n[img]"+info+"[/img]\n";
- txt1 += "\n[img]"+ info +"[/img]\n";
- txt2 += "\n[img]"+ info +"[/img]\n";}else{txt0 += oxo;txt1 += oxo;txt2 += oxo;}
- txt0 += "[quote]" + shorter + "[/quote]\n";
- txt1 += "[quote]" + shorter + "[/quote]\n";
- txt2 += "[quote]" + shorter + "[/quote]\n";
- oxo += "[quote]" + shorter + "[/quote]\n";}
- if(shorter != "" && longer != ""){
- oxo += "\n[b]INFORMACJE[/b]\n";
- if(upiekszacze==1){txt0 += "\n[img]"+info+"[/img]\n";
- txt1 += "\n[img]"+ info +"[/img]\n";
- txt2 += "\n[img]"+ info +"[/img]\n";}else{txt0 += oxo;txt1 += oxo;txt2 += oxo;}
- txt0 += "[quote]" + shorter + "[/quote]\n";
- txt1 += "[quote]" + shorter;
- txt2 += "[quote]" + shorter;
- oxo += "[quote]" + shorter;
- txt1 += "\n\n"+ longer + "[/quote]\n";
- txt2 += "\n\n"+ longer + "[/quote]\n";
- oxo += "\n\n"+ longer + "[/quote]\n";}
- if(longer != "" && shorter == ""){
- oxo += "\n[b]INFORMACJE[/b]\n";
- if(upiekszacze==1){txt1 += "\n[img]"+ info +"[/img]\n";
- txt2 += "\n[img]"+ info +"[/img]\n";}else{txt1 += oxo;txt2 += oxo;}
- txt1 += "[quote]" + longer + "[/quote]\n";
- txt2 += "[quote]" + longer + "[/quote]\n";
- oxo += "[quote]" + longer + "[/quote]\n";}
- krotkidlugioxo = d.getElementById("opisdlaoxo").checked;
- if(!krotkidlugioxo){txt3+=oxo;}
- }
- if(danetech != ""){
- if (upiekszacze == 1){txt1 += "\n[img]"+ danetechniczne +"[/img]\n";
- txt2 += "\n[img]"+ danetechniczne +"[/img]\n";}else{txt1 += "\n[b]DANE TECHNICZNE[/b]\n";
- txt2 += "\n[b]DANE TECHNICZNE[/b]\n";}
- txt3 += "\n[b]DANE TECHNICZNE[/b]\n";
- txt1 += "[quote]" + danetech + "[/quote]\n";
- txt2 += "[quote]" + danetech + "[/quote]\n";
- txt3 += "[quote]" + danetech + "[/quote]\n";}
- /* Miniaturki i screeny */
- odminiaturek = ['miniaturka1','miniaturka2','miniaturka3','miniaturka4']; // tablica od miniaturek i screenów
- odmminiaturekzdantech = ['danetechwmin1','danetechwmin2','danetechwmin3','danetechwmin4'];
- odscreen = ['screen1','screen2','screen3','screen4'];
- for(i=0;i<4;i++){z=i+1;odminiaturek[i] = d.getElementById("miniaturka"+z).value;odscreen[i] = d.getElementById("screen"+z).value;
- odmminiaturekzdantech[i] = d.getElementById("danetechwmin"+z).value;}
- danetechwmin = d.getElementById("danetechwmin").checked; // gdyby tego nie było, w txt3 zawsze byłby kod do miniaturek
- if(danetechwmin){
- if (odmminiaturekzdantech[0].length!=13 || odmminiaturekzdantech[1].length!=13 || odmminiaturekzdantech[2].length!=13 || odmminiaturekzdantech[3].length!=13){
- txt3 += "\n";
- txt3 += "[b]SCREENY[/b]\n";
- for(i=0;i<4;i++){
- if (odmminiaturekzdantech[i].length!=13){
- ++ileminiaturek;
- txt3 += "\n[url="+odmminiaturekzdantech[i]+"]Multi screen "+ileminiaturek+".[/url]\n";}}
- sascreeny="";odstepposcreenach1 = "\n";}}else sascreeny="\n[b]SCREENY[/b]\n";
- if(odminiaturek[0] != "Miniaturka 1." || odminiaturek[1] != "Miniaturka 2." || odminiaturek[2] != "Miniaturka 3." || odminiaturek[3] != "Miniaturka 4." ||odscreen[0] != "Screen 1." || odscreen[1] != "Screen 2." || odscreen[2] != "Screen 3." || odscreen[3] != "Screen 4."){
- if (upiekszacze == 1){txt1 += "\n[img]"+screens+"[/img]\n";
- txt2 += "\n[img]"+screens+"[/img]\n";}else{txt1 += "\n[b]SCREENY[/b]\n";txt2 += "\n[b]SCREENY[/b]\n";}
- odstepposcreenach = "\n"; // jeżeli są screeny, to wtedy odstęp między download, a górą wynosi 2 entery
- if(odminiaturek[0] != "Miniaturka 1." || odminiaturek[1] != "Miniaturka 2." || odminiaturek[2] != "Miniaturka 3." || odminiaturek[3] != "Miniaturka 4."){
- txt1 += "\n";
- txt2 += "\n";
- for(i=0;i<4;i++){
- if(odminiaturek[i] != "" && odminiaturek[i].length != 13){
- txt1 += odminiaturek[i]+" ";
- txt2 += odminiaturek[i]+" ";}}
- // odstęp po miniaturkach, jeżeli takowe istnieją
- txt1 += "\n";
- txt2 += "\n";}
- if (odscreen[0] != "" && odscreen[0].length != 9 || odscreen[1] != "" && odscreen[1].length != 9 || odscreen[2] != "" && odscreen[2].length != 9 || odscreen[3] != "" && odscreen[3].length != 9){
- if(sascreeny) txt3 += sascreeny;
- for(i=0;i<4;i++){
- if(odscreen[i] != "" && odscreen[i].length != 9){
- ++ilescreenow;
- txt1 += "\n[img]"+odscreen[i]+"[/img]\n";
- txt2 += "\n[img]"+odscreen[i]+"[/img]\n";
- txt3 += "\n[url="+odscreen[i]+"]Screen "+ilescreenow+".[/url]\n";}}
- odstepposcreenach1 = "\n";}
- }else odstepposcreenach = ""; // jeżeli nie ma screenów, to wtedy odstęp między download,
- // a góra jest standardowy (1)
- // Krótki komentarz stały, wartość zmieniać w głównych zmiennych
- if(komentarz != ""){
- txt1 += "\n"+ komentarz + "\n\n";
- txt2 += "\n"+ komentarz + "\n\n";
- txt3 += "\n"+ komentarz + "\n\n";}
- // Download
- txt1 += odstepposcreenach;
- txt2 += odstepposcreenach;
- if (upiekszacze == 1){
- "\n[img]"+download+"[/img]";
- "\n[img]"+download+"[/img]";}
- txt3 += odstepposcreenach1 + "\n[b]DOWNLOAD[/b]";
- wartobowiazlinki = d.getElementById(pollinhost).value; // Tego NIE ruszamy (obowiązkowy 'glownyhostarea')
- linkifre = d.getElementById("linksfre").value;
- linkirap = d.getElementById("linksrap").value;
- linkitur = d.getElementById("linkstur").value; // Tworzyć nowe zmienne, gdy dodamy jakiś hosting
- // linki obowiązkowe 1 enter
- dxd1 = "";dxd2 = "";dxd3 = "";
- xdx1 = "";xdx2 = "";xdx3 = ""; // pomocnicze
- hostGlw = 1;
- if(wartobowiazlinki != ""){
- d.getElementById(pollinhost).style.borderColor = kolorbordertru;
- dxd1 += "\n[img]"+ glownyhost +"[/img] ";
- dxd2 += "\n[img]"+ glownyhost +"[/img] ";
- upiekszaczeLinki();
- dxd1 += nazwahost+ "\n";
- dxd2 += nazwahost+ "\n";
- dxd3 += "\n" +nazwahost+ "\n";
- dxd1 += "[code]"+ wartobowiazlinki +"[/code]";
- dxd2 += "[hide][code]"+ wartobowiazlinki +"[/code][/hide]";
- dxd3 += "[hide][code]"+ wartobowiazlinki +"[/code][/hide]";++zliczam;
- schowekhosty += "[img]"+glownyhost+"[/img] "+nazwahost+" ";
- schowektexthosty += nazwahost+" ";
- xdx1 += dxd1;xdx2 += dxd2;xdx3 += dxd3;
- dxd1 = "";dxd2 = "";dxd3 = "";
- hostGlw=0;}
- if(linkifre != ""){
- dxd1 += "\n\n[img]"+ freakshare +"[/img]";
- dxd2 += "\n\n[img]"+ freakshare +"[/img]";
- upiekszaczeLinki();
- dxd1 += "Freakshare\n";
- dxd2 += "Freakshare\n";
- dxd3 += "\n\nFreakshare\n";
- dxd1 += "[code]"+ linkifre +"[/code]";
- dxd2 += "[hide][code]"+ linkifre +"[/code][/hide]";
- dxd3 += "[hide][code]"+ linkifre +"[/code][/hide]";++zliczam;
- schowekhosty += "|| [img]"+freakshare+"[/img] Freakshare ";
- schowektexthosty += "|| Freakshare ";
- xdx1 += dxd1;xdx2 += dxd2;xdx3 += dxd3;
- dxd1 = "";dxd2 = "";dxd3 = "";}
- if(linkirap != ""){
- dxd1 += "\n\n[img]"+ rapidgator +"[/img]";
- dxd2 += "\n\n[img]"+ rapidgator +"[/img]";
- upiekszaczeLinki();
- dxd1 += "Rapidgator\n";
- dxd2 += "Rapidgator\n";
- dxd3 += "\n\nRapidgator\n";
- dxd1 += "[code]"+ linkirap+"[/code]";
- dxd2 += "[hide][code]"+ linkirap +"[/code][/hide]";
- dxd3 += "[hide][code]"+ linkirap +"[/code][/hide]";++zliczam;
- schowekhosty += "|| [img]"+rapidgator+"[/img] Rapidgator ";
- schowektexthosty += "|| Rapidgator ";
- xdx1 += dxd1;xdx2 += dxd2;xdx3 += dxd3;
- dxd1 = "";dxd2 = "";dxd3 = "";}
- if(linkitur != ""){
- dxd1 += "\n\n[img]"+ turbobit +"[/img]";
- dxd2 += "\n\n[img]"+ turbobit +"[/img]";
- upiekszaczeLinki();
- dxd1 += "Turbobit\n";
- dxd2 += "Turbobit\n";
- dxd3 += "\n\nturbobit\n";
- dxd1 += "[code]"+ linkitur +"[/code]";
- dxd2 += "[hide][code]"+ linkitur +"[/code][/hide]";
- dxd3 += "[hide][code]"+ linkitur +"[/code][/hide]";++zliczam;
- schowekhosty += "|| [img]"+turbobit+"[/img] Turbobit ";
- schowektexthosty += "|| Turbobit ";
- xdx1 += dxd1;xdx2 += dxd2;xdx3 += dxd3;
- dxd1 = "";dxd2 = "";dxd3 = "";}
- policzone = zliczam;
- if(policzone == 1) liczbaihostingi = "HOSTING: ";
- if(policzone > 1) liczbaihostingi = policzone + " HOSTINGI: ";
- if(policzone > 4) liczbaihostingi = policzone + " HOSTINGÓW: ";
- // Blok odpowiadający za hostingi
- txt0 += "\n[b]" + liczbaihostingi + "[/b]";
- txt1 += "\n\n[b]" + liczbaihostingi + "[/b]";
- txt2 += "\n\n[b]" + liczbaihostingi + "[/b]";
- txt3 += "\n[b]" + liczbaihostingi + "[/b]";
- if (upiekszacze == 0) schowekhosty = schowektexthosty;
- hosty = schowekhosty;
- txt0 += hosty;
- // Dalsza część download
- odstep = "\n";
- hosty += odstep;
- txt1 += hosty; // linki dodawane w takiej kolejności, ze względu na pobieranie wartości z licznika
- txt2 += hosty; // licznika (textarea musi być uzupełniona, wtedy ++zliczam)
- txt1 += xdx1;
- txt2 += xdx2;
- hosty = schowektexthosty+odstep;
- txt3 += hosty;
- txt3 += xdx3;
- // Koniec bloku
- // Wypisanie
- txt0 += "[/center]";
- txt2 += "[/center]";
- txt3 += "[/center]";
- d.getElementById("txt0").value = txt0;
- d.getElementById("txt1").value = txt1;
- d.getElementById("txt2").value = txt2;
- d.getElementById("txt3").value = txt3;
- wszystko = d.getElementById("txtAll");
- wszystko.value="";
- if (upiekszacze==1) wszystko.value += "**************************************Z UPIĘKSZACZAMI**************************************\n";
- else wszystko.value += "**************************************BEZ UPIĘKSZACZY**************************************\n";
- wszystko.value+= "Kod ze znacznikami [center] i [hide] (krótka część)\n\n"+txt0;
- wszystko.value+= "\n\n\nCzęść długa\n\n"+txt2;
- wszystko.value+= "\n\n\nKod bez znaczników [center] i [hide] (krótka i długa część)\n\n"+txt1;
- wszystko.value+= "\n\n\nDo komentarzy (portale warezowe)\n\n"+txt3;
- // Po wypisaniu tekstu do textarea txt0, txt1 itd. ustawia results na block
- d.getElementById("footer").style.display = "none"; // Copyrights - prawa autorskie
- d.getElementById("result1").style.display = "block";
- d.getElementById("result2").style.display = "block";
- } // koniec sprawdzania pól
- // Jeżeli nie podasz tytułu lub linków obowiązkowych to odpala się blok poniżej.
- else{
- d.getElementById("result1").style.display = "none";
- d.getElementById("result2").style.display = "none";
- if (tytul == ""){
- alert("Twój news nie ma tytułu!");
- d.getElementById("tytul").style.borderColor = kolorbordererr;}
- else d.getElementById("tytul").style.borderColor = kolorbordertru;
- if (wartobowiazlinki == ""){
- ++blednie;
- if(blednie>2){alert("Podasz w końcu linki do "+ nazwaobhost + "!?");}
- else{alert("Musisz obowiązkowo podać linki do "+ nazwaobhost + "!");}
- d.getElementById(pollinhost).style.borderColor = kolorbordererr;}
- else {blednie=0;d.getElementById(pollinhost).style.borderColor = kolorbordertru;
- d.getElementById("footer").style.display = "block";}}}
- // Koniec generatora
- </script>
- <style type="text/css">
- #maincontent{
- width: 1024px;
- margin: 0 auto;
- }
- .footer{
- position: relative;
- text-align: center;
- font-family: Calibri cursive;
- font-size: 12px;
- }
- table{
- display: table;
- }
- tr{
- display: table-row;
- float: left;
- border: 1px solid black;
- }
- td{
- display: table-cell;
- }
- td:first-child{
- width: 200px;
- border-right: 1px solid black;
- font-weight: bolder;
- }
- td:last-child{
- width: 624px;
- padding: 0 0 0 10px;
- }
- span{
- color: red;
- padding-left: 6px;
- }
- h5{
- font-family: "Comic Sans MS";
- }
- textarea, input[type=text]{border:solid 2px #abadb3;}
- input[type=text]:hover,textarea:hover{border: 2px solid green;}
- </style>
- <title>Generator newsów by asmodeus94</title>
- </head>
- <body>
- <div id="maincontent"><table>
- <tr><td>Tytuł newsa</td><td><input type="text" value="" id="tytul" onfocus="podpowiedz('Podaj tytuł newsa',1)"/><input type="text" value="" id="nrsezonu" onfocus="podpowiedz('Podaj numer/numery sezonu/sezonów',1)" style="width:45px;"/><span id="podpowiedz1"></span><form action=""><input name="lektornapisywersja" type="checkbox" id="zlektorem" />Lektor PL<input name="lektornapisywersja" type="checkbox" id="znapisami" />Napisy PL<input name="lektornapisywersja" type="checkbox" id="zdubbingiem" />Dubbing PL<input name="lektornapisywersja" type="checkbox" id="zpolski" />Film PL<input name="lektornapisywersja" type="checkbox" id="zhd" />HD<input name="lektornapisywersja" type="checkbox" id="zwersja" onclick="podpowiedz('Pole zablokowane, ze względu na wybrany parametr - Wersja PL',1)"/>Wersja PL (tylko gry i programy)<input type="reset" value="Wyczyść" onclick="refreshchoice()"/></form>
- Upiększacze mają być:
- <input type="radio" id="upiekszaczOnOff" name="paraRadio" checked="checked" value="Włączone" onclick="Fupiekszacze(1)"/>Włączone<input type="radio" id="upiekszaczOffOn" name="paraRadio" value="Wyłączone" onclick="Fupiekszacze(0)"/>Wyłączone
- </td></tr>
- <tr><td>Okładka</td><td><input type="text" value="" id="okladka" onfocus="podpowiedz('Podaj odnośnik do okładki',2)"/><span id="podpowiedz2"></span>
- </td></tr>
- <tr><td>Hostingi</td><td><input type="button" value="Bitshare" id="guzikglowny" onclick="addHost(1)"/><input type="button" value="Freakshare" id="freakshare" onclick="addHost(2)"/><input type="button" value="Rapidgator" id="rapidgator" onclick="addHost(3)"/><input type="button" value="Turbobit" id="turbobit" onclick="addHost(4)"/><input type="button" value="Wszystkie" id="all" onclick="selectAll()"/><input type="button" value="Ulubione" id="favourite" onclick="selectFavourite()"/><input type="button" value="Wyczyść" id="nobody" onclick="unselectAll()"/>
- </td></tr>
- <tr><td>Podstawowy opis i informacje</td><td><textarea id="short" onfocus="podpowiedz('Krótki opis (widoczny w krótkiej, jak i w długiej części newsa)',3)" style="width:386px;height:212px;"></textarea><span style="position:relative;width:150px;top:10px;right:75px;float:right;" id="podpowiedz3"></span>
- </td></tr>
- <tr><td>Pełny opis + dane techniczne</td><td><textarea id="long" onfocus="podpowiedz('Długi opis (będzie widoczny tylko w długiej części newsa)',4)" style="width:386px;height:212px;" ></textarea><span style="position:relative;width:150px;top:10px;right:75px;float:right;" id="podpowiedz4"></span><div id="danetechukryj" style="display:none;margin-top: 7px;"><textarea id="danetech" onfocus="podpowiedz('Dane techniczne',5)" style="width:386px;height:212px;" ></textarea><span style="width:150px;position:relative;top:10px;right:75px;float:right;" id="podpowiedz5"></span></div><div>
- <input type="checkbox" id="techniczne" onclick="pokazUkryj(this.id, 'danetechukryj','danetech')"/>Dane techniczne
- <input type="checkbox" id="opisdlaoxo"/>Usuń krótki i długi opis z komentarza</div>
- </td></tr>
- <tr><td>Screeny</td><td><input type="button" id="guzikthumb" value="Więcej miniatur" onclick="addThumb();"/><input type="button" id="guzikscreen" style="margin-right: 20px;" value="Więcej screenów" onclick="addScreen();"/>
- <input type="text" value="Miniaturka 1." id="miniaturka1" onfocus="podpowiedz('Miniaturka 1.',6);if(this.value == 'Miniaturka 1.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 1.';wstawTekst(1)" style="width:400px;"/><span style="position:relative;top:8px;left:30px;" id="podpowiedz6"></span>
- <div id="morethumb" style="display:none;"><input type="text" value="Miniaturka 2." id="miniaturka2" onfocus="podpowiedz('Miniaturka 2.',6);if(this.value == 'Miniaturka 2.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 2.';wstawTekst(2)" style="width:400px;"/>
- <input type="text" value="Miniaturka 3." id="miniaturka3" onfocus="podpowiedz('Miniaturka 3.',6);if(this.value == 'Miniaturka 3.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 3.';wstawTekst(3)" style="width:400px;"/>
- <input type="text" value="Miniaturka 4." id="miniaturka4" onfocus="podpowiedz('Miniaturka 4.',6);if(this.value == 'Miniaturka 4.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 4.';wstawTekst(4)" style="width:400px;"/></div>
- <input type="text" value="Screen 1." id="screen1" onfocus="podpowiedz('Screen 1.',6);if(this.value == 'Screen 1.')this.value = '';" onblur="if(this.value == '')this.value = 'Screen 1.'" style="width:400px;"/>
- <div id="morescreen" style="display:none;"><input type="text" value="Screen 2." id="screen2" onfocus="podpowiedz('Screen 2.',6);if(this.value == 'Screen 2.')this.value = '';" onblur="if(this.value == '')this.value = 'Screen 2.'" style="width:400px;"/>
- <input type="text" value="Screen 3." id="screen3" onfocus="podpowiedz('Screen 3.',6);if(this.value == 'Screen 3.')this.value = '';" onblur="if(this.value == '')this.value = 'Screen 3.'" style="width:400px;"/>
- <input type="text" value="Screen 4." id="screen4" onfocus="podpowiedz('Screen 4.',6);if(this.value == 'Screen 4.')this.value = '';" onblur="if(this.value == '')this.value = 'Screen 4.'" style="width:400px;"/></div>
- <div><input type="checkbox" id="danetechwmin" onclick="pokazUkryj(this.id, 'danetechwminukryj','')"/>Miniaturki w komentarzach (kopiować tylko bezp. odnośnik do dużych zdjęć)</div>
- <div id="danetechwminukryj" style="display:none;margin-top: 7px;"><input type="text" value="Miniaturka 1." id="danetechwmin1" onfocus="podpowiedz('Miniaturka 1.',7);if(this.value == 'Miniaturka 1.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 1.'" style="width:400px" /><span style="width:150px;position:relative;top:10px;right:60px;float:right" id="podpowiedz7"></span><input type="text" value="Miniaturka 2." id="danetechwmin2" onfocus="podpowiedz('Miniaturka 2.',7);if(this.value == 'Miniaturka 2.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 2.'" style="width:400px"/><input type="text" value="Miniaturka 3." id="danetechwmin3" onfocus="podpowiedz('Miniaturka 3.',7);if(this.value == 'Miniaturka 3.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 3.'" style="width:400px"/><input type="text" value="Miniaturka 4." id="danetechwmin4" onfocus="podpowiedz('Miniaturka 4.',7);if(this.value == 'Miniaturka 4.')this.value = '';" onblur="if(this.value == '')this.value = 'Miniaturka 4.'" style="width:400px"/>
- <div><input type="button" value="Wyczyść linki do miniatur" onclick="podNazMin()"/></div></div>
- </td></tr>
- <tr><td style="vertical-align: top;padding-top: 2em;">Linki</td><td>
- <div id="linkiglownukryj" style="display:none;"><h3>Bitshare</h3><textarea id="glownyhostarea" style="width:386px;height:212px;"></textarea></div>
- <div id="linkfre" style="display:none;"><h3>Freakshare</h3><textarea id="linksfre" style="width:386px;height:212px;"></textarea></div>
- <div id="linkrap" style="display:none;"><h3>Rapidgator</h3><textarea id="linksrap" style="width:386px;height:212px;"></textarea></div>
- <div id="linktur" style="display:none;"><h3>Turbobit</h3><textarea id="linkstur" style="width:386px;height:212px;"></textarea></div>
- <div id="czyscenter" style="display:none;width: 386px;margin: 6px auto;" ><input type="button" value="Czyść entery po linkach (tylko do jednego linku)" onclick="czyscEnter()"></div>
- </td></tr>
- </table>
- <div style="text-align:center;"><input type="button" value="Generuj kod" id="generuje" onclick="Generuj()"/><input type="button" value="Odśwież" onclick="window.location.reload(true);"/></div>
- <div id="result1" style="float:left;display:none;width:1024px">
- <div style="float:left;width:450px;"><h5>Kod ze znacznikami [center] i [hide] (krótka część)</h5>
- <input type="text" value="" id="stytulsend1" style="float:left;width:450px;" onclick="this.select();" />
- <textarea id="txt0" style="width:450px;height:200px;" onclick="this.select();"></textarea></div>
- <div style="float:right;width:450px;"><h5>Kod bez znaczników [center] i [hide] (krótka i długa część)</h5>
- <input type="text" value="" id="stytulsend2" style="float:left;width:450px;margin-top:0" onclick="this.select();" />
- <textarea id="txt1" style="width:450px;height:200px;" onclick="this.select();"></textarea></div></div>
- <div id="result2" style="float:left;display:none;width:1024px">
- <div style="float:left;width:450px;"><h5>Część długa</h5>
- <textarea id="txt2" style="width:450px;height:200px;margin-bottom:15px;" onclick="this.select();"></textarea></div>
- <div style="float:right;width:450px;"><h5>Do komentarzy (portale warezowe)</h5>
- <textarea id="txt3" style="width:450px;height:200px;margin-bottom:15px;" onclick="this.select();"></textarea>
- <div id="licznikodznakow"></div></div>
- <div style="float:left;width:1024px;text-align:center;"><h5>Wszystko razem</h5>
- <textarea id="txtAll" style="width:750px;height:200px;" onclick="this.select();"></textarea></div>
- <div class="footer" style="width:1024px;float:left;">Generator stworzył asmodeus94</div></div>
- <div class="footer" id="footer">Generator stworzył asmodeus94</div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment