-
Ritsu

- Posty: 77510
- Rejestracja: 13 kwie 2013, o 21:50
- Qspaje: 1,074.90

[W][Kr]
- Lokalizacja: Baśń tysiąca i jednej nocy
- Beczki: 950
-
Kontakt:
Post #434045 autor: Ritsu » 25 lut 2017, o 19:50
$(chat).append(html);
na
$(chat).append(początek kodu html);
pętla zawierająca $(chat).append(kolejne emotki);
po zakonczeniu pętli
$(chat).append(koniec kodu html);
chyba wporzo
- Za ten post Ritsu otrzymał beczkę od:
- Cartman (28 lut 2017, o 14:08)
_________________
technical pojebane
$(chat).append(html);
na
$(chat).append(początek kodu html);
pętla zawierająca $(chat).append(kolejne emotki);
po zakonczeniu pętli
$(chat).append(koniec kodu html);
chyba wporzo
-
Cartman

- Posty: 11456
- Rejestracja: 21 kwie 2013, o 16:16
- Qspaje: 38.10

[W][Kr]
- Beczki: 171
-
Kontakt:
Post #435511 autor: Cartman » 28 lut 2017, o 14:09
Najnowsza wersja skryptu.
-
[+] Pokaż
Kod: Zaznacz cały
// ==UserScript==
// @name BW Chat+Emotki
// @version 1.2.2
// @author Cartman na bazie skryptu ThomassPWA z DW
// @description Emotikony na sb
// @namespace https://bugwie.com/memberlist.php?mode=viewprofile&u=98
// @namespace http://darkwarez.pl/forum/profil-1083311.html
// @include http://bugwie.com/*
// @include https://bugwie.com/*
// @require http://code.jquery.com/jquery-1.11.2.min.js
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
$(document).ready(function()
{
var emordy = [];
emordy[0] = [':)' , ').gif'];
emordy[1] = [':]' , 'fake-smile.gif'];
emordy[2] = [':fack-off:' , 'fackoff.gif'];
emordy[3] = [':facepalm:' , 'fpbugwie.gif'];
emordy[4] = [':puppyeyes:' , 'puppy-eyes_anim.gif'];
emordy[5] = [':chillout:' , 'coolio_anim.gif'];
emordy[6] = [':wow:' , 'wow.gif'];
emordy[7] = [':O' , 'shocked-anim.gif'];
emordy[8] = [':hihi:' , 'hihi_anim.gif'];
emordy[9] = [':lmao:' , 'hahaha.gif'];
emordy[10] = [':rotfl:' , 'rotfl_anim.gif'];
emordy[11] = ['^_^' , 'happy2.gif'];
emordy[12] = [':letssin:' , 'lets_sin-anim.gif'];
emordy[13] = [':shy:' , 'shy.gif'];
emordy[14] = [':thumbup:' , 'thumb-up_anim.gif'];
emordy[15] = [':thumbdown:' , 'thumb-down_anim.gif'];
emordy[16] = [':sweet:' , 'wow_anim.gif'];
emordy[17] = [':hump:' , 'hump.gif'];
emordy[18] = [':heart:' , 'heart-anim.gif'];
emordy[19] = [':love:' , 'falled_in_love-anim.gif'];
emordy[20] = [':ehh:' , 'ehh.gif'];
emordy[21] = [':cry:' , 'cry_anim.gif'];
emordy[22] = [':hmm:' , 'thinking_anim.gif'];
emordy[23] = [':yes:' , 'yes_anim.gif'];
emordy[24] = [':no:' , 'no_anim.gif'];
emordy[25] = [':wht:' , 'wht.gif'];
emordy[26] = ['<_<' , 'pissed-off.gif'];
emordy[27] = [':shifty:' , 'shifty-anim.gif'];
emordy[28] = [':middlef:' , 'middlef-anim.gif'];
emordy[29] = [':|' , 'wtf.gif'];
emordy[30] = [':bored:' , 'bored_anim.gif'];
emordy[31] = [':ermm:' , 'ermm.gif'];
emordy[32] = [':roll:' , 'roll.gif'];
emordy[33] = [':wutf:' , '13318032632857651668.gif'];
emordy[34] = [':crazy:' , 'crazy-anim.gif'];
emordy[35] = [':whistle:' , 'whistle-anim.gif'];
emordy[36] = [':lol-sweat:' , 'big-grin-sweat.gif'];
emordy[37] = ['^^"' , 'sweatdrop-anim.gif'];
emordy[38] = [':cool:' , 'coolbugwie.gif'];
emordy[39] = [':muted:' , 'muted.gif'];
emordy[40] = [':zonk:' , 'zonk2.gif'];
emordy[41] = [':huh:' , 'hmm.gif'];
emordy[42] = [':eek:' , 'eek.gif'];
emordy[43] = [':tehehe:' , 'tehehe.gif'];
emordy[44] = [':czesc:' , 'hi.png'];
emordy[45] = [':ok:' , 'ok.gif'];
emordy[46] = [':dance:' , 'dance-anim.gif'];
emordy[47] = [':lol:' , 'smi1.png'];
emordy[48] = [':lol2:' , 'lol2.gif'];
emordy[49] = [':ema:' , 'emaBW.gif'];
emordy[50] = [':nara:' , 'nara.gif'];
emordy[51] = [':3' , '3.gif'];
// Sprawdzenie czy czat jest włączony
// Dodanie skryptów do <head>
var script = document.createElement('script');
script.type = 'text/javascript';
script.innerHTML = "function emoticon(x) { document.getElementById('text_shoutbox').value = document.getElementById('text_shoutbox').value + ' ' + x + ' '; document.getElementById('text_shoutbox').focus(); updateCharEV(); }\n";
script.innerHTML+= "function updateCharEV() { document.getElementById(\"charCounterEV\").innerHTML = document.getElementById(\"text_shoutbox\").value.length; }\n";
script.innerHTML+= "function sendMessage(session) { sendComment(session); document.getElementById('charCounterEV').innerHTML = '0'; }";
document.getElementsByTagName('head')[0].appendChild(script);
// Dodanie kodu HTML do chatu
var chat = $('#text_shoutbox').parent().parent().parent().parent().parent();
var html = '<tr><td class=\"row\"><span class=\"row\"><\/b> Znaków: <b id=\"charCounterEV\">0<\/b>\/198<\/span><br />';
var indaend = '<\/td><\/tr>';
$('#text_shoutbox').attr('onpaste','updateCharEV();');
$('#text_shoutbox').attr('onchange','updateCharEV();');
$('#text_shoutbox').attr('maxlength','198');
$(chat).append(html);
for (var i=0; i<emordy.length; i++) {
var emoty = '<a href=\"javascript:emoticon(\'' + emordy[i][0] + '\')\"><img src=\"images\/smilies\/'+ emordy[i][1] +'\" border=\"0\" alt=\"\" title=\"\"><\/a>';
$(chat).append(emoty);
}
$(chat).append(indaend);
// Pobranie ID sesji i ustawienie podczas wysyłania
var uid = new RegExp('([0-9]+)').exec( $('#shoutbox_scroll').attr('onsubmit') )[0];
$('#shoutbox_test').attr('onsubmit','sendMessage('+uid+'); return false;');
// Uchwyt odpowiedzialny za wciskanie klawiszy
$('#chatbarText').keyup(function(event) { if(event.which != 13) { updateCharEV(); if( initPwLink) updatePwTopic(); }});
// Uchwyt odpowiedzialny za wysyłanie formy
$('#shoutbox_test').submit(function(event) { if( $('#text_shoutbox').val().length > 3 ) { var count = GM_getValue('EvCount'); count = 0; count++; GM_setValue('EvCount',count); $('#msgCounterEV').text(count); $('#charCounterEV').text('0'); return false; } });
}
);
Dzięki Ricz za naprowadzenie jak zrobić pętle aby bzikało

_________________
Znowu jakieś bajki piszesz, kurwa Hans Kartman Blaklordsen się znalazł
~Ridż Czuję, jakbym miał zwarcie w mózgu. ~Ricky [you] wali konia do anime

Najnowsza wersja skryptu.
[spoiler][code]// ==UserScript==
// @name BW Chat+Emotki
// @version 1.2.2
// @author Cartman na bazie skryptu ThomassPWA z DW
// @description Emotikony na sb
// @namespace https://bugwie.com/memberlist.php?mode=viewprofile&u=98
// @namespace http://darkwarez.pl/forum/profil-1083311.html
// @include http://bugwie.com/*
// @include https://bugwie.com/*
// @require http://code.jquery.com/jquery-1.11.2.min.js
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
$(document).ready(function()
{
var emordy = [];
emordy[0] = [':)' , ').gif'];
emordy[1] = [':]' , 'fake-smile.gif'];
emordy[2] = [':fack-off:' , 'fackoff.gif'];
emordy[3] = [':facepalm:' , 'fpbugwie.gif'];
emordy[4] = [':puppyeyes:' , 'puppy-eyes_anim.gif'];
emordy[5] = [':chillout:' , 'coolio_anim.gif'];
emordy[6] = [':wow:' , 'wow.gif'];
emordy[7] = [':O' , 'shocked-anim.gif'];
emordy[8] = [':hihi:' , 'hihi_anim.gif'];
emordy[9] = [':lmao:' , 'hahaha.gif'];
emordy[10] = [':rotfl:' , 'rotfl_anim.gif'];
emordy[11] = ['^_^' , 'happy2.gif'];
emordy[12] = [':letssin:' , 'lets_sin-anim.gif'];
emordy[13] = [':shy:' , 'shy.gif'];
emordy[14] = [':thumbup:' , 'thumb-up_anim.gif'];
emordy[15] = [':thumbdown:' , 'thumb-down_anim.gif'];
emordy[16] = [':sweet:' , 'wow_anim.gif'];
emordy[17] = [':hump:' , 'hump.gif'];
emordy[18] = [':heart:' , 'heart-anim.gif'];
emordy[19] = [':love:' , 'falled_in_love-anim.gif'];
emordy[20] = [':ehh:' , 'ehh.gif'];
emordy[21] = [':cry:' , 'cry_anim.gif'];
emordy[22] = [':hmm:' , 'thinking_anim.gif'];
emordy[23] = [':yes:' , 'yes_anim.gif'];
emordy[24] = [':no:' , 'no_anim.gif'];
emordy[25] = [':wht:' , 'wht.gif'];
emordy[26] = ['<_<' , 'pissed-off.gif'];
emordy[27] = [':shifty:' , 'shifty-anim.gif'];
emordy[28] = [':middlef:' , 'middlef-anim.gif'];
emordy[29] = [':|' , 'wtf.gif'];
emordy[30] = [':bored:' , 'bored_anim.gif'];
emordy[31] = [':ermm:' , 'ermm.gif'];
emordy[32] = [':roll:' , 'roll.gif'];
emordy[33] = [':wutf:' , '13318032632857651668.gif'];
emordy[34] = [':crazy:' , 'crazy-anim.gif'];
emordy[35] = [':whistle:' , 'whistle-anim.gif'];
emordy[36] = [':lol-sweat:' , 'big-grin-sweat.gif'];
emordy[37] = ['^^"' , 'sweatdrop-anim.gif'];
emordy[38] = [':cool:' , 'coolbugwie.gif'];
emordy[39] = [':muted:' , 'muted.gif'];
emordy[40] = [':zonk:' , 'zonk2.gif'];
emordy[41] = [':huh:' , 'hmm.gif'];
emordy[42] = [':eek:' , 'eek.gif'];
emordy[43] = [':tehehe:' , 'tehehe.gif'];
emordy[44] = [':czesc:' , 'hi.png'];
emordy[45] = [':ok:' , 'ok.gif'];
emordy[46] = [':dance:' , 'dance-anim.gif'];
emordy[47] = [':lol:' , 'smi1.png'];
emordy[48] = [':lol2:' , 'lol2.gif'];
emordy[49] = [':ema:' , 'emaBW.gif'];
emordy[50] = [':nara:' , 'nara.gif'];
emordy[51] = [':3' , '3.gif'];
// Sprawdzenie czy czat jest włączony
// Dodanie skryptów do <head>
var script = document.createElement('script');
script.type = 'text/javascript';
script.innerHTML = "function emoticon(x) { document.getElementById('text_shoutbox').value = document.getElementById('text_shoutbox').value + ' ' + x + ' '; document.getElementById('text_shoutbox').focus(); updateCharEV(); }\n";
script.innerHTML+= "function updateCharEV() { document.getElementById(\"charCounterEV\").innerHTML = document.getElementById(\"text_shoutbox\").value.length; }\n";
script.innerHTML+= "function sendMessage(session) { sendComment(session); document.getElementById('charCounterEV').innerHTML = '0'; }";
document.getElementsByTagName('head')[0].appendChild(script);
// Dodanie kodu HTML do chatu
var chat = $('#text_shoutbox').parent().parent().parent().parent().parent();
var html = '<tr><td class=\"row\"><span class=\"row\"><\/b> Znaków: <b id=\"charCounterEV\">0<\/b>\/198<\/span><br />';
var indaend = '<\/td><\/tr>';
$('#text_shoutbox').attr('onpaste','updateCharEV();');
$('#text_shoutbox').attr('onchange','updateCharEV();');
$('#text_shoutbox').attr('maxlength','198');
$(chat).append(html);
for (var i=0; i<emordy.length; i++) {
var emoty = '<a href=\"javascript:emoticon(\'' + emordy[i][0] + '\')\"><img src=\"images\/smilies\/'+ emordy[i][1] +'\" border=\"0\" alt=\"\" title=\"\"><\/a>';
$(chat).append(emoty);
}
$(chat).append(indaend);
// Pobranie ID sesji i ustawienie podczas wysyłania
var uid = new RegExp('([0-9]+)').exec( $('#shoutbox_scroll').attr('onsubmit') )[0];
$('#shoutbox_test').attr('onsubmit','sendMessage('+uid+'); return false;');
// Uchwyt odpowiedzialny za wciskanie klawiszy
$('#chatbarText').keyup(function(event) { if(event.which != 13) { updateCharEV(); if( initPwLink) updatePwTopic(); }});
// Uchwyt odpowiedzialny za wysyłanie formy
$('#shoutbox_test').submit(function(event) { if( $('#text_shoutbox').val().length > 3 ) { var count = GM_getValue('EvCount'); count = 0; count++; GM_setValue('EvCount',count); $('#msgCounterEV').text(count); $('#charCounterEV').text('0'); return false; } });
}
);[/code][/spoiler]
Dzięki Ricz za naprowadzenie jak zrobić pętle aby bzikało :ok:
-
Ritsu

- Posty: 77510
- Rejestracja: 13 kwie 2013, o 21:50
- Qspaje: 1,074.90

[W][Kr]
- Lokalizacja: Baśń tysiąca i jednej nocy
- Beczki: 950
-
Kontakt:
Post #435586 autor: Ritsu » 28 lut 2017, o 15:50
Ridż to jednak coś umie.
Licznik znaków aktualizuje się dopiero po kliknięciu na emotkę.
_________________
technical pojebane
Ridż to jednak coś umie.
Licznik znaków aktualizuje się dopiero po kliknięciu na emotkę.
-
Cartman

- Posty: 11456
- Rejestracja: 21 kwie 2013, o 16:16
- Qspaje: 38.10

[W][Kr]
- Beczki: 171
-
Kontakt:
Post #436704 autor: Cartman » 2 mar 2017, o 13:58
Emordy na sb toggle edyszyn
-
[+] Pokaż
Kod: Zaznacz cały
// ==UserScript==
// @name BW Chat+Emotki
// @version 1.2.2 toggle edyszyn
// @author Cartman na bazie skryptu ThomassPWA z DW
// @description Emotikony na sb
// @namespace https://bugwie.com/memberlist.php?mode=viewprofile&u=98
// @namespace http://darkwarez.pl/forum/profil-1083311.html
// @include http://bugwie.com/*
// @include https://bugwie.com/*
// @require http://code.jquery.com/jquery-1.11.2.min.js
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
$(document).ready(function()
{
var emordy = [];
emordy[0] = [':)' , ').gif'];
emordy[1] = [':]' , 'fake-smile.gif'];
emordy[2] = [':fack-off:' , 'fackoff.gif'];
emordy[3] = [':facepalm:' , 'fpbugwie.gif'];
emordy[4] = [':puppyeyes:' , 'puppy-eyes_anim.gif'];
emordy[5] = [':chillout:' , 'coolio_anim.gif'];
emordy[6] = [':wow:' , 'wow.gif'];
emordy[7] = [':O' , 'shocked-anim.gif'];
emordy[8] = [':hihi:' , 'hihi_anim.gif'];
emordy[9] = [':lmao:' , 'hahaha.gif'];
emordy[10] = [':rotfl:' , 'rotfl_anim.gif'];
emordy[11] = ['^_^' , 'happy2.gif'];
emordy[12] = [':letssin:' , 'lets_sin-anim.gif'];
emordy[13] = [':shy:' , 'shy.gif'];
emordy[14] = [':thumbup:' , 'thumb-up_anim.gif'];
emordy[15] = [':thumbdown:' , 'thumb-down_anim.gif'];
emordy[16] = [':sweet:' , 'wow_anim.gif'];
emordy[17] = [':hump:' , 'hump.gif'];
emordy[18] = [':heart:' , 'heart-anim.gif'];
emordy[19] = [':love:' , 'falled_in_love-anim.gif'];
emordy[20] = [':ehh:' , 'ehh.gif'];
emordy[21] = [':cry:' , 'cry_anim.gif'];
emordy[22] = [':hmm:' , 'thinking_anim.gif'];
emordy[23] = [':yes:' , 'yes_anim.gif'];
emordy[24] = [':no:' , 'no_anim.gif'];
emordy[25] = [':wht:' , 'wht.gif'];
emordy[26] = ['<_<' , 'pissed-off.gif'];
emordy[27] = [':shifty:' , 'shifty-anim.gif'];
emordy[28] = [':middlef:' , 'middlef-anim.gif'];
emordy[29] = [':|' , 'wtf.gif'];
emordy[30] = [':bored:' , 'bored_anim.gif'];
emordy[31] = [':ermm:' , 'ermm.gif'];
emordy[32] = [':roll:' , 'roll.gif'];
emordy[33] = [':wutf:' , '13318032632857651668.gif'];
emordy[34] = [':crazy:' , 'crazy-anim.gif'];
emordy[35] = [':whistle:' , 'whistle-anim.gif'];
emordy[36] = [':lol-sweat:' , 'big-grin-sweat.gif'];
emordy[37] = ['^^"' , 'sweatdrop-anim.gif'];
emordy[38] = [':cool:' , 'coolbugwie.gif'];
emordy[39] = [':muted:' , 'muted.gif'];
emordy[40] = [':zonk:' , 'zonk2.gif'];
emordy[41] = [':huh:' , 'hmm.gif'];
emordy[42] = [':eek:' , 'eek.gif'];
emordy[43] = [':tehehe:' , 'tehehe.gif'];
emordy[44] = [':czesc:' , 'hi.png'];
emordy[45] = [':ok:' , 'ok.gif'];
emordy[46] = [':dance:' , 'dance-anim.gif'];
emordy[47] = [':lol:' , 'smi1.png'];
emordy[48] = [':lol2:' , 'lol2.gif'];
emordy[49] = [':ema:' , 'emaBW.gif'];
emordy[50] = [':nara:' , 'nara.gif'];
emordy[51] = [':3' , '3.gif'];
// Sprawdzenie czy czat jest włączony
// Dodanie skryptów do <head>
var script = document.createElement('script');
script.type = 'text/javascript';
script.innerHTML = "function emoticon(x) { document.getElementById('text_shoutbox').value = document.getElementById('text_shoutbox').value + ' ' + x + ' '; document.getElementById('text_shoutbox').focus(); updateCharEV(); }\n";
script.innerHTML+= "function updateCharEV() { document.getElementById(\"charCounterEV\").innerHTML = document.getElementById(\"text_shoutbox\").value.length; }\n";
script.innerHTML+= "function sendMessage(session) { sendComment(session); document.getElementById('charCounterEV').innerHTML = '0'; }";
document.getElementsByTagName('head')[0].appendChild(script);
// Dodanie kodu HTML do chatu
var chat = $('#text_shoutbox').parent().parent().parent().parent().parent();
var test = $('#text_shoutbox').parent();
var poka = '<input type="button" name="button2 ricz" value="Emotikony" class="button2" id="pokapoka">';
var html = '<tr><td class=\"row\"><span class=\"row\"><\/b> Znaków: <b id=\"charCounterEV\">0<\/b>\/198<\/span><br />';
$('#text_shoutbox').attr('onpaste','updateCharEV();');
$('#text_shoutbox').attr('onchange','updateCharEV();');
$('#text_shoutbox').attr('maxlength','198');
$(test).append(poka);
$("input#pokapoka.button2").on('click', function(e) {
e.preventDefault();
$('a.emo').toggle();
});
$(chat).append(html);
for (var i=0; i<emordy.length; i++) {
var emoty = '<a href=\"javascript:emoticon(\'' + emordy[i][0] + '\')\" class=\"emo\" style="display: none"><img src=\"images\/smilies\/'+ emordy[i][1] +'\" border=\"0\" alt=\"\" title=\"\"><\/a>';
$(chat).append(emoty);
}
var indaend = '<\/td><\/tr>';
$(chat).append(indaend);
// Pobranie ID sesji i ustawienie podczas wysyłania
var uid = new RegExp('([0-9]+)').exec( $('#shoutbox_scroll').attr('onsubmit') )[0];
$('#shoutbox_test').attr('onsubmit','sendMessage('+uid+'); return false;');
// Uchwyt odpowiedzialny za wciskanie klawiszy
$('#chatbarText').keyup(function(event) { if(event.which != 13) { updateCharEV(); if( initPwLink) updatePwTopic(); }});
// Uchwyt odpowiedzialny za wysyłanie formy
$('#shoutbox_test').submit(function(event) { if( $('#text_shoutbox').val().length > 3 ) { var count = GM_getValue('EvCount'); count = 0; count++; GM_setValue('EvCount',count); $('#msgCounterEV').text(count); $('#charCounterEV').text('0'); return false; } });
}
);
Obie wersje będą rozwijane równocześnie.
Ridż pisze:Źródło postu Licznik znaków aktualizuje się dopiero po kliknięciu na emotkę.
Aktualizuje się też w tekście ale trzeba kliknąć po za pole tekstowe. Może w następnej wersji się tym zajmę.
Ostatnio zmieniony 2 mar 2017, o 14:29 przez
Cartman, łącznie zmieniany 1 raz.
_________________
Znowu jakieś bajki piszesz, kurwa Hans Kartman Blaklordsen się znalazł
~Ridż Czuję, jakbym miał zwarcie w mózgu. ~Ricky [you] wali konia do anime

Emordy na sb toggle edyszyn
[spoiler][code]// ==UserScript==
// @name BW Chat+Emotki
// @version 1.2.2 toggle edyszyn
// @author Cartman na bazie skryptu ThomassPWA z DW
// @description Emotikony na sb
// @namespace https://bugwie.com/memberlist.php?mode=viewprofile&u=98
// @namespace http://darkwarez.pl/forum/profil-1083311.html
// @include http://bugwie.com/*
// @include https://bugwie.com/*
// @require http://code.jquery.com/jquery-1.11.2.min.js
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
$(document).ready(function()
{
var emordy = [];
emordy[0] = [':)' , ').gif'];
emordy[1] = [':]' , 'fake-smile.gif'];
emordy[2] = [':fack-off:' , 'fackoff.gif'];
emordy[3] = [':facepalm:' , 'fpbugwie.gif'];
emordy[4] = [':puppyeyes:' , 'puppy-eyes_anim.gif'];
emordy[5] = [':chillout:' , 'coolio_anim.gif'];
emordy[6] = [':wow:' , 'wow.gif'];
emordy[7] = [':O' , 'shocked-anim.gif'];
emordy[8] = [':hihi:' , 'hihi_anim.gif'];
emordy[9] = [':lmao:' , 'hahaha.gif'];
emordy[10] = [':rotfl:' , 'rotfl_anim.gif'];
emordy[11] = ['^_^' , 'happy2.gif'];
emordy[12] = [':letssin:' , 'lets_sin-anim.gif'];
emordy[13] = [':shy:' , 'shy.gif'];
emordy[14] = [':thumbup:' , 'thumb-up_anim.gif'];
emordy[15] = [':thumbdown:' , 'thumb-down_anim.gif'];
emordy[16] = [':sweet:' , 'wow_anim.gif'];
emordy[17] = [':hump:' , 'hump.gif'];
emordy[18] = [':heart:' , 'heart-anim.gif'];
emordy[19] = [':love:' , 'falled_in_love-anim.gif'];
emordy[20] = [':ehh:' , 'ehh.gif'];
emordy[21] = [':cry:' , 'cry_anim.gif'];
emordy[22] = [':hmm:' , 'thinking_anim.gif'];
emordy[23] = [':yes:' , 'yes_anim.gif'];
emordy[24] = [':no:' , 'no_anim.gif'];
emordy[25] = [':wht:' , 'wht.gif'];
emordy[26] = ['<_<' , 'pissed-off.gif'];
emordy[27] = [':shifty:' , 'shifty-anim.gif'];
emordy[28] = [':middlef:' , 'middlef-anim.gif'];
emordy[29] = [':|' , 'wtf.gif'];
emordy[30] = [':bored:' , 'bored_anim.gif'];
emordy[31] = [':ermm:' , 'ermm.gif'];
emordy[32] = [':roll:' , 'roll.gif'];
emordy[33] = [':wutf:' , '13318032632857651668.gif'];
emordy[34] = [':crazy:' , 'crazy-anim.gif'];
emordy[35] = [':whistle:' , 'whistle-anim.gif'];
emordy[36] = [':lol-sweat:' , 'big-grin-sweat.gif'];
emordy[37] = ['^^"' , 'sweatdrop-anim.gif'];
emordy[38] = [':cool:' , 'coolbugwie.gif'];
emordy[39] = [':muted:' , 'muted.gif'];
emordy[40] = [':zonk:' , 'zonk2.gif'];
emordy[41] = [':huh:' , 'hmm.gif'];
emordy[42] = [':eek:' , 'eek.gif'];
emordy[43] = [':tehehe:' , 'tehehe.gif'];
emordy[44] = [':czesc:' , 'hi.png'];
emordy[45] = [':ok:' , 'ok.gif'];
emordy[46] = [':dance:' , 'dance-anim.gif'];
emordy[47] = [':lol:' , 'smi1.png'];
emordy[48] = [':lol2:' , 'lol2.gif'];
emordy[49] = [':ema:' , 'emaBW.gif'];
emordy[50] = [':nara:' , 'nara.gif'];
emordy[51] = [':3' , '3.gif'];
// Sprawdzenie czy czat jest włączony
// Dodanie skryptów do <head>
var script = document.createElement('script');
script.type = 'text/javascript';
script.innerHTML = "function emoticon(x) { document.getElementById('text_shoutbox').value = document.getElementById('text_shoutbox').value + ' ' + x + ' '; document.getElementById('text_shoutbox').focus(); updateCharEV(); }\n";
script.innerHTML+= "function updateCharEV() { document.getElementById(\"charCounterEV\").innerHTML = document.getElementById(\"text_shoutbox\").value.length; }\n";
script.innerHTML+= "function sendMessage(session) { sendComment(session); document.getElementById('charCounterEV').innerHTML = '0'; }";
document.getElementsByTagName('head')[0].appendChild(script);
// Dodanie kodu HTML do chatu
var chat = $('#text_shoutbox').parent().parent().parent().parent().parent();
var test = $('#text_shoutbox').parent();
var poka = '<input type="button" name="button2 ricz" value="Emotikony" class="button2" id="pokapoka">';
var html = '<tr><td class=\"row\"><span class=\"row\"><\/b> Znaków: <b id=\"charCounterEV\">0<\/b>\/198<\/span><br />';
$('#text_shoutbox').attr('onpaste','updateCharEV();');
$('#text_shoutbox').attr('onchange','updateCharEV();');
$('#text_shoutbox').attr('maxlength','198');
$(test).append(poka);
$("input#pokapoka.button2").on('click', function(e) {
e.preventDefault();
$('a.emo').toggle();
});
$(chat).append(html);
for (var i=0; i<emordy.length; i++) {
var emoty = '<a href=\"javascript:emoticon(\'' + emordy[i][0] + '\')\" class=\"emo\" style="display: none"><img src=\"images\/smilies\/'+ emordy[i][1] +'\" border=\"0\" alt=\"\" title=\"\"><\/a>';
$(chat).append(emoty);
}
var indaend = '<\/td><\/tr>';
$(chat).append(indaend);
// Pobranie ID sesji i ustawienie podczas wysyłania
var uid = new RegExp('([0-9]+)').exec( $('#shoutbox_scroll').attr('onsubmit') )[0];
$('#shoutbox_test').attr('onsubmit','sendMessage('+uid+'); return false;');
// Uchwyt odpowiedzialny za wciskanie klawiszy
$('#chatbarText').keyup(function(event) { if(event.which != 13) { updateCharEV(); if( initPwLink) updatePwTopic(); }});
// Uchwyt odpowiedzialny za wysyłanie formy
$('#shoutbox_test').submit(function(event) { if( $('#text_shoutbox').val().length > 3 ) { var count = GM_getValue('EvCount'); count = 0; count++; GM_setValue('EvCount',count); $('#msgCounterEV').text(count); $('#charCounterEV').text('0'); return false; } });
}
);[/code][/spoiler]
Obie wersje będą rozwijane równocześnie.
[quote="Ridż"][post]435586[/post] Licznik znaków aktualizuje się dopiero po kliknięciu na emotkę.[/quote]
Aktualizuje się też w tekście ale trzeba kliknąć po za pole tekstowe. Może w następnej wersji się tym zajmę.
-
Jester

- Posty: 27885
- Rejestracja: 14 maja 2015, o 23:44
- Qspaje: 0.90

[W][Kr]
- Beczki: 155
-
Kontakt:
Post #436732 autor: Jester » 2 mar 2017, o 15:15
Doing God's work

_________________
Konto zmieniło właściciela i zostało sprzedane.
Właścicielem konta jest Finczy.
Doing God's work :ok:
-
Ritsu

- Posty: 77510
- Rejestracja: 13 kwie 2013, o 21:50
- Qspaje: 1,074.90

[W][Kr]
- Lokalizacja: Baśń tysiąca i jednej nocy
- Beczki: 950
-
Kontakt:
Post #440578 autor: Ritsu » 6 mar 2017, o 21:18
Jan III Sobieski pisze:Źródło postu Emordy na sb toggle edyszyn
daje okejke
_________________
technical pojebane
[quote="Jan III Sobieski"][post]436704[/post] Emordy na sb toggle edyszyn[/quote]daje okejke
-
Kalasznikow

- Posty: 4483
- Rejestracja: 17 kwie 2013, o 13:47
- Qspaje: 326.90

[W][Kr]
- Lokalizacja: z neta
- Beczki: 152
-
Kontakt:
Post #466152 autor: Kalasznikow » 18 maja 2017, o 20:58

Co to wersja demo? Gdzie reszta emot

_________________
Gowno swietego ojca
[img]http://i.imgur.com/OUG5ym3.jpg[/img]
Co to wersja demo? Gdzie reszta emot :fack-off:
-
Ritsu

- Posty: 77510
- Rejestracja: 13 kwie 2013, o 21:50
- Qspaje: 1,074.90

[W][Kr]
- Lokalizacja: Baśń tysiąca i jednej nocy
- Beczki: 950
-
Kontakt:
Post #466155 autor: Ritsu » 18 maja 2017, o 21:00
trzeba se dodac samemu wszystkie
_________________
technical pojebane
trzeba se dodac samemu wszystkie
-
Ritsu

- Posty: 77510
- Rejestracja: 13 kwie 2013, o 21:50
- Qspaje: 1,074.90

[W][Kr]
- Lokalizacja: Baśń tysiąca i jednej nocy
- Beczki: 950
-
Kontakt:
Post #466215 autor: Ritsu » 18 maja 2017, o 21:23
nie zartuje
_________________
technical pojebane
nie zartuje
-
Burak

- Posty: 83575
- Rejestracja: 25 sty 2013, o 20:36
- Qspaje: 8,459.30

[W][Kr]
- Lokalizacja: Dom
- Beczki: 1247
-
Kontakt:
Post #466325 autor: Burak » 18 maja 2017, o 23:48
Kalasznikow pisze:Źródło postu 
Co to wersja demo? Gdzie reszta emot

Dodałeś tą co była w pierwszym poście w tamtym temacie? Jak tak, to przeglądnij cały temat, są nowe wersje.
Ostatnio zmieniony 18 maja 2017, o 23:49 przez
Burak, łącznie zmieniany 1 raz.
_________________
[quote="Kalasznikow"][post]466152[/post] [img]http://i.imgur.com/OUG5ym3.jpg[/img]
Co to wersja demo? Gdzie reszta emot :fack-off:[/quote]
Dodałeś tą co była w pierwszym poście w tamtym temacie? Jak tak, to przeglądnij cały temat, są nowe wersje.
-
Kalasznikow

- Posty: 4483
- Rejestracja: 17 kwie 2013, o 13:47
- Qspaje: 326.90

[W][Kr]
- Lokalizacja: z neta
- Beczki: 152
-
Kontakt:
Post #466924 autor: Kalasznikow » 19 maja 2017, o 12:25
Ostatnio zmieniony 19 maja 2017, o 12:26 przez
Kalasznikow, łącznie zmieniany 1 raz.
_________________
Gowno swietego ojca
Dodalem z [url]https://bugwie.com/viewtopic.php?p=436704#p436704[/url]
-
Burak

- Posty: 83575
- Rejestracja: 25 sty 2013, o 20:36
- Qspaje: 8,459.30

[W][Kr]
- Lokalizacja: Dom
- Beczki: 1247
-
Kontakt:
Post #466925 autor: Burak » 19 maja 2017, o 12:26
A no to Ricky musi zrobić aktualizację.
_________________
A no to [ref=#3191d1]Ricky[/ref] musi zrobić aktualizację.
-
Ritsu

- Posty: 77510
- Rejestracja: 13 kwie 2013, o 21:50
- Qspaje: 1,074.90

[W][Kr]
- Lokalizacja: Baśń tysiąca i jednej nocy
- Beczki: 950
-
Kontakt:
Post #466929 autor: Ritsu » 19 maja 2017, o 14:09
Trzeba samemu wklepać emoty do tablicy.
_________________
technical pojebane
Trzeba samemu wklepać emoty do tablicy.
-
Burak

- Posty: 83575
- Rejestracja: 25 sty 2013, o 20:36
- Qspaje: 8,459.30

[W][Kr]
- Lokalizacja: Dom
- Beczki: 1247
-
Kontakt:
Post #466962 autor: Burak » 19 maja 2017, o 14:35
To zrób aktualizacje

_________________
To zrób aktualizacje :polak:
-
Ritsu

- Posty: 77510
- Rejestracja: 13 kwie 2013, o 21:50
- Qspaje: 1,074.90

[W][Kr]
- Lokalizacja: Baśń tysiąca i jednej nocy
- Beczki: 950
-
Kontakt:
Post #467031 autor: Ritsu » 19 maja 2017, o 15:16
Nie chce mi się.
_________________
technical pojebane
Nie chce mi się.